query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
endregion loadCDAccounts region ATM this function loads in ATM accounts from a flat file and stores the information in the accounts array.
private void loadATMAccounts(String atmAccountFileName) { try { /* Open the file to read */ File inputFile = new File(atmAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //reading... String currentLine = input.nextLine(); //parse on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parse out data... int accountId = Integer.parseInt(splitLine[0]); String ssn = splitLine[1]; Date dateOpened = dateFormat.parse(splitLine[2]); int pin = Integer.parseInt(splitLine[3]); Date lastDateUsed = dateFormat.parse(splitLine[4]); int dailyUsageCount = Integer.parseInt(splitLine[5]); String cardNumber = splitLine[6]; ATM atmAccount = new ATM(accountId, ssn, dateOpened, pin, lastDateUsed, dailyUsageCount, cardNumber); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); atmAccount.setTransactions(accountTransactions); //add ATM accounts... accounts.add(atmAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }", "public List<CDAccount> findAccounts(Integer id) throws AccountNotFoundException {\n\t\treturn userService.findById(id).getCdAccounts();\n\t}", "public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "void activateAllAccounts(File file) throws ServiceException;", "public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "void activateAccount(File file, int accountID) throws ServiceException;", "@Transactional\r\n\tpublic Set<BudgetAccount> loadBudgetAccounts() {\r\n\t\treturn budgetAccountDAO.findAllBudgetAccounts();\r\n\t}", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "public List<Account> getEncryptedAccounts(String master_key) throws AEADBadTagException {\n List<Account> accounts = new ArrayList<>();\n Gson gson = new Gson();\n\n encryptedSharedPreferences = getEncryptedSharedPreferences(master_key);\n\n if (encryptedSharedPreferences != null) {\n Map<String, ?> all = encryptedSharedPreferences.getAll();\n\n for (Map.Entry<String, ?> entry : all.entrySet()) {\n if (!entry.getKey().equals(MASTER_KEY)) {\n //Log.d(TAG, \"Key: \" + entry.getKey() + \", Value: \" + String.valueOf(entry.getValue()));\n Account tmpAccount = gson.fromJson(String.valueOf(entry.getValue()), Account.class);\n accounts.add(tmpAccount);\n }\n }\n }\n\n return accounts;\n }", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "private void initDataTransferAccountsData() throws HpcException {\n for (HpcDataTransferType dataTransferType : HpcDataTransferType.values()) {\n // Get the data transfer system account.\n final List<HpcIntegratedSystemAccount> accounts =\n systemAccountDAO.getSystemAccount(dataTransferType);\n if (accounts != null && accounts.size() == 1) {\n singularDataTransferAccounts.put(dataTransferType, accounts.get(0));\n } else if (accounts != null && accounts.size() > 1) {\n initMultiDataTransferAccountsMap(dataTransferType, accounts);\n }\n }\n }", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "@Override\n public List<Account> getAccounts(Long customerId) {\n return customerDao.getAccounts(customerId);\n }", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}", "List<Account> getAccountsForCustomerId(int customerId);", "private static void testdeleteAndAddLoanAccounts(String lineOfCreditId, List<LoanAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddLoanAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Loan Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Loan Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (LoanAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tLoanAccount addedLoan = linesOfCreditService.addLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Loan Account with ID=\" + addedLoan.getId() + \" to LoC=\" + lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "public void readAddressBook(File file) {\r\n try {\r\n // intializes reader in order to count the number of contacts\r\n FileReader frLineCount = new FileReader(file);\r\n BufferedReader brLineCount = new BufferedReader(frLineCount);\r\n // initializes variable to count the number of lines\r\n int lines = 0;\r\n // counts total lines in address book\r\n while (brLineCount.readLine() != null)\r\n lines++;\r\n brLineCount.close();\r\n // calculates total contacts\r\n int totalContacts = lines / 5;\r\n // initializes reader in order to add the contacts to the array\r\n FileReader frLineRead = new FileReader(file);\r\n BufferedReader brLineRead = new BufferedReader(frLineRead);\r\n // inserts each AddressEntry into the array\r\n for (int i = totalContacts; i > 0; i--) {// for statment to add the exact number of contacts\r\n this.addEntry(brLineRead.readLine(), brLineRead.readLine(), brLineRead.readLine(),\r\n brLineRead.readLine(), brLineRead.readLine());\r\n }\r\n brLineRead.close();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public List<CoinbaseAccount> getCoinbaseAccounts() throws IOException {\n\n String path = \"/v2/accounts\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n \n return coinbase.getAccounts(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "public MnoAccount getAccountById(String id);", "public CDAccount addAccount(CDAccount account, Integer id) throws AccountNotFoundException {\n\t\tUser holder = userService.findById(id); // use id given to locate holder\n\t\tholder.setCdAccounts(Arrays.asList(account)); \t\t // use Arrays class to convert array of account to List \n\t\taccount.setUser(holder); \t\t\t\t\t // set list of cd accounts to belong to holder\n\t\trepository.save(account);\t\t\t\t\t\t\t // add given account to that holder's list of cd accounts\n\t\treturn account;\n\t}", "public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}", "@PermitAll\n public List<AccountDetails> getAccountsOfCustomer(Long customerId)\n throws InvalidParameterException, CustomerNotFoundException {\n Debug.print(\"AccountControllerBean getAccountsOfCustomer\");\n\n Collection accounts = null;\n Customer customer = null;\n\n if (customerId == null) {\n throw new InvalidParameterException(\"null customerId\");\n }\n\n try {\n customer = em.find(Customer.class, customerId);\n\n if (customer == null) {\n throw new CustomerNotFoundException();\n } else {\n accounts = customer.getAccounts();\n }\n } catch (Exception ex) {\n throw new EJBException(ex);\n }\n\n return copyAccountsToDetails(accounts);\n }", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "List<Account> getAccounts(String login);", "public static List<Account> getAccounts()\n\t{\n\t\treturn Application.getAccountLibrary().getAccounts();\n\t}", "public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we store it to the account array.\n \n }", "@Generated(hash = 96040862)\n public List<Account> getAccounts() {\n if (accounts == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n AccountDao targetDao = daoSession.getAccountDao();\n List<Account> accountsNew = targetDao._queryType_Accounts(id);\n synchronized (this) {\n if (accounts == null) {\n accounts = accountsNew;\n }\n }\n }\n return accounts;\n }", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void blockedAllAccounts(File file) throws ServiceException;", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "public void loadCustomerFromFile() throws IOException {\n\t\tString desktopPath = System.getProperty(\"user.home\") + \"\\\\Desktop\\\\customer\";\n\t\t\n\t\tFileInputStream fis = new FileInputStream(desktopPath);\n\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\n\t\ttry {\n\t\t\tCustomer[] customersArr = (Customer[]) ois.readObject();\n\t\t\tcustomers.clear();\n\t\t\tcustomers.addAll(Arrays.asList(customersArr));\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tois.close();\n\t}", "@Override\n\tpublic List<Account> GetAllAccounts() {\n\t\tif(accountList.size() > 0)\n\t\t\treturn accountList;\n\t\treturn null;\n\t}", "private static void testdeleteAndAddSavingsAccounts(String lineOfCreditId, List<SavingsAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddSavingsAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Savings Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Savings Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (SavingsAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t;\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tSavingsAccount addedAccount = linesOfCreditService.addSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Savings Account with ID=\" + addedAccount.getId() + \" to LoC=\"\n\t\t\t\t\t\t\t+ lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void loadDataFromFile(File file) {\n Gson gson = new Gson();\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n IndividualCustomer customer =\n gson.fromJson(scanner.nextLine(),IndividualCustomer.class);\n customerList.add(customer);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "public void readAdmin(String fileName)\n {\n try\n {\n FileReader inputFile = new FileReader(fileName);\n Scanner parser = new Scanner(inputFile);\n String[] array = parser.nextLine().split(\";\");\n for(int index = 0; index < array.length; index++)\n {\n String[] elements = array[index].split(\",\");\n String account = elements[0];\n String password = elements[1];\n setAdmin(index, account, password);\n }\n }\n catch(FileNotFoundException exception)\n {\n System.out.println(fileName + \" not found\");\n }\n catch(IOException exception)\n {\n System.out.println(\"Unexpected I/O error occured\");\n }\n\n }", "private Set<ContactImpl> importContactsFromFile(File vCardFile) throws VCardParseException, FileNotFoundException, IOException, XPathExpressionException, MappingMissingException {\r\n\r\n Document document = createDOMDocumentForVCardFile(vCardFile);\r\n Set<ContactImpl> contacts = readContactsFromDocument(document);\r\n \r\n return contacts;\r\n }", "private void setUserAccount() throws FileNotFoundException\r\n\t{\r\n\t\tint index = 0;\r\n\t\tFile inputFile = new File(\"UserAccount.txt\");\r\n\t\tScanner input = new Scanner(inputFile);\r\n\t\tif (!inputFile.exists())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The text file \\\"UserAccount.txt\\\" is missing\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\twhile(input.hasNextLine())\r\n\t\t{\r\n\t\t\tuserAccounts[0][index] = input.nextLine();\t\t\t//stores the username\r\n\t\t\tuserAccounts[1][index] = input.nextLine();\t\t\t//stores the password\r\n\t\t\tnumOfUsers++;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "private void loadAccount() {\n if (mSingleAccountApp == null) {\n return;\n }\n\n mSingleAccountApp.getCurrentAccountAsync(new ISingleAccountPublicClientApplication.CurrentAccountCallback() {\n @Override\n public void onAccountLoaded(@Nullable IAccount activeAccount) {\n // You can use the account data to update your UI or your app database.\n mAccount = activeAccount;\n updateUI();\n }\n\n @Override\n public void onAccountChanged(@Nullable IAccount priorAccount, @Nullable IAccount currentAccount) {\n if (currentAccount == null) {\n // Perform a cleanup task as the signed-in account changed.\n showToastOnSignOut();\n }\n }\n\n @Override\n public void onError(@NonNull MsalException exception) {\n displayError(exception);\n }\n });\n }", "public void updateAccounts(HashMap<String, Accounts> accounts){\n this.accounts = accounts;\n }", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "List<ClientAccount> getAllClientAccounts() throws ServiceException;", "public void loadAccount(Account account)\r\n {\r\n // TODO Remove this indication ?\r\n MessengerManager.showToast(this, getString(R.string.account_loading) + \" \" + account.getDescription());\r\n SessionUtils.setsession(this, null);\r\n SessionUtils.setAccount(this, account);\r\n if (account.getActivation() != null)\r\n {\r\n MessengerManager.showLongToast(this, getString(R.string.account_not_activated));\r\n }\r\n else\r\n {\r\n setProgressBarIndeterminateVisibility(true);\r\n AccountLoginLoaderCallback call = new AccountLoginLoaderCallback(this, account);\r\n // If the loader already exist, we do nothing.\r\n // It prevents to request OAuth token multiple times.\r\n if (getLoaderManager().getLoader(call.getAccountLoginLoaderId()) == null)\r\n {\r\n getLoaderManager().restartLoader(call.getAccountLoginLoaderId(), null, call);\r\n }\r\n }\r\n }", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "public static ArrayList<Citizen> getAccounts()\n\t{\n\t\treturn accounts;\n\t}", "public void readFromFile(String path) {\n try {\n ArrayList<String> list = new ArrayList<>(Files.readAllLines(Paths.get(path)));\n\n for (String info: list) {\n AddressEntry entry = new AddressEntry();\n ArrayList<String> entryList = new ArrayList<>(Arrays.asList(info.split(\",\")));\n entry.setFirstName(entryList.get(0).trim());\n entry.setLastName(entryList.get(1).trim());\n entry.setStreet(entryList.get(2).trim());\n entry.setCity(entryList.get(3).trim());\n entry.setState(entryList.get(4).trim());\n entry.setZip(Integer.parseInt(entryList.get(5).trim()));\n entry.setPhone(entryList.get(6).trim());\n entry.setEmail(entryList.get(7).trim());\n add(entry);\n }\n\n System.out.println(\"Read in \" + list.size() + \" new Addresses. Successfully loaded\");\n System.out.println(\"There are currently \" + addressEntryList.size() + \" Addresses in the Address Book.\");\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }", "void blockedAccount(File file, int accountID) throws ServiceException;", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "@HystrixCommand(fallbackMethod=\"getCustomerAccountListDegrade\")\n public List<Account> getCustomerAccountList(String id){\n \tSystem.out.println(\"account url=\"+accountSvcBaseUrl);\n \tRestTemplate restTemplate = new RestTemplate();\n \tURI accountUri = URI.create(String.format(\"%s/%s\", accountSvcBaseUrl,id));\n \tAccount[] userAccounts= restTemplate.getForObject(accountUri, Account[].class);\n \treturn (List<Account>)Arrays.asList(userAccounts);\n }", "public ArrayList<TransactionDetailByAccount> getMissionChecksByAccount(\n\t\t\tlong accountId, FinanceDate start, FinanceDate end, long companyId)\n\t\t\tthrows AccounterException {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<TransactionDetailByAccount> list = new ArrayList<TransactionDetailByAccount>();\n\n\t\tAccount account = (Account) session.get(Account.class, accountId);\n\t\tif (account == null) {\n\t\t\tthrow new AccounterException(Global.get().messages()\n\t\t\t\t\t.pleaseSelect(Global.get().messages().account()));\n\t\t}\n\t\tList result = new ArrayList();\n\t\tif (account.getType() == Account.TYPE_OTHER_CURRENT_ASSET) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.all.invoices.by.account\")\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t} else if (account.getType() == ClientAccount.TYPE_BANK) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.missing.checks.by.account\")\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t}\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\t\t\tTransactionDetailByAccount detailByAccount = new TransactionDetailByAccount();\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionId((Long) (objects[0] != null ? objects[0]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionType((Integer) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionNumber((String) (objects[2] != null ? objects[2]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[3] != null ? objects[3] : 0));\n\t\t\tdetailByAccount.setTransactionDate(date);\n\t\t\tdetailByAccount.setName((String) (objects[4] != null ? objects[4]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setAccountName((String) (objects[5] != null ? objects[5]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setMemo((String) (objects[6] != null ? objects[6]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setTotal((Double) (objects[7] != null ? objects[7]\n\t\t\t\t\t: 0.0));\n\t\t\tlist.add(detailByAccount);\n\n\t\t}\n\t\treturn list;\n\t}", "public void populateAccountsTable() {\n Account account1 = createAccountFromFile(\"DummyAccount1.json\");\n Account account2 = createAccountFromFile(\"DummyAccount2.json\");\n\n // Account 1 will have both contacts associated to it\n account1.setContactIds(Set.of(contacts.get(0).getUid(), contacts.get(1).getUid()));\n\n // Account 2 will only have 1 contact associated to it\n account2.setContactIds(Set.of(contacts.get(0).getUid()));\n\n accountService.postAccount(account1);\n accountService.postAccount(account2);\n }", "public void readAccount() throws Exception {\n\n\t\tFacebookAdaccountBuilder fbAccount = SocialEntity\n\t\t\t\t.facebookAccount(accessToken);\n\t\tfbAccount.addAccount(\"New Test AdAccount\", \"USD\", 1);\n\t\t// fbAccount.create();\n\n\t\tfbAccount.fetch(\"275668082617836\", \"name,timezone_name,users\");\n\t\t// fbAccount.fetch(\"578846975538588\");\n\t\tfor (AdAccount account : fbAccount.read()) {\n\t\t\tSystem.out.println(account.getAccountId());\n\t\t\tSystem.out.println(account.getTimezone_name());\n\t\t\tSystem.out.println(account.getName());\n\t\t\tSystem.out.println(account.getUsers().get(0).getRole());\n\t\t}\n\t}", "public static void getAcountsID(int accID) {\n\t\t\n\t\taccounts.clear();\n\n\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t \"from ser322.account,ser322.customer \" + \n\t \"WHERE customer.accID = account.accID AND account.accID =\" + accID;\n\n\t\ttry {\n\t\t\t\n\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t ResultSet rs = stmt.executeQuery(query);\n\t while (rs.next()) {\n\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t }\n\t \n\t } catch (SQLException e ) {\n\t \tSystem.out.println(\"QUERY WRONG - getAcountsID\");\n\t }\n\n\t}", "public void loadFromFile(final Context ctx) {\n\t\tString line, code, desc;\n\t\tDTC dtc;\n\t\ttry {\n\t\t\t// final FileInputStream fstream = new FileInputStream(pathname);\n\t\t\tfinal InputStream fstream = ctx.getResources().openRawResource(\n\t\t\t\t\tR.raw.dtc);\n\t\t\tfinal BufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tfstream));\n\t\t\twhile (in.ready()) {\n\t\t\t\tline = in.readLine();\n\t\t\t\tcode = line.substring(0, line.indexOf(','));\n\t\t\t\tdesc = line.substring(line.indexOf(',') + 1);\n\t\t\t\tdtc = new DTC(code, desc);\n\t\t\t\tput(dtc.codeAsInt(), dtc);\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (final Exception e) {\n\t\t\tLog.e(TAG, \"Error reading the DTC codes from the CSV file\", e);\n\t\t}\n\t}", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "public BmAccountsRecord() {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n }", "public void loadArenas() {\n\t\tLogger logger = getLogger();\n\t\tFile arenaFolder = getArenaFolder();\n\t\tif (!arenaFolder.exists()) {\n\t\t\tarenaFolder.mkdirs();\n\t\t}\n\n\t\tCollection<File> arenas = FileUtils.listFiles(arenaFolder, null, false);\n\n\t\tif (arenas.isEmpty()) {\n\t\t\tlogger.info(\"No arenas loaded for \" + getName());\n\t\t\treturn;\n\t\t}\n\n\t\tfor (File file : arenas) {\n\t\t\ttry {\n\t\t\t\tArena arena = new Arena(file);\n\t\t\t\tarena.load();\n\t\t\t\tarenaManager.addArena(arena);\n\t\t\t\tlogger.info((\"Loaded arena \" + arena.toString()));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tlogger.info(\"Unable to load arena from file: \" + file.getName());\n\t\t\t}\n\t\t}\n\n\t}", "private void readMetaData() throws AreaFileException {\r\n \r\n int i;\r\n// hasReadData = false;\r\n\r\n// if (! fileok) {\r\n// throw new AreaFileException(\"Error reading AreaFile directory\");\r\n// }\r\n\r\n dir = new int[AD_DIRSIZE];\r\n\r\n for (i=0; i < AD_DIRSIZE; i++) {\r\n try { dir[i] = af.readInt();\r\n } catch (IOException e) {\r\n status = -1;\r\n throw new AreaFileException(\"Error reading AreaFile directory:\" + e);\r\n }\r\n }\r\n position += AD_DIRSIZE * 4;\r\n\r\n // see if the directory needs to be byte-flipped\r\n\r\n if (dir[AD_VERSION] != VERSION_NUMBER) {\r\n McIDASUtil.flip(dir,0,19);\r\n // check again\r\n if (dir[AD_VERSION] != VERSION_NUMBER)\r\n throw new AreaFileException(\r\n \"Invalid version number - probably not an AREA file\");\r\n // word 20 may contain characters -- if small integer, flip it...\r\n if ( (dir[20] & 0xffff) == 0) McIDASUtil.flip(dir,20,20);\r\n McIDASUtil.flip(dir,21,23);\r\n // words 24-31 contain memo field\r\n McIDASUtil.flip(dir,32,50);\r\n // words 51-2 contain cal info\r\n McIDASUtil.flip(dir,53,55);\r\n // word 56 contains original source type (ascii)\r\n McIDASUtil.flip(dir,57,63);\r\n flipwords = true;\r\n }\r\n\r\n areaDirectory = new AreaDirectory(dir);\r\n\r\n // pull together some values needed by other methods\r\n navLoc = dir[AD_NAVOFFSET];\r\n calLoc = dir[AD_CALOFFSET];\r\n auxLoc = dir[AD_AUXOFFSET];\r\n datLoc = dir[AD_DATAOFFSET];\r\n numBands = dir[AD_NUMBANDS];\r\n linePrefixLength = \r\n dir[AD_DOCLENGTH] + dir[AD_CALLENGTH] + dir[AD_LEVLENGTH];\r\n if (dir[AD_VALCODE] != 0) linePrefixLength = linePrefixLength + 4;\r\n if (linePrefixLength != dir[AD_PFXSIZE]) \r\n throw new AreaFileException(\"Invalid line prefix length in AREA file.\");\r\n lineDataLength = numBands * dir[AD_NUMELEMS] * dir[AD_DATAWIDTH];\r\n lineLength = linePrefixLength + lineDataLength;\r\n numberLines = dir[AD_NUMLINES];\r\n\r\n if (datLoc > 0 && datLoc != McIDASUtil.MCMISSING) {\r\n navbytes = datLoc - navLoc;\r\n calbytes = datLoc - calLoc;\r\n auxbytes = datLoc - auxLoc;\r\n }\r\n if (auxLoc > 0 && auxLoc != McIDASUtil.MCMISSING) {\r\n navbytes = auxLoc - navLoc;\r\n calbytes = auxLoc - calLoc;\r\n }\r\n\r\n if (calLoc > 0 && calLoc != McIDASUtil.MCMISSING ) {\r\n navbytes = calLoc - navLoc;\r\n }\r\n\r\n\r\n // Read in nav block\r\n if (navLoc > 0 && navbytes > 0) {\r\n nav = new int[navbytes/4];\r\n newPosition = (long) navLoc;\r\n skipByteCount = (int) (newPosition - position);\r\n try {\r\n af.skipBytes(skipByteCount);\r\n } catch (IOException e) {\r\n status = -1;\r\n throw new AreaFileException(\"Error skipping AreaFile bytes: \" + e);\r\n }\r\n for (i=0; i<navbytes/4; i++) {\r\n try {\r\n nav[i] = af.readInt();\r\n } catch (IOException e) {\r\n status = -1;\r\n throw new AreaFileException(\"Error reading AreaFile navigation:\"+e);\r\n }\r\n }\r\n if (flipwords){\r\n flipnav(nav);\r\n }\r\n position = navLoc + navbytes;\r\n }\r\n\r\n // Read in cal block\r\n if (calLoc > 0 && calbytes > 0) {\r\n cal = new int[calbytes/4];\r\n newPosition = (long)calLoc;\r\n skipByteCount = (int) (newPosition - position);\r\n try {\r\n af.skipBytes(skipByteCount);\r\n } catch (IOException e) {\r\n status = -1;\r\n throw new AreaFileException(\"Error skipping AreaFile bytes: \" + e);\r\n }\r\n for (i=0; i<calbytes/4; i++) {\r\n try { \r\n cal[i] = af.readInt();\r\n } catch (IOException e) {\r\n status = -1;\r\n throw new AreaFileException(\"Error reading AreaFile calibration:\"+e);\r\n }\r\n }\r\n // if (flipwords) flipcal(cal);\r\n position = calLoc + calbytes;\r\n }\r\n\r\n // Read in aux block\r\n if (auxLoc > 0 && auxbytes > 0){\r\n aux = new int[auxbytes/4];\r\n newPosition = (long) auxLoc;\r\n skipByteCount = (int) (newPosition - position);\r\n try{\r\n af.skipBytes(skipByteCount);\r\n }catch (IOException e){\r\n status = -1;\r\n throw new AreaFileException(\"Error skipping AreaFile bytes: \" + e);\r\n }\r\n for (i = 0; i < auxbytes/4; i++){\r\n try{\r\n aux[i] = af.readInt();\r\n }catch (IOException e){\r\n status = -1;\r\n throw new AreaFileException(\"Error reading AreaFile aux block:\" + e);\r\n }\r\n }\r\n position = auxLoc + auxbytes;\r\n }\r\n\r\n // now return the Dir, as requested...\r\n status = 1;\r\n return;\r\n }", "public Set<Airport> loadFile(final String csvFile) throws CoreException;", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "public static void parseAccountDB(ATMAccount accountNew) throws FileNotFoundException, IOException {\r\n\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"accountsdb.txt\", true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfileOutput.println(accountNew.parseString());\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error!\");\r\n\t\t}\r\n\t}", "public MusicData[] loadAllMine(Long accountId) throws MusicAppException;", "public List<B2bInvoiceAccount> getAccounts() {\r\n return this.accounts;\r\n }", "public static void loadCountries(String filePath){\n File inputFile = new File(filePath);\n // Scans the file if the file path is correctly formatted.\n // If not, returns an error message.\n Scanner scanner = null;\n try {\n scanner = new Scanner(inputFile);\n } catch (FileNotFoundException e){\n System.err.println(e);\n System.exit(1);\n }\n \n // Skips the first line of indicator names\n scanner.nextLine();\n \n // Creates a new Country object for each line and adds it to the countryList.\n while (scanner.hasNextLine()){\n String line = scanner.nextLine();\n Country country = new Country(line);\n countryList.add(country);\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static void readUserFile() {\n\t\ttry {\n\t\t\tObjectInputStream readFile = new ObjectInputStream(new FileInputStream(userFile));\n\t\t\tVerify.userList = (ArrayList<User>) readFile.readObject();\n\t\t\treadFile.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//add contents of file to separate lists\n\t\tfor (int i=0; i<Verify.userList.size(); i++) {\n\t\t\tVerify.userIds.add(Verify.userList.get(i).getUserId());\n\t\t\tVerify.usernames.add(Verify.userList.get(i).getUsername());\n\t\t\tif (Verify.userList.get(i).getAccounts() != null) {\n\t\t\t\tVerify.accountList.addAll(Verify.userList.get(i).getAccounts());\n\t\t\t}\n\t\t\tif (Verify.userList.get(i).getRequests() != null) {\n\t\t\t\tVerify.requestList.addAll(Verify.userList.get(i).getRequests());\t\n\t\t\t}\n\t\t}\n\t\tfor (Account account: Verify.accountList) {\n\t\t\tVerify.accountIds.add(account.getAccountId());\n\t\t}\n\t}", "public Account createAccountFromFile(String fileName) {\n try {\n String path = \"src/test/resources/dummy_data/\" + fileName;\n File file = new File(path);\n return mapper.readValue(file, Account.class);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}", "@Test\n public void testAddAccountFromFile() throws IOException {\n\n Set<Long> accountIdsSet = Sets.newHashSet();\n\n AwReporting.addAccountsFromFile(accountIdsSet, \"src/test/resources/util/account-for-test.txt\");\n\n Assert.assertEquals(4, accountIdsSet.size());\n\n Assert.assertTrue(accountIdsSet.contains(1235431234L));\n Assert.assertTrue(accountIdsSet.contains(3492871722L));\n Assert.assertTrue(accountIdsSet.contains(5731985421L));\n Assert.assertTrue(accountIdsSet.contains(3821071791L));\n Assert.assertFalse(accountIdsSet.contains(5471928097L));\n\n }", "private void initSystemAccountsData() throws HpcException {\n for (HpcIntegratedSystem system : HpcIntegratedSystem.values()) {\n // Get the data transfer system account.\n final List<HpcIntegratedSystemAccount> accounts = systemAccountDAO.getSystemAccount(system);\n if (accounts != null && accounts.size() == 1) {\n singularSystemAccounts.put(system, accounts.get(0));\n }\n }\n }", "private void loadAssociatedContacts() {\n Gson gson = new Gson();\n // get the serialized contact file\n String serializedFile = ContactDAO.serializedFile;\n // deserialize the file to get all contacts information\n associatedContacts = gson.fromJson(serializedFile, new TypeToken<ArrayList<ContactDataModel>>(){}.getType());\n //display information\n if (associatedContacts != null) {\n adapter = new CustomContactAdapter(this, R.layout.view_contact_row, associatedContacts);\n cv.setAdapter(adapter);\n // In case that the user delete some contacts, we set the serialized file in the DAO to apply the change\n // list of contact\n // serialize and set the access file\n ContactDAO.serializedFile = gson.toJson(associatedContacts);\n }\n\n //on item click\n cv.setOnItemClickListener(itemDescription);\n }", "public void readContinents(){\n for ( k= 0;k<continentsNum;k++){\n lineElements = lines.get(edgesNum+verticesNum+5+k).split(\" \");\n int bonus = Integer.parseInt(lineElements[0]);\n nearCountries = new ArrayList<>();\n for(int i=1;i<lineElements.length;i++){\n Country nearCountry = vertices.get(Integer.parseInt(lineElements[i])-1);\n nearCountries.add(nearCountry);\n }\n Map.getIntance().addContinent(new Continent(bonus,nearCountries));\n }\n List<Continent> allContinents = Map.getIntance().getContinents();\n for ( k= 0;k<continentsNum;k++){\n List<Country> countriesInContinent = allContinents.get(k).getCountries();\n for(i=0;i<countriesInContinent.size();i++){\n if(countriesInContinent.get(i).getOwner()==Agent.player1)\n Agent.player1.addCountry(countriesInContinent.get(i));\n else\n Agent.player2.addCountry(countriesInContinent.get(i));\n }\n }\n\n // Read the continents for AI agents\n for ( k= 0;k<continentsNum;k++){\n lineElements = lines.get(edgesNum+verticesNum+5+k).split(\" \");\n int bonus = Integer.parseInt(lineElements[0]);\n nearSCountries = new ArrayList<>();\n for(int i=1;i<lineElements.length;i++){\n Integer nearSCountry = Integer.parseInt(lineElements[i]);\n nearSCountries.add(nearSCountry);\n }\n SContinent sContinent = new SContinent();\n sContinent.countries = nearSCountries;\n sContinent.bounse = bonus;\n NState.globalState.continents.add(sContinent);\n }\n\n }", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "public ArrayList getAllAccountIds() {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tStatement sttmnt;\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tsttmnt = dbAccess.createStatement();\n\t\t\trs = sttmnt.executeQuery(\"SELECT acc_id FROM accounts\");\n\t\t\twhile (rs.next()) {\n\t\t\t\taccountIds.add(rs.getInt(\"acc_id\"));\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountIds;\n\t}", "public List<Account> viewAllAccountsPaginated(int start, int limit) {\n\t\tList<Account> list = new ArrayList<>(accounts.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public void load_from_file() {\r\n // prompting file name from user\r\n System.out.print(\"Enter in FileName:\\n>\");\r\n\r\n // taking user input of file name\r\n String filename = Menu.sc.next();\r\n Scanner input;\r\n\r\n // try to open file, if fails throws exception and returns to main menu\r\n try {\r\n input = new Scanner(new FileReader(filename));\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Unable to open file!!\");\r\n System.out.println();\r\n return;\r\n }\r\n\r\n int count = 0; // variable to count number of address entry read\r\n\r\n /* reading data until end of file */\r\n while (input.hasNextLine()) {\r\n String firstName = \"\", lastName = \"\", street = \"\", city = \"\", state = \"\", email = \"\", phone = \"\";\r\n int zip = 0;\r\n if (input.hasNextLine())\r\n firstName = input.nextLine();\r\n if (input.hasNextLine())\r\n lastName = input.nextLine();\r\n if (input.hasNextLine())\r\n street = input.nextLine();\r\n if (input.hasNextLine())\r\n city = input.nextLine();\r\n if (input.hasNextLine())\r\n state = input.nextLine();\r\n if (input.hasNextLine())\r\n zip = Integer.parseInt(input.nextLine());\r\n if (input.hasNextLine())\r\n phone = input.nextLine();\r\n if (input.hasNext())\r\n email = input.nextLine();\r\n if (input.hasNext())\r\n input.nextLine();\r\n addressEntryList.add(new AdressEntry(firstName, lastName, street, city, state, zip, phone, email));\r\n count++;\r\n }\r\n\r\n /*\r\n printing number of address entry variables\r\n and printing total number of AddressEntry in the list\r\n */\r\n System.out.println(\"Read in \" + count + \" new Addresses, successfully loaded, currently \"\r\n + addressEntryList.size() + \" Addresses\");\r\n input.close();\r\n System.out.println();\r\n }", "public Set<Airport> loadFile(final File csvFile) throws CoreException;", "public List<AccountBean> getAllAccounts() {\n\t\tList<AccountBean> accountBeans = null;\n\t\tConnectionSource connectionSource = null;\n\t\tDao<AccountBean, Integer> contactDao = null;\n\n\t\ttry {\n\t\t\tconnectionSource = new AndroidConnectionSource(mDatabase);\n\t\t\tcontactDao = DaoManager.createDao(connectionSource,\n\t\t\t\t\tAccountBean.class);\n\t\t\taccountBeans = contactDao.queryBuilder()\n\t\t\t\t\t.orderBy(IConstants.ORDER_BY_UPDATED_AT, false).query();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountBeans;\n\t}" ]
[ "0.73518693", "0.6525595", "0.62218785", "0.5989088", "0.5949603", "0.59395206", "0.5873022", "0.5864646", "0.5799828", "0.57642037", "0.5731781", "0.57089686", "0.5551101", "0.55068564", "0.5405822", "0.5370888", "0.5296513", "0.52961", "0.52231514", "0.5215728", "0.5176544", "0.5151986", "0.5133722", "0.5128141", "0.5029279", "0.49904788", "0.49361277", "0.49319416", "0.48726833", "0.48600042", "0.48547277", "0.48519298", "0.4849347", "0.48188418", "0.47883704", "0.47474244", "0.47421622", "0.47338742", "0.47149628", "0.4687727", "0.468534", "0.46846914", "0.46564054", "0.46557373", "0.4645992", "0.46363193", "0.46193236", "0.46152875", "0.45685375", "0.45612198", "0.45545453", "0.45387775", "0.4533076", "0.45215315", "0.45009488", "0.44874385", "0.44788277", "0.44781792", "0.44779277", "0.4476582", "0.44760042", "0.44384095", "0.44272763", "0.44234753", "0.44190794", "0.44178605", "0.44097152", "0.44078878", "0.43972862", "0.4396541", "0.43888697", "0.4382289", "0.4381237", "0.43673563", "0.43663955", "0.43663573", "0.43647987", "0.4362316", "0.43607304", "0.43592018", "0.43577808", "0.43561608", "0.43483612", "0.43432528", "0.43394807", "0.43321776", "0.43260005", "0.43243676", "0.43180898", "0.4308228", "0.43071443", "0.430239", "0.42948848", "0.42918187", "0.42898405", "0.42881516", "0.42780665", "0.42769003", "0.42763454", "0.42527556" ]
0.68093747
1
endregion loadATMAccounts region loadCreditCardAccounts this function loads in Credit Card accounts from a flat file and stores the information in the accounts array.
private void loadCreditCardAccounts(String creditCardAccountFileName) { try { /* Open the file to read */ File inputFile = new File(creditCardAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //read... String currentLine = input.nextLine(); //parsing out on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parsing out data. int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); Date dueDate = dateFormat.parse(splitLine[5]); Date dateNotified = dateFormat.parse(splitLine[6]); double currentPaymentDue = Double.parseDouble(splitLine[7]); Date lastPaymentDate = dateFormat.parse(splitLine[8]); boolean missedPayment = Boolean.parseBoolean(splitLine[9]); double limit = Double.parseDouble(splitLine[10]); String creditCardNumber = splitLine[11]; int cvv = Integer.parseInt(splitLine[12]); CreditCard creditCardAccount = new CreditCard(accountId, balance, ssn, interestRate, dateOpened, dueDate, dateNotified, currentPaymentDue, lastPaymentDate, missedPayment, limit, creditCardNumber, cvv); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); creditCardAccount.setTransactions(accountTransactions); //add credit cards accounts.add(creditCardAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "void activateAllAccounts(File file) throws ServiceException;", "private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}", "public List<CDAccount> findAccounts(Integer id) throws AccountNotFoundException {\n\t\treturn userService.findById(id).getCdAccounts();\n\t}", "List<Account> getAccountsForCustomerId(int customerId);", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "void activateAccount(File file, int accountID) throws ServiceException;", "@Transactional\r\n\tpublic Set<BudgetAccount> loadBudgetAccounts() {\r\n\t\treturn budgetAccountDAO.findAllBudgetAccounts();\r\n\t}", "public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we store it to the account array.\n \n }", "@Override\n public List<Account> getAccounts(Long customerId) {\n return customerDao.getAccounts(customerId);\n }", "@PermitAll\n public List<AccountDetails> getAccountsOfCustomer(Long customerId)\n throws InvalidParameterException, CustomerNotFoundException {\n Debug.print(\"AccountControllerBean getAccountsOfCustomer\");\n\n Collection accounts = null;\n Customer customer = null;\n\n if (customerId == null) {\n throw new InvalidParameterException(\"null customerId\");\n }\n\n try {\n customer = em.find(Customer.class, customerId);\n\n if (customer == null) {\n throw new CustomerNotFoundException();\n } else {\n accounts = customer.getAccounts();\n }\n } catch (Exception ex) {\n throw new EJBException(ex);\n }\n\n return copyAccountsToDetails(accounts);\n }", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}", "public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "public void loadAccount(Account account)\r\n {\r\n // TODO Remove this indication ?\r\n MessengerManager.showToast(this, getString(R.string.account_loading) + \" \" + account.getDescription());\r\n SessionUtils.setsession(this, null);\r\n SessionUtils.setAccount(this, account);\r\n if (account.getActivation() != null)\r\n {\r\n MessengerManager.showLongToast(this, getString(R.string.account_not_activated));\r\n }\r\n else\r\n {\r\n setProgressBarIndeterminateVisibility(true);\r\n AccountLoginLoaderCallback call = new AccountLoginLoaderCallback(this, account);\r\n // If the loader already exist, we do nothing.\r\n // It prevents to request OAuth token multiple times.\r\n if (getLoaderManager().getLoader(call.getAccountLoginLoaderId()) == null)\r\n {\r\n getLoaderManager().restartLoader(call.getAccountLoginLoaderId(), null, call);\r\n }\r\n }\r\n }", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "public static ArrayList<Account> getAccounts() {\n ArrayList<Account> accounts = new ArrayList<>();\n\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM LOGIN_ACCOUNTS\");\n while (resultSet.next()) { // as long as the next row is not null\n String username, password, firstName, lastName;\n int age;\n username = resultSet.getString(\"username\");\n password = resultSet.getString(\"password\");\n firstName = resultSet.getString(\"firstname\");\n lastName = resultSet.getString(\"lastname\");\n age = resultSet.getInt(\"age\");\n // place all the new items into a new Account object\n Account newAccount = new Account(username, password, firstName, lastName, age);\n // add the account to the list\n accounts.add(newAccount);\n }\n } catch (SQLException exc) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, exc);\n }\n\n return accounts;\n }", "public ArrayList<Account> GetCustomerAccounts(String ssn)\n {\n ArrayList<Account> result = new ArrayList<>();\n\n for (Account account : accounts)\n {\n if (account.getSsn().equals(ssn))\n {\n result.add(account);\n }\n }\n\n return result;\n }", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "public void readAddressBook(File file) {\r\n try {\r\n // intializes reader in order to count the number of contacts\r\n FileReader frLineCount = new FileReader(file);\r\n BufferedReader brLineCount = new BufferedReader(frLineCount);\r\n // initializes variable to count the number of lines\r\n int lines = 0;\r\n // counts total lines in address book\r\n while (brLineCount.readLine() != null)\r\n lines++;\r\n brLineCount.close();\r\n // calculates total contacts\r\n int totalContacts = lines / 5;\r\n // initializes reader in order to add the contacts to the array\r\n FileReader frLineRead = new FileReader(file);\r\n BufferedReader brLineRead = new BufferedReader(frLineRead);\r\n // inserts each AddressEntry into the array\r\n for (int i = totalContacts; i > 0; i--) {// for statment to add the exact number of contacts\r\n this.addEntry(brLineRead.readLine(), brLineRead.readLine(), brLineRead.readLine(),\r\n brLineRead.readLine(), brLineRead.readLine());\r\n }\r\n brLineRead.close();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public List<Accounts> getAllAccounts() {\n List<Accounts> accountList = new ArrayList<Accounts>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Accounts account = new Accounts();\n account.setID(Integer.parseInt(cursor.getString(0)));\n account.setName(cursor.getString(1));\n account.setPassword(cursor.getString(2));\n account.setPhoneNumber(cursor.getString(3));\n account.setEmail(cursor.getString(4));\n // Adding account to list\n accountList.add(account);\n } while (cursor.moveToNext());\n }\n\n // return account list\n return accountList;\n }", "List<Account> getAccounts(String login);", "public List<CoinbaseAccount> getCoinbaseAccounts() throws IOException {\n\n String path = \"/v2/accounts\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n \n return coinbase.getAccounts(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "public CreditCardAccount getCreditCardAccount() {\n return this.creditCardAccount;\n }", "private List<Map<String, String>> loadCredits() {\n\t\tfinal String[] creditsArray = this.getResources().getStringArray(\n\t\t\t\tR.array.credits);\n\t\tfinal Credits credits = new Credits(creditsArray);\n\t\treturn credits.getListCredits();\n\t}", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "@Override\n public void loadDataFromFile(File file) {\n Gson gson = new Gson();\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n IndividualCustomer customer =\n gson.fromJson(scanner.nextLine(),IndividualCustomer.class);\n customerList.add(customer);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "public List <Account> getAllAccountsByRIB(String RIB);", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "private void initDataTransferAccountsData() throws HpcException {\n for (HpcDataTransferType dataTransferType : HpcDataTransferType.values()) {\n // Get the data transfer system account.\n final List<HpcIntegratedSystemAccount> accounts =\n systemAccountDAO.getSystemAccount(dataTransferType);\n if (accounts != null && accounts.size() == 1) {\n singularDataTransferAccounts.put(dataTransferType, accounts.get(0));\n } else if (accounts != null && accounts.size() > 1) {\n initMultiDataTransferAccountsMap(dataTransferType, accounts);\n }\n }\n }", "public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "public static List<Account> getAccounts()\n\t{\n\t\treturn Application.getAccountLibrary().getAccounts();\n\t}", "public static void getAcountsID(int accID) {\n\t\t\n\t\taccounts.clear();\n\n\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t \"from ser322.account,ser322.customer \" + \n\t \"WHERE customer.accID = account.accID AND account.accID =\" + accID;\n\n\t\ttry {\n\t\t\t\n\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t ResultSet rs = stmt.executeQuery(query);\n\t while (rs.next()) {\n\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t }\n\t \n\t } catch (SQLException e ) {\n\t \tSystem.out.println(\"QUERY WRONG - getAcountsID\");\n\t }\n\n\t}", "public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "private Set<ContactImpl> importContactsFromFile(File vCardFile) throws VCardParseException, FileNotFoundException, IOException, XPathExpressionException, MappingMissingException {\r\n\r\n Document document = createDOMDocumentForVCardFile(vCardFile);\r\n Set<ContactImpl> contacts = readContactsFromDocument(document);\r\n \r\n return contacts;\r\n }", "public Account createAccountFromFile(String fileName) {\n try {\n String path = \"src/test/resources/dummy_data/\" + fileName;\n File file = new File(path);\n return mapper.readValue(file, Account.class);\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static ArrayList<Citizen> getAccounts()\n\t{\n\t\treturn accounts;\n\t}", "@Override\n\tpublic List<Account> GetAllAccounts() {\n\t\tif(accountList.size() > 0)\n\t\t\treturn accountList;\n\t\treturn null;\n\t}", "private void parseBankAccount(String[] info, Account account) {\n BankTracker b = new BankTracker(info[2], Float.parseFloat(info[1]), LocalDate.parse(info[3]),\n Double.parseDouble(info[4]));\n account.getBankTrackerList().add(b);\n }", "private static void testdeleteAndAddLoanAccounts(String lineOfCreditId, List<LoanAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddLoanAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Loan Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Loan Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (LoanAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tLoanAccount addedLoan = linesOfCreditService.addLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Loan Account with ID=\" + addedLoan.getId() + \" to LoC=\" + lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "public List<Account> viewAllAccountsPaginated(int start, int limit) {\n\t\tList<Account> list = new ArrayList<>(accounts.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public void addAccount() {\n\t\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please enter name\");\n String custName = scan.next();\n validate.checkName(custName);\n \t\tlog.log(Level.INFO, \"Select Account Type: \\n 1 for Savings \\n 2 for Current \\n 3 for FD \\n 4 for DEMAT\");\n\t\t\tint bankAccType = Integer.parseInt(scan.next());\n\t\t\tvalidate.checkAccType(bankAccType);\n\t\t\tlog.log(Level.INFO, \"Please Enter your Aadar Card Number\");\n\t\t\tString aadarNumber = scan.next();\n\t\t\tlog.log(Level.INFO, \"Please Enter Phone Number: \");\n\t\t\tString custMobileNo = scan.next();\n\t\t\tvalidate.checkPhoneNum(custMobileNo);\n\t\t\tlog.log(Level.INFO, \"Please Enter Customer Email Id: \");\n\t\t\tString custEmail = scan.next();\n\t\t\tvalidate.checkEmail(custEmail);\n\t\t\tbankop.add(accountNumber, custName, bankAccType, custMobileNo, custEmail, aadarNumber);\n\t\t\taccountNumber();\n\t\t\n\t\t} catch (AccountDetailsException message) {\n\t\t\tlog.log(Level.INFO, message.getMessage()); \n }\n\n\t}", "public List<AccountBean> getAllAccounts() {\n\t\tList<AccountBean> accountBeans = null;\n\t\tConnectionSource connectionSource = null;\n\t\tDao<AccountBean, Integer> contactDao = null;\n\n\t\ttry {\n\t\t\tconnectionSource = new AndroidConnectionSource(mDatabase);\n\t\t\tcontactDao = DaoManager.createDao(connectionSource,\n\t\t\t\t\tAccountBean.class);\n\t\t\taccountBeans = contactDao.queryBuilder()\n\t\t\t\t\t.orderBy(IConstants.ORDER_BY_UPDATED_AT, false).query();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountBeans;\n\t}", "public void populateAccountsTable() {\n Account account1 = createAccountFromFile(\"DummyAccount1.json\");\n Account account2 = createAccountFromFile(\"DummyAccount2.json\");\n\n // Account 1 will have both contacts associated to it\n account1.setContactIds(Set.of(contacts.get(0).getUid(), contacts.get(1).getUid()));\n\n // Account 2 will only have 1 contact associated to it\n account2.setContactIds(Set.of(contacts.get(0).getUid()));\n\n accountService.postAccount(account1);\n accountService.postAccount(account2);\n }", "public void loadCustomerFromFile() throws IOException {\n\t\tString desktopPath = System.getProperty(\"user.home\") + \"\\\\Desktop\\\\customer\";\n\t\t\n\t\tFileInputStream fis = new FileInputStream(desktopPath);\n\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\n\t\ttry {\n\t\t\tCustomer[] customersArr = (Customer[]) ois.readObject();\n\t\t\tcustomers.clear();\n\t\t\tcustomers.addAll(Arrays.asList(customersArr));\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tois.close();\n\t}", "public List<Account> getAccounts() throws SQLException {\r\n\t\tList<Account> accounts = new ArrayList<>();\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t// Alle Datensätze der Account-Tabelle abrufen\r\n\t\tString sql = \"SELECT * FROM account\";\r\n\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\twhile (resultSet.next()) {\r\n\t\t\t// Datensätze in Kontoobjekte umwandeln\r\n\t\t\tint id = resultSet.getInt(1);\r\n\t\t\tString owner = resultSet.getString(2);\r\n\t\t\tString number = resultSet.getString(3);\r\n\t\t\tAccount account = new Account();\r\n\t\t\taccount.setId(id);\r\n\t\t\taccount.setOwner(owner);\r\n\t\t\taccount.setNumber(number);\r\n\t\t\taccount.setTransactions(daTransaction.getTransactionHistory(number));\r\n\t\t\taccounts.add(account);\r\n\t\t}\r\n\t\tresultSet.close();\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t\treturn accounts;\r\n\t}", "public void addAccount(Account account){\n if(accounts == null){\n accounts = new HashSet<>();\n }\n accounts.add(account);\n }", "private void consumeAccountInfo() {\n Account[] accounts = mAccountManager.getAccountsByType(ACCOUNT_TYPE);\n Account account;\n if (accounts != null && accounts.length > 0) {\n account = accounts[0];\n } else {\n account = new Account(\"\", ACCOUNT_TYPE);\n }\n mAccountManager.getAuthToken(account, AUTH_TOKEN_TYPE, null, true, authTokenCallback, null);\n }", "private void loadAccount() {\n if (mSingleAccountApp == null) {\n return;\n }\n\n mSingleAccountApp.getCurrentAccountAsync(new ISingleAccountPublicClientApplication.CurrentAccountCallback() {\n @Override\n public void onAccountLoaded(@Nullable IAccount activeAccount) {\n // You can use the account data to update your UI or your app database.\n mAccount = activeAccount;\n updateUI();\n }\n\n @Override\n public void onAccountChanged(@Nullable IAccount priorAccount, @Nullable IAccount currentAccount) {\n if (currentAccount == null) {\n // Perform a cleanup task as the signed-in account changed.\n showToastOnSignOut();\n }\n }\n\n @Override\n public void onError(@NonNull MsalException exception) {\n displayError(exception);\n }\n });\n }", "private void setUserAccount() throws FileNotFoundException\r\n\t{\r\n\t\tint index = 0;\r\n\t\tFile inputFile = new File(\"UserAccount.txt\");\r\n\t\tScanner input = new Scanner(inputFile);\r\n\t\tif (!inputFile.exists())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The text file \\\"UserAccount.txt\\\" is missing\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\twhile(input.hasNextLine())\r\n\t\t{\r\n\t\t\tuserAccounts[0][index] = input.nextLine();\t\t\t//stores the username\r\n\t\t\tuserAccounts[1][index] = input.nextLine();\t\t\t//stores the password\r\n\t\t\tnumOfUsers++;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "public Set<Airport> loadFile(final String csvFile) throws CoreException;", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "public Set<Airport> loadFile(final File csvFile) throws CoreException;", "public void readAccount() throws Exception {\n\n\t\tFacebookAdaccountBuilder fbAccount = SocialEntity\n\t\t\t\t.facebookAccount(accessToken);\n\t\tfbAccount.addAccount(\"New Test AdAccount\", \"USD\", 1);\n\t\t// fbAccount.create();\n\n\t\tfbAccount.fetch(\"275668082617836\", \"name,timezone_name,users\");\n\t\t// fbAccount.fetch(\"578846975538588\");\n\t\tfor (AdAccount account : fbAccount.read()) {\n\t\t\tSystem.out.println(account.getAccountId());\n\t\t\tSystem.out.println(account.getTimezone_name());\n\t\t\tSystem.out.println(account.getName());\n\t\t\tSystem.out.println(account.getUsers().get(0).getRole());\n\t\t}\n\t}", "public List<Account> getAllAccounts() {\n List<Account> accounts = new ArrayList<>();\n accountRepository.findAll().forEach(account -> accounts.add(account));\n return accounts;\n }", "public List<Account> getEncryptedAccounts(String master_key) throws AEADBadTagException {\n List<Account> accounts = new ArrayList<>();\n Gson gson = new Gson();\n\n encryptedSharedPreferences = getEncryptedSharedPreferences(master_key);\n\n if (encryptedSharedPreferences != null) {\n Map<String, ?> all = encryptedSharedPreferences.getAll();\n\n for (Map.Entry<String, ?> entry : all.entrySet()) {\n if (!entry.getKey().equals(MASTER_KEY)) {\n //Log.d(TAG, \"Key: \" + entry.getKey() + \", Value: \" + String.valueOf(entry.getValue()));\n Account tmpAccount = gson.fromJson(String.valueOf(entry.getValue()), Account.class);\n accounts.add(tmpAccount);\n }\n }\n }\n\n return accounts;\n }", "public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}", "private static void testdeleteAndAddSavingsAccounts(String lineOfCreditId, List<SavingsAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddSavingsAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Savings Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Savings Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (SavingsAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t;\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tSavingsAccount addedAccount = linesOfCreditService.addSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Savings Account with ID=\" + addedAccount.getId() + \" to LoC=\"\n\t\t\t\t\t\t\t+ lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "@Test\n public void testGetUserAccounts() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n List<AccountOfUser> accs = new ArrayList<>();\n accs.add(acc);\n accs.add(acc2);\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.getUserAccounts(user.getPassport()), is(accs));\n }", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "public static void loadcars() {\n Cars xx = new Cars();\n System.out.println(\"Load cars\");\n listcars.clear();\n try {\n File fileload = new File(\"cars.csv\");\n BufferedReader in = new BufferedReader(new FileReader(fileload));\n String st;\n while((st = in.readLine()) != null) {\n String[] strs = st.split(\"[,//;]\");\n addcar(strs[0], strs[1], strs[2],Integer.parseInt(strs[3]));\n }\n in.close();\n System.out.println(\"cars data restored from cars.csv\");\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n\n }", "public void setCreditCardAccount(CreditCardAccount newCreditCard) {\n this.creditCardAccount = newCreditCard;\n }", "List<ClientAccount> getAllClientAccounts() throws ServiceException;", "public void add(CarerAccount acc) {\n CarerAccounts.add(acc);\n }", "public MnoAccount getAccountById(String id);", "public static void loadCountries(String filePath){\n File inputFile = new File(filePath);\n // Scans the file if the file path is correctly formatted.\n // If not, returns an error message.\n Scanner scanner = null;\n try {\n scanner = new Scanner(inputFile);\n } catch (FileNotFoundException e){\n System.err.println(e);\n System.exit(1);\n }\n \n // Skips the first line of indicator names\n scanner.nextLine();\n \n // Creates a new Country object for each line and adds it to the countryList.\n while (scanner.hasNextLine()){\n String line = scanner.nextLine();\n Country country = new Country(line);\n countryList.add(country);\n }\n\n }", "public FilteredBankAccountsIterator(BankAccountsBinarySearchTree bankAccountsTree) {\r\n \tthis.bankAccountsTree = bankAccountsTree;\r\n \tcurrent = bankAccountsTree.root.data;\r\n \tbankAccounts = new LinkedList();\r\n \t//Initialize an iterator goes over the tree\r\n \tBinaryTreeInOrderIterator <BankAccount> iter = new BinaryTreeInOrderIterator(bankAccountsTree.root);\r\n \t//check if there is bank account with a balance over than 100 \r\n \twhile(iter.hasNext()) {\r\n \t\tcurrent=iter.next();\r\n \t\tif(current.getBalance()>100) {\r\n \t\t\t//if such a bank account exist, add it to the end of the list\r\n \t\t\tbankAccounts.add(current);\r\n \t\t}\r\n \t}\r\n }", "public ArrayList<CreditCard> getCreditCards() {\n\t\treturn this.creditCards;\n\t}", "@Transactional\r\n\tpublic List<BudgetAccount> findAllBudgetAccounts(Integer startResult, Integer maxRows) {\r\n\t\treturn new java.util.ArrayList<BudgetAccount>(budgetAccountDAO.findAllBudgetAccounts(startResult, maxRows));\r\n\t}", "@Generated(hash = 96040862)\n public List<Account> getAccounts() {\n if (accounts == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n AccountDao targetDao = daoSession.getAccountDao();\n List<Account> accountsNew = targetDao._queryType_Accounts(id);\n synchronized (this) {\n if (accounts == null) {\n accounts = accountsNew;\n }\n }\n }\n return accounts;\n }", "public List getAllAccounts() {\n\t\treturn null;\r\n\t}", "@Override\n public List<Account> findAllByCustomerId(String customerId) {\n Query findByCustomer = new Query();\n findByCustomer.addCriteria(Criteria.where(\"customerId\").is(customerId));\n return operations.find(findByCustomer, Account.class);\n }", "public static void testAddAndRemoveAccountsForLineOfCredit(AccountsFromLineOfCredit accountsForLoC)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testAddAndRemoveAccountsForLineOfCredit\");\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Test remove and add for Loan Accounts\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\ttestdeleteAndAddLoanAccounts(lineOfCreditId, loanAccounts);\n\n\t\t// Test remove and add for Savings Accounts\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\ttestdeleteAndAddSavingsAccounts(lineOfCreditId, savingsAccounts);\n\t}", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static Account[] getAllAccounts(IInternalContest contest, ClientType.Type type) {\n // SOMEDAY move getAllAccounts into AccountsUtility class\n\n Vector<Account> accountVector = contest.getAccounts(type);\n Account[] accounts = (Account[]) accountVector.toArray(new Account[accountVector.size()]);\n Arrays.sort(accounts, new AccountComparator());\n\n return accounts;\n }", "public BankDataBase()\n {\n accounts = new Account[ 2 ];\n accounts[ 0 ] = new Account( 12345, 54321, 1000.0, 1200.0 );\n accounts[ 1 ] = new Account( 98765, 56789, 200.0, 200.0 );\n }", "public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }", "public BmAccountsRecord() {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n }", "public List<BankAccount> getAccounts(String email) {\n\t\tUser user = findByEmail(email);\n\t\tfinal List<BankAccount> accounts;\n\t\tif (user != null) {\n\t\t\tHibernate.initialize(user.getBankAccounts());\n\t\t\taccounts = user.getBankAccounts();\n\t\t} else {\n\t\t\taccounts = Collections.<BankAccount> emptyList();\n\t\t}\n\t\treturn accounts;\n\t}" ]
[ "0.68836755", "0.66612107", "0.60691875", "0.599398", "0.5963393", "0.5854659", "0.58445704", "0.5695181", "0.5672308", "0.5513834", "0.54414356", "0.5365444", "0.5352762", "0.5335999", "0.52888954", "0.5243351", "0.52357936", "0.52310264", "0.5223092", "0.50902563", "0.50137097", "0.5001475", "0.50006914", "0.49732167", "0.49649426", "0.49444085", "0.4934835", "0.49258074", "0.48915076", "0.48748025", "0.48632234", "0.48592734", "0.483806", "0.4826061", "0.47956386", "0.4787991", "0.47875097", "0.4765617", "0.47605944", "0.47521532", "0.4733891", "0.47311854", "0.4701568", "0.46870598", "0.4678005", "0.4677172", "0.46737483", "0.46629998", "0.46499524", "0.46434852", "0.4642391", "0.46402162", "0.4627549", "0.46013945", "0.45632368", "0.45582378", "0.45565656", "0.45515954", "0.4526332", "0.45195428", "0.45189366", "0.45066732", "0.44977325", "0.44956914", "0.44855538", "0.44804758", "0.44786912", "0.44639307", "0.44437864", "0.44412506", "0.44383854", "0.44235808", "0.4422211", "0.4420072", "0.44183898", "0.44126752", "0.4397362", "0.43956476", "0.43953407", "0.43951324", "0.43926933", "0.4381643", "0.4381367", "0.43806523", "0.43748412", "0.4373125", "0.43730307", "0.4365675", "0.4364334", "0.43562886", "0.43423724", "0.43383187", "0.43365765", "0.43338475", "0.4329346", "0.43243578", "0.43144724", "0.4313275", "0.43127012", "0.42939723" ]
0.719495
0
endregion loadCreditCardAccounts region loadTermLoanAccounts
private void loadTermLoanAccounts(String termLoanAccountFileName) { try { /* Open the file to read */ File inputFile = new File(termLoanAccountFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //reading... String currentLine = input.nextLine(); //parsing out on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); //parsing out data... int accountId = Integer.parseInt(splitLine[0]); double balance = Double.parseDouble(splitLine[1]); String ssn = splitLine[2]; double interestRate = Double.parseDouble(splitLine[3]); Date dateOpened = dateFormat.parse(splitLine[4]); Date dueDate = dateFormat.parse(splitLine[5]); Date dateNotified = dateFormat.parse(splitLine[6]); double currentPaymentDue = Double.parseDouble(splitLine[7]); Date lastPaymentDate = dateFormat.parse(splitLine[8]); boolean missedPayment = Boolean.parseBoolean(splitLine[9]); char loanType = splitLine[10].charAt(0); TermLoanType termLoanType; //this determines whether the loan is long or short. if (loanType == 'S') { termLoanType = TermLoanType.SHORT; } else { termLoanType = TermLoanType.LONG; } int years = Integer.parseInt(splitLine[11]); TermLoan termLoanAccount = new TermLoan(accountId, balance, ssn, interestRate, dateOpened, dueDate, dateNotified, currentPaymentDue, lastPaymentDate, missedPayment, termLoanType, years); ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId); termLoanAccount.setTransactions(accountTransactions); //adds term loan accounts accounts.add(termLoanAccount); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "public Collection<Integer> getLoanAccounts() {\n try {\n return costumerRepo.getAllAccounts(ssn, \"LineOfCreditAccount\");\n }catch (Exception ex) {\n rootLogger.error(\"JDBC: message: {}\", ex.getMessage());\n }\n return null;\n }", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}", "ArrayList<String> getAccounts(Klant klant) throws SessionExpiredException, IllegalArgumentException, RemoteException;", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "List<Account> getAccounts(String login);", "@RequestLine(\"GET /accounts\")\n AccountList getAccountsListOfUser();", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "@Transactional\r\n\tpublic Set<BudgetAccount> loadBudgetAccounts() {\r\n\t\treturn budgetAccountDAO.findAllBudgetAccounts();\r\n\t}", "public List <Account> getAllAccountsByRIB(String RIB);", "@Test(enabled=false)\n\tpublic void loanDetails(){\n\t\n\t\ttry{\n\t\tHomePage homePage=new HomePage(driver);\n\t\thomePage.clickOnSignIn();\n\t\t\n\t\tLoginActions loginAction=new LoginActions();\n\t\tloginAction.login(driver, \"username\", \"password\");\n\t\t\n\t\tAccountSummaryPage accountsummary= new AccountSummaryPage(driver);\n\t\taccountsummary.isAccountSummary();\n\t\t\n\t\tAccountActivityPage accountActivity=new AccountActivityPage(driver);\n\t\taccountActivity.clickOnAccountActivity();\n\t\t\n\t\taccountActivity.selectLoanAccount();\n\t\t\n\t\taccountActivity.getRowdata();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getRowdata(), \"RENT\");\t\n\t\t\n\t\tSystem.out.println(accountActivity.getRowdata());\n\t\t\n\t\t// Test case no - AccActShow_04 -no results for credit card are verified under this test only\n\t\n\t\taccountActivity.getCreditCard();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getCreditCard(), \"No Results\");\n\t\t}\n\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t}", "public ArrayList getAccountList() throws RemoteException, SQLException, Exception;", "private static void testdeleteAndAddLoanAccounts(String lineOfCreditId, List<LoanAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddLoanAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Loan Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Loan Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (LoanAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tLoanAccount addedLoan = linesOfCreditService.addLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Loan Account with ID=\" + addedLoan.getId() + \" to LoC=\" + lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "List<Account> getAccountsForCustomerId(int customerId);", "public void getUserAccounts(){\n UserAccountDAO userAccountsManager = DAOFactory.getUserAccountDAO();\n //populate with values from the database\n if(!userAccountsManager.readUsersHavingResults(userAccounts)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read user accounts from database. Please check your internet connection and try again.\");\n System.exit(-4);\n }\n }", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "public List getAllAccounts() {\n\t\treturn null;\r\n\t}", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "String getAccountList(int accountId);", "private List<Map<String, String>> loadCredits() {\n\t\tfinal String[] creditsArray = this.getResources().getStringArray(\n\t\t\t\tR.array.credits);\n\t\tfinal Credits credits = new Credits(creditsArray);\n\t\treturn credits.getListCredits();\n\t}", "public void loadAccount(Account account)\r\n {\r\n // TODO Remove this indication ?\r\n MessengerManager.showToast(this, getString(R.string.account_loading) + \" \" + account.getDescription());\r\n SessionUtils.setsession(this, null);\r\n SessionUtils.setAccount(this, account);\r\n if (account.getActivation() != null)\r\n {\r\n MessengerManager.showLongToast(this, getString(R.string.account_not_activated));\r\n }\r\n else\r\n {\r\n setProgressBarIndeterminateVisibility(true);\r\n AccountLoginLoaderCallback call = new AccountLoginLoaderCallback(this, account);\r\n // If the loader already exist, we do nothing.\r\n // It prevents to request OAuth token multiple times.\r\n if (getLoaderManager().getLoader(call.getAccountLoginLoaderId()) == null)\r\n {\r\n getLoaderManager().restartLoader(call.getAccountLoginLoaderId(), null, call);\r\n }\r\n }\r\n }", "private void clearAccounts() {\n userAccountListController.getUserAccountList().setAccountOfInterest(null);\n userAccountListController.getUserAccountList().setActiveCareProvider(null);\n }", "private void initAccountChoiceCache() {\n \tArrayList<AlertMeStorage.AlertMeUser> accounts = alertMe.getUserAccountList();\n \t//AlertMeStorage.AlertMeUser currentAcc = alertMe.getCurrentSession();\n \tint accSize = (accounts!=null && !accounts.isEmpty())? accounts.size():0;\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() START\");\n \taccountNamesChoiceList = null;\n \taccountIDsChoiceList = null;\n \tif (accSize>1) {\n \t\tint i = 0;\n \t\tint cSz = accSize;\n \t\tCollections.sort(accounts, AlertMeStorage.AlertMeUser.getComparator(false));\n \t\taccountNamesChoiceList = new String[cSz];\n \t\taccountIDsChoiceList = new long[cSz];\n \t\tfor (AlertMeStorage.AlertMeUser account: accounts) {\n \t\t\tboolean addToList = false;\n \t\t\tif (account!=null && account.id!=-1) {\n \t\t\t\taddToList = true;\n \t\t\t}\n \t\t\tif (addToList) {\n \t\t\t\taccountNamesChoiceList[i] = account.username;\n \t\t\t\taccountIDsChoiceList[i] = account.id;\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \t}\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() END\");\n }", "String getBillingAccountTermId();", "@Override\n public List<Account> getAccounts(Long customerId) {\n return customerDao.getAccounts(customerId);\n }", "ArrayList<Integer>getCatalog_IDs(int acc_no);", "private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.print(k + \": \" + accountList.get(k) + \" || \");\n\n }\n }", "@Transactional\r\n\tpublic List<BudgetAccount> findAllBudgetAccounts(Integer startResult, Integer maxRows) {\r\n\t\treturn new java.util.ArrayList<BudgetAccount>(budgetAccountDAO.findAllBudgetAccounts(startResult, maxRows));\r\n\t}", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "public List<Account> viewAllAccountsPaginated(int start, int limit) {\n\t\tList<Account> list = new ArrayList<>(accounts.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public String accountsOfferingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getAccount2MicroloansOffered().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of accounts providing micro loans: \" +total +\" worth a value of \"+sum;\n }", "public static List<Account> getAccounts()\n\t{\n\t\treturn Application.getAccountLibrary().getAccounts();\n\t}", "public java.lang.String CC_GetLandMarks(java.lang.String accessToken, java.lang.String accountNo) throws java.rmi.RemoteException;", "@Test\n public void retrieveAllLoanChargesTest() throws ApiException {\n Long loanId = null;\n List<GetSelfLoansLoanIdChargesResponse> response = api.retrieveAllLoanCharges(loanId);\n\n // TODO: test validations\n }", "List<AccountTypeDTO> lookupAccountTypes();", "List<UserAccount> getUserAccountListByCompany(Serializable companyId,\r\n Serializable creatorId, Serializable subsystemId);", "public List<Loan> getLoan();", "public LoanAccounting getAccounting();", "public List<String> loadAddressBook()\n\t{\n\t\treturn controller.listAllAddressBook();\n\t}", "private void loadAccountMailboxInfo(final long accountId, final long mailboxId) {\n mLoaderManager.restartLoader(LOADER_ID_ACCOUNT_LIST, null,\n new LoaderCallbacks<Cursor>() {\n @Override\n public Loader<Cursor> onCreateLoader(int id, Bundle args) {\n return AccountSelectorAdapter.createLoader(mContext, accountId, mailboxId);\n }\n\n @Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n mCursor = (AccountSelectorAdapter.CursorWithExtras) data;\n updateTitle();\n }\n\n @Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mCursor = null;\n updateTitle();\n }\n });\n }", "public List<Leveltemp> findAcct() {\n\t\treturn getHibernateTemplate().find(\"from Leveltemp e where e.roleacct = 'N'\");\n\t}", "private void parseLoan(String[] info, Account account) {\n Loan l = new Loan(Float.parseFloat(info[1]), info[2],\n LocalDate.parse(info[3], dateTimeFormatter),\n Loan.Type.ALL);\n l.updateExistingLoan(info[4], info[5], Integer.parseInt(info[6]), Float.parseFloat(info[7]));\n account.getLoans().add(l);\n }", "private void calculateLoanPayment() {\n double interest =\n Double.parseDouble(tfAnnualInterestRate.getText());\n int year = Integer.parseInt(tfNumberOfYears.getText());\n double loanAmount =\n Double.parseDouble(tfLoanAmount.getText());\n\n // Create a loan object. Loan defined in Listing 10.2\n loan lloan = new loan(interest, year, loanAmount);\n\n // Display monthly payment and total payment\n tfMonthlyPayment.setText(String.format(\"$%.2f\",\n lloan.getMonthlyPayment()));\n tfTotalPayment.setText(String.format(\"$%.2f\",\n lloan.getTotalPayment()));\n }", "public List<Docl> getMaintenanceCreditARTaxList(MaintenanceRequest mrq){\n\t\tList<Docl> taxDoclList = new ArrayList<Docl>();\n\t\ttry{\n\t\t\tList<DoclPK> taxDoclPKList = maintenanceInvoiceDAO.getMaintenanceCreditARTaxDoclPKs(mrq);\n\t\t\tfor(DoclPK doclPK : taxDoclPKList){\n\t\t\t\ttaxDoclList.add(doclDAO.findById(doclPK).orElse(null));\n\t\t\t}\n\t\t\treturn taxDoclList;\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAR tax for purchase order number: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "private void cargarMallas() {\n\tmallas.clear();\n\ttry {\n\t mallas = registroServicio.obtenerMallaCurricular(infoCarreraDto);\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t return;\n\t}\n }", "public void printAccounts() { \r\n\t\tif ( size == 0 ) {\r\n\t\t\tSystem.out.println(\"Accounts is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"--Listing accounts in the database--\");\r\n\t\tfor(int i = 0; i < accounts.length; i++) {\r\n\t\t\tif ( accounts[i] != null ) {\r\n\t\t\t\tSystem.out.println(accounts[i].toString());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"--end of listing--\");\r\n\t\tSystem.out.println();\r\n\t\treturn;\r\n\t}", "@RequestMapping(\"/branch/accounts\")\n @ResponseBody\n public List<Account> getAllAccountsInBranch(@RequestParam(\"branchCode\") int branchCode){\n return accountService.getAllAccountsInBranch(branchCode);\n }", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "private void loadAccount() {\n if (mSingleAccountApp == null) {\n return;\n }\n\n mSingleAccountApp.getCurrentAccountAsync(new ISingleAccountPublicClientApplication.CurrentAccountCallback() {\n @Override\n public void onAccountLoaded(@Nullable IAccount activeAccount) {\n // You can use the account data to update your UI or your app database.\n mAccount = activeAccount;\n updateUI();\n }\n\n @Override\n public void onAccountChanged(@Nullable IAccount priorAccount, @Nullable IAccount currentAccount) {\n if (currentAccount == null) {\n // Perform a cleanup task as the signed-in account changed.\n showToastOnSignOut();\n }\n }\n\n @Override\n public void onError(@NonNull MsalException exception) {\n displayError(exception);\n }\n });\n }", "public static String isBillLate(String account){\n return \"select cb_late from current_bills where cb_account = '\"+account+\"'\";\n }", "public void loanTerm_Validation() {\n\t\thelper.assertString(loanTerm_AftrLogin(), payOffOffer.loanTerm_BfrLogin());\n\t\tSystem.out.print(\"The loan Term is: \" + loanTerm_AftrLogin());\n\n\t}", "public GlAccountBank () {\n\t\tsuper();\n\t}", "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(tfNumberOfYears.getText());\n\t\tdouble loanAmount =\n\t\t\t\tDouble.parseDouble(tfLoanAmount.getText());\n\t\t\n\t\t//crate a loan object\n\t\t Loan loan = new Loan(interest, year, loanAmount);\n\t\t \n\t\t //Display monthly payment and total payment\n\t\t tfMonthlyPayment.setText(String.format(\"$%.2f\", loan.getMonthlyPayment()));\n\t\t tfTotalPayment.setText(String.format(\"$%.2f\", loan.getTotalPayment()));\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<MonthlyBalances> getAccountMonthlyBalance(String accountId, String filter, String fields,\n String expands, String sort) {\n try {\n WebClient wc = getJsonWebClient(URL_BASE_ACCOUNTS + accountId + URL_MOUNTHBALANCE);\n if ( !StringUtils.isEmpty(filter) ) {\n wc.query(FILTER, filter);\n }\n return (List<MonthlyBalances>)wc.getCollection(MonthlyBalances.class);\n } catch (Exception e) {\n throw new RestClientException(\n \"Servicio no disponible - No se han podido cargar la información para la gráfica de depositos Electrónicos, para mayor información comunicate a nuestras líneas BBVA\");\n }\n }", "private OtherChargesDTO[] deInitializeLRC(OtherChargesDTO[] otherChargesDTO) {\t\t\n\t\tfor(int i = 0; i < otherChargesDTO.length; i++){\n\t\t\totherChargesDTO[i].setLrCharge(0);\n\t\t}\t\t\n\t\treturn otherChargesDTO;\n\t}", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}", "public SHrsLoan(SDbLoan loan) {\n moLoan = loan;\n maPayrollReceiptEarnings = new ArrayList<>();\n maPayrollReceiptDeductions = new ArrayList<>();\n }", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "public List<CDAccount> findAccounts(Integer id) throws AccountNotFoundException {\n\t\treturn userService.findById(id).getCdAccounts();\n\t}", "public static ArrayList<Loan> getAllLoans() throws SQLException{\n\t\tConnection conn = DataSource.getConnection();\n\t\tArrayList<Loan> result = null;\n\t\ttry{\n\t\t\t\n\t\t\tresult = new ArrayList<Loan>();\n\t\t\tString query = \"SELECT * FROM loan;\";\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tResultSet rs = stat.executeQuery(query);\n\t\t\twhile (rs.next()){\n\t\t\t\tresult.add((new Loan(rs.getString(\"client_id\"), rs.getDouble(\"principal_amount\"), rs.getDouble(\"interest_rate\"), rs.getInt(\"no_years\"), \n\t\t\t\t\t\trs.getInt(\"no_payments_yearly\"), rs.getString(\"start_date\"))));\n\t\t\t}\n\t\t\treturn result;\n\t\t}finally{\n\t\t\tconn.close();\n\t\t}\n\t}", "public void getAccountCheckins( Integer account_id ){\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_CHECKINS;\r\n this.makeVolleyRequest( url, params );\r\n }", "public ArrayList<BankAccount> getAccounts() {\n return accounts;\n }", "public MnoAccount getAccountById(String id);", "java.util.List<java.lang.String> getServiceAccountIdTokensList();", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public FilteredBankAccountsIterator(BankAccountsBinarySearchTree bankAccountsTree) {\r\n \tthis.bankAccountsTree = bankAccountsTree;\r\n \tcurrent = bankAccountsTree.root.data;\r\n \tbankAccounts = new LinkedList();\r\n \t//Initialize an iterator goes over the tree\r\n \tBinaryTreeInOrderIterator <BankAccount> iter = new BinaryTreeInOrderIterator(bankAccountsTree.root);\r\n \t//check if there is bank account with a balance over than 100 \r\n \twhile(iter.hasNext()) {\r\n \t\tcurrent=iter.next();\r\n \t\tif(current.getBalance()>100) {\r\n \t\t\t//if such a bank account exist, add it to the end of the list\r\n \t\t\tbankAccounts.add(current);\r\n \t\t}\r\n \t}\r\n }", "public TbaccountExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public String accountsReceivingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getAccount2MicroloansReceived().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of accounts receiving micro loans: \" +total +\" worth a value of \"+sum;\n }", "void setAccountId(Long accountId);", "public static void reInitialize() {\r\n accounts = new Hashtable<String, Account>();\r\n }", "@Test\n public void testGetUserAccounts() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n List<AccountOfUser> accs = new ArrayList<>();\n accs.add(acc);\n accs.add(acc2);\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.getUserAccounts(user.getPassport()), is(accs));\n }", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public static void getAcountsWithlName(String lastName) {\n\t\t\t\n\t\t\taccounts.clear();\n\t\t\t\n\t\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t\t \"from ser322.account,ser322.customer \" + \n\t\t \"WHERE customer.accID = account.accID AND lName =\" + \"'\" + lastName + \"'\";\n\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t\t ResultSet rs = stmt.executeQuery(query);\n\t\t while (rs.next()) {\n\t\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t\t \n\t\t }\n\t\t \n\t\t } catch (SQLException e ) {\n\t\t \tSystem.out.println(\"QUERY WRONG - getAcountsWithlName\");\n\t\t }\n\t\n\t\t}", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "public void initialiseCred() {\n t1Cred = 0;\n t2Cred = 0;\n t1Sel.getItems().forEach(m -> t1Cred += m.getCredits());\n t2Sel.getItems().forEach(m -> t2Cred += m.getCredits());\n yrSel.getItems().forEach(m -> t1Cred += (m.getCredits() / 2));\n yrSel.getItems().forEach(m -> t2Cred += (m.getCredits() / 2)); //adds yr long credits split to both terms\n txtt1Cred.setText(\"\" + t1Cred);\n txtt2Cred.setText(\"\" + t2Cred);\n }", "List<AccountClasificationDTO> lookupAccountClasifications();", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "private void retrieveEntries() {\n entriesRetrieved = true;\n List rcerts = tbsCertList.getRevokedCertificates();\n if (rcerts == null) {\n return;\n }\n entriesSize = rcerts.size();\n entries = new ArrayList(entriesSize);\n // null means that revoked certificate issuer is the same as CRL issuer\n X500Principal rcertIssuer = null;\n for (int i=0; i<entriesSize; i++) {\n TBSCertList.RevokedCertificate rcert =\n (TBSCertList.RevokedCertificate) rcerts.get(i);\n X500Principal iss = rcert.getIssuer();\n if (iss != null) {\n // certificate issuer differs from CRL issuer\n // and CRL is indirect.\n rcertIssuer = iss;\n isIndirectCRL = true;\n // remember how many leading revoked certificates in the\n // list are issued by the same issuer as issuer of CRL\n // (these certificates are first in the list)\n nonIndirectEntriesSize = i;\n }\n entries.add(new X509CRLEntryImpl(rcert, rcertIssuer));\n }\n }", "@Override\n\tpublic List<Account> GetAllAccounts() {\n\t\tif(accountList.size() > 0)\n\t\t\treturn accountList;\n\t\treturn null;\n\t}", "List<Transcription> selectTranscriptions(int accountId, String naId,\n\t\t\tString objectId, int offset, int rows) throws DataAccessException,\n\t\t\tUnsupportedEncodingException;", "public void displayAllLoans() {\n try (Statement stmt = connection.createStatement(); // TODO: explain try with resources\n ResultSet rs = stmt.executeQuery(SQL_FIND_ALL_LOANS)) {\n\n System.out.print(\"\\n\\nThe following are the loans in ToyBank:\\n\\n\");\n while (rs.next()) { // TODO: iterating through the ResultSet\n displayOneLoan(rs);\n }\n System.out.print(\"\\n\\n\");\n } catch (SQLException sqle) {\n LOGGER.log(Level.SEVERE, \"Unable to execute DB statement due to error {0}\", sqle.getMessage());\n }\n }", "public void setLinkedacc(int linkedacc) {\n\t\tthis.linkedacc = linkedacc;\n\t}", "void activateAllAccounts(File file) throws ServiceException;", "public SeeAnAccount() {\n initComponents();\n }", "public Account getAccountByAccountNo(int accNo) {\n Account account = accountRepository.findByAccountNo(accNo);\n return account;\n }", "public List<CoinbaseAccount> getCoinbaseAccounts() throws IOException {\n\n String path = \"/v2/accounts\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n \n return coinbase.getAccounts(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "AccountDetail getAccount(String number) throws Exception;", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "private void loadCards() {\n adapter = new LibrarianAccountManagerArrayAdapter(context, 0, accounts);\n\n\n //create a database reference so we can access the firebase database.\n final DatabaseReference database = FirebaseDatabase.getInstance().getReference();\n\n //set a listener so we can loop over values in the database.\n database.child(\"Users\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n //loop over the dataSnapshot children.\n for(DataSnapshot d : dataSnapshot.getChildren()) {\n\n //get the name, and status as linked under the name child.\n String name = d.child(\"Name\").getValue().toString();\n String status = d.child(\"Status\").getValue().toString();\n\n //if the user is a librarian, we don't need to add their checkout data.\n if (status.equals(\"Librarian\")) continue;\n\n //only if the user has books checked out, get the value otherwise initialize it to 0.\n int booksCheckedOut = 0;\n if(d.hasChild(\"BooksCheckedOut\")) { //prevents a crash.\n booksCheckedOut = (int) d.child(\"BooksCheckedOut\").getChildrenCount();\n }\n\n //only if the user has books on hold, get the value otherwise initialize it to 0.\n int booksOnHold = 0;\n if(d.hasChild(\"BooksOnHold\")) { //prevents a crash.\n booksOnHold = (int) d.child(\"BooksOnHold\").getChildrenCount();\n }\n\n //only if the user has overdue books, get the value otherwise initialize it to 0.\n int overdueBookCount = 0;\n for(DataSnapshot books : d.child(\"BooksCheckedOut\").getChildren()) {\n\n //compute the (potential) overdue time a book has been out for.\n long days = TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - books.getValue(Long.class));\n\n //if days is more than 1 for a teacher then it is overdue.\n //if days is more than 1 for a student then it is overdue.\n if(days > 1) {\n //increment overdueBookCount only if the book has been due for over 1 day.\n overdueBookCount++;\n }\n }\n\n //add the new account information to the database.\n accounts.add(new AccountManagerItem(name, status, booksCheckedOut, booksOnHold, overdueBookCount));\n\n }\n\n //notify the adapter that we have new data so we can update the UI.\n adapter.notifyDataSetChanged();\n listView.setAdapter(adapter);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n }", "private void loadMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (varTmpDir.exists()) {\n FileInputStream fileIn = new FileInputStream(varTmpDir);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n longTermMemory = (HashMap<String, BoardRecord>) in.readObject();\n in.close();\n fileIn.close();\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"File not found\");\n c.printStackTrace();\n return;\n }\n\n System.out.println(\"RECALLED LONG TERM MEMORIES FROM \" + brainLocation + \": \" + longTermMemory.toString());\n }", "public java.lang.String billing_GetAreaCodes(java.lang.String accessToken) throws java.rmi.RemoteException;", "List<Customer> loadAllCustomer();", "@RequestLine(\"GET /v1/accounts/{accountId}/features\")\n @Headers({\n \"Accept: application/json\",\n })\n List<Feature> listFeaturesAccounts(@Param(\"accountId\") String accountId);" ]
[ "0.5649928", "0.56111956", "0.54479164", "0.53980935", "0.5179619", "0.5168199", "0.5140674", "0.51271516", "0.51196533", "0.5043029", "0.49726382", "0.49442443", "0.49310264", "0.49270138", "0.48633078", "0.48611084", "0.4839809", "0.48233896", "0.4803957", "0.48016557", "0.47495955", "0.47447017", "0.47444382", "0.47290683", "0.46864352", "0.46779227", "0.46752542", "0.46712258", "0.46346265", "0.4629211", "0.4626192", "0.45922402", "0.45916831", "0.4580812", "0.4571492", "0.45481437", "0.4533362", "0.45332465", "0.4512926", "0.44978708", "0.44932133", "0.44905156", "0.4479414", "0.44780692", "0.44642538", "0.44554985", "0.44486976", "0.44389114", "0.4431001", "0.4418308", "0.44146666", "0.44091666", "0.44080743", "0.44063807", "0.44044912", "0.43866852", "0.43864763", "0.43806615", "0.43751398", "0.43624273", "0.4359973", "0.43574888", "0.43563542", "0.43559325", "0.4355919", "0.43557835", "0.4355361", "0.43473488", "0.43445024", "0.43165493", "0.4314249", "0.4304364", "0.43037805", "0.4287507", "0.42743012", "0.42725638", "0.42648217", "0.42613468", "0.4259136", "0.4258036", "0.4256757", "0.42561647", "0.424946", "0.4244818", "0.42359012", "0.423046", "0.42273274", "0.4214828", "0.42123175", "0.42086112", "0.42067558", "0.42062292", "0.42055157", "0.42035818", "0.4202188", "0.41989133", "0.41978857", "0.41972104", "0.41968617", "0.41965052" ]
0.68836474
0
endregion loadTermLoanAccounts region loadTransactions this function loads the transaction information from a flat file and stores the information in the accounts array.
private void loadTransactions(String transactionFileName) { try { /* Open the file to read */ File inputFile = new File(transactionFileName); /* Create a scanner to begin reading from file */ Scanner input = new Scanner(inputFile); while (input.hasNextLine()) { //read... String currentLine = input.nextLine(); //parse on commas... String[] splitLine = currentLine.split(","); //DateFormat class to parse Date from file DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); int transactionId = Integer.parseInt(splitLine[0]); String accountTypeChar = splitLine[1]; TransactionType transactionType = null; switch (accountTypeChar) { case "D": transactionType = TransactionType.DEBIT; break; case "C": transactionType = TransactionType.CREDIT; break; case "T": transactionType = TransactionType.TRANSFER; } String description = splitLine[2]; Date date = dateFormat.parse(splitLine[3]); double amount = Double.parseDouble(splitLine[4]); int accountId = Integer.parseInt(splitLine[5]); Transaction transaction = new Transaction(transactionId, transactionType, description, date, amount, accountId); transactionHashMap.putIfAbsent(accountId, new ArrayList<>()); transactionHashMap.get(accountId).add(transaction); } input.close(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "public void loadTransactions(List<Transaction> transactions)\n\t\t\tthrows IOException {\n\n\t\tfor (Transaction transaction : transactions) {\n\t\t\t\n\t\t\tString yearMonth = monthYearFormat\n\t\t\t\t\t.format(transaction.getTxtnDate());\n\t\t\tString rowKey =transaction.getAcountId() + \"-\" + yearMonth;\t\t\t\n\t\t\tdouble amount = transaction.getAmount();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tthis.writer.addRow(rowKey, transaction.getTxtnDate(), UUID.fromString(transaction.getTxtnId()), amount, transaction.getType(), transaction.getReason());\n\t\t\t} catch (InvalidRequestException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tSystem.exit(5);\n\t\t\t}\t\n\t\t}\n\t}", "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "void activateAllAccounts(File file) throws ServiceException;", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public final void loadAccounts() {\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email, timezone from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n while (resultSet.next() ) {\n AfAccount account = createAccountFromResultSet(resultSet);\n }\n }\n });\n }", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "private void initTransactions() {\n\n\t transactions = ModelFactory.createDefaultModel();\n\t try\n\t {\n\t\t\ttransactions.read(new FileInputStream(\"transactions.ttl\"),null,\"TTL\");\n\t\t}\n\t catch (FileNotFoundException e) {\n\t \tSystem.out.println(\"Error creating tansactions model\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public List<Transaction> readByAccountId(int accountId) throws TransactionNotFoundException {\n\t\treturn transactionDAO.selectByAccountId(accountId);\n\t}", "public static Response controllerGetTransactions(\n Account account,\n Token authorization\n ) {\n if (userOwnsAccount(account.accountId, authorization.userId) == null) {\n return new Response(\n 401,\n Router.AUTHENTICATION_ERROR,\n Response.ResponseType.TEXT\n );\n }\n try {\n ArrayList<Transaction> transactions = TransactionDatabase.retrieveTransactions(\n account.accountId\n );\n return new Response(200, transactions, Response.ResponseType.JSON);\n } catch (SQLException e) {\n return new Response(500, SQL_ERROR, Response.ResponseType.TEXT);\n }\n }", "public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public Task(Account[] allAccounts, String trans) {\n accounts = allAccounts;\n transaction = trans;\n }", "@Transactional\r\n\tpublic Set<BudgetAccount> loadBudgetAccounts() {\r\n\t\treturn budgetAccountDAO.findAllBudgetAccounts();\r\n\t}", "public Transaction[] getTransactionsList() throws Exception;", "public List<Transaction> readAllTransaction() throws TransactionNotFoundException {\n\t\treturn transactionDAO.listAccountTransactionTable();\n\t}", "private void parseLoan(String[] info, Account account) {\n Loan l = new Loan(Float.parseFloat(info[1]), info[2],\n LocalDate.parse(info[3], dateTimeFormatter),\n Loan.Type.ALL);\n l.updateExistingLoan(info[4], info[5], Integer.parseInt(info[6]), Float.parseFloat(info[7]));\n account.getLoans().add(l);\n }", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.TransactionDetails> getTransactions(\n lnrpc.Rpc.GetTransactionsRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getGetTransactionsMethod(), getCallOptions()), request);\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "@GET\n @Path(\"account/transactions/{account_id}\")\n public Response getAccountTransactions(@PathParam(\"account_id\") \n String accountId) {\n \n String output = \"This entry point will return all transactions related to the account: \" + accountId;\n return Response.status(200).entity(output).build();\n \n }", "public Cursor fetchAllTransactionsForAccount(long accountID){\n\t\treturn fetchAllTransactionsForAccount(getAccountUID(accountID));\n\t}", "public void loadFromLocalXML(Context context) {\n\n AccountManager.getInstance().reset();\n int _cnt = PreferenceManager.getDefaultSharedPreferences(context).getInt(\"Account_amount\", 0);\n for (int _iter = 0; _iter < _cnt; _iter++) {\n String[] _tmp;\n _tmp = PreferenceManager.getDefaultSharedPreferences(context).getString(\"Account_\" + String.valueOf(_iter), \"\").split(String.valueOf(separator));\n this.addAccount(_tmp[0], _tmp[1], _tmp[2], Integer.valueOf(_tmp[3]));\n }\n\n }", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "@Override\r\n\tpublic List<TransactionLog> getAllTransactionLogsForAccount(int accountId) {\n\t\treturn null;\r\n\t}", "private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<Transaction> readObject(String filename){\n\n\t\tlogger.finer(\" Reading object (Deserializtion) used\");\n\t\tList<Transaction> transactionList = null;\n\n\t\ttry(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))){\n\t\t\ttransactionList = (List<Transaction>)ois.readObject();\n\t\t}\n\t\tcatch(IOException | ClassNotFoundException ioe){\n\n\t\t\tSystem.out.println(\"Exception occurred during deserialization\");\n\t\t} \n\n\t\t//\t\tpresentFileContents(transactionList);\n\n\t\treturn (List<Transaction>) transactionList;\n\t}", "private void loadNonDictionaryTerms(String filePathNonDictionaryAuto) throws IOException {\n File fileAnnotation = new File(filePathNonDictionaryAuto);\n if (!fileAnnotation.exists()) {\n fileAnnotation.createNewFile();\n }\n FileReader fr;\n fr = new FileReader(fileAnnotation);\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n\n nonDictionaryTerms.add(line.trim().toLowerCase());\n System.out.println(\"Loading Non Dictionary Terms: \" + line);\n }\n br.close();\n fr.close();\n System.out.println(\"Non Dictionary Terms Loaded\");\n }", "public lnrpc.Rpc.TransactionDetails getTransactions(lnrpc.Rpc.GetTransactionsRequest request) {\n return blockingUnaryCall(\n getChannel(), getGetTransactionsMethod(), getCallOptions(), request);\n }", "public void inicializarTodosLosbalances() {\r\n\t\tif(balancesLoaded)\r\n\t\t\treturn;\r\n\t\tthis.empresas.forEach(empresa-> this.inicializarBalances(empresa));\r\n\t\tbalancesLoaded = true;\r\n\t}", "@Override\n\tpublic List<CashTransactionDtl> getCashTransactionDtlByAccount(\n\t\t\tMap<String, Object> params) throws ServiceException {\n\t\treturn cashTransactionDtlMapper.queryCashTransactionRecord(params);\n\t}", "void activateAccount(File file, int accountID) throws ServiceException;", "void blockedAllAccounts(File file) throws ServiceException;", "List<Transcription> selectTranscriptions(int accountId, String naId,\n\t\t\tString objectId, int offset, int rows) throws DataAccessException,\n\t\t\tUnsupportedEncodingException;", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "public void getTransactions(lnrpc.Rpc.GetTransactionsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.TransactionDetails> responseObserver) {\n asyncUnimplementedUnaryCall(getGetTransactionsMethod(), responseObserver);\n }", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void getTransactions(lnrpc.Rpc.GetTransactionsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.TransactionDetails> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getGetTransactionsMethod(), getCallOptions()), request, responseObserver);\n }", "@Test\n public void retrieveTransactionTest() throws ApiException {\n Long loanId = null;\n Long transactionId = null;\n GetSelfLoansLoanIdTransactionsTransactionIdResponse response = api.retrieveTransaction(loanId, transactionId);\n\n // TODO: test validations\n }", "public Transaction[] getTransactionHistory(long socialSecurityNumber, String userName, String password) throws AuthenticationException{\r\n return (Transaction[]) (txHistoryByPatron.get(getPatron(socialSecurityNumber))).toArray();\r\n }", "public void loadAccount(Account account)\r\n {\r\n // TODO Remove this indication ?\r\n MessengerManager.showToast(this, getString(R.string.account_loading) + \" \" + account.getDescription());\r\n SessionUtils.setsession(this, null);\r\n SessionUtils.setAccount(this, account);\r\n if (account.getActivation() != null)\r\n {\r\n MessengerManager.showLongToast(this, getString(R.string.account_not_activated));\r\n }\r\n else\r\n {\r\n setProgressBarIndeterminateVisibility(true);\r\n AccountLoginLoaderCallback call = new AccountLoginLoaderCallback(this, account);\r\n // If the loader already exist, we do nothing.\r\n // It prevents to request OAuth token multiple times.\r\n if (getLoaderManager().getLoader(call.getAccountLoginLoaderId()) == null)\r\n {\r\n getLoaderManager().restartLoader(call.getAccountLoginLoaderId(), null, call);\r\n }\r\n }\r\n }", "@GetMapping(value = \"/payments/{accountNumber}\")\n\tpublic List<PaymentDTO> getAccountTransactions(@PathVariable(\"accountNumber\") final String accountNumber) {\n\t\treturn this.paymentsService.getAccountTransactions(accountNumber);\n\t}", "public static List<BangkingTransaction> findByAccountNumber(Long acc) {\n\t\treturn Ebean.find(BangkingTransaction.class).select(\"transaction_id\").where().eq(\"senderAccount.accountNumber\", acc).findList();\r\n\t\t\r\n\t}", "private static void testdeleteAndAddLoanAccounts(String lineOfCreditId, List<LoanAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddLoanAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Loan Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Loan Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (LoanAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tLoanAccount addedLoan = linesOfCreditService.addLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Loan Account with ID=\" + addedLoan.getId() + \" to LoC=\" + lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "private void setUserAccount() throws FileNotFoundException\r\n\t{\r\n\t\tint index = 0;\r\n\t\tFile inputFile = new File(\"UserAccount.txt\");\r\n\t\tScanner input = new Scanner(inputFile);\r\n\t\tif (!inputFile.exists())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The text file \\\"UserAccount.txt\\\" is missing\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\twhile(input.hasNextLine())\r\n\t\t{\r\n\t\t\tuserAccounts[0][index] = input.nextLine();\t\t\t//stores the username\r\n\t\t\tuserAccounts[1][index] = input.nextLine();\t\t\t//stores the password\r\n\t\t\tnumOfUsers++;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "public boolean insertTransactionsAndCreateAccounts(List<Transaction> transactions) {\n\t\ttry (final AutoCommittingHandle handle = new AutoCommittingHandle(dbi)) {\n\t\t\ttry {\n\t\t\t\t// fetch all existing accounts, initializing a map entry for each that contains an empty set of\n\t\t\t\t// transactions as its value\n\t\t\t\tfinal Map<Account, List<Transaction>> existingAccounts = new HashMap<>();\n\t\t\t\tfor (final Account existingAccount : getAccountsWithTransactions(handle)) {\n\t\t\t\t\texistingAccounts.put(existingAccount, new ArrayList<>());\n\t\t\t\t}\n\n\t\t\t\t// a map of new accounts to add\n\t\t\t\tfinal Map<Account, List<Transaction>> newAccounts = new HashMap<>();\n\n\t\t\t\t// sort new transactions into the map of accounts\n\t\t\t\tfor (final Transaction transaction : transactions) {\n\t\t\t\t\tfinal Optional<Account> existingAccount = existingAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\t\t\t\t\tfinal Optional<Account> newAccount = newAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\n\t\t\t\t\tif (!existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tnewAccounts.get(newAccount.get()).add(transaction);\n\t\t\t\t\t} else if (existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\texistingAccounts.get(existingAccount.get()).add(transaction);\n\t\t\t\t\t} else if (!existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\tfinal List<Transaction> newTransactions = Arrays.asList(transaction);\n\t\t\t\t\t\t// TODO: can we assume account type and balance/currency? - instead, prompt user for details?\n\t\t\t\t\t\tfinal Account account = Account.newBuilder(transaction.getAccountNumber())\n\t\t\t\t\t\t .setType(AccountType.CHECKING)\n\t\t\t\t\t\t .setBalance(Money.zero(CurrencyUnit.CAD))\n\t\t\t\t\t\t .addTransactions(newTransactions)\n\t\t\t\t\t\t .build();\n\t\t\t\t\t\tnewAccounts.put(account, newTransactions);\n\t\t\t\t\t} else if (existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tthrow new IllegalStateException(\"Account can't exist in new and existing maps\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : newAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = Money.zero(entry.getKey().getBalance().getCurrencyUnit())\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// insert a copy of the account with the correct balance and list of transactions\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\tinsertAccountWithTransactions(handle, updatedAccount);\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : existingAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = entry.getKey()\n\t\t\t\t\t .getBalance()\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// update the account with the correct balance and set of transactions\n\t\t\t\t\t// this adds the new transactions to the set of transactions already in the account\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\taccountDao.updateAccount(handle, updatedAccount);\n\t\t\t\t\ttransactionDao.insertTransactions(handle, entry.getValue());\n\t\t\t\t}\n\t\t\t} catch (final Exception ex) {\n\t\t\t\tlog.error(\"Failed to insert tranactions\", ex);\n\t\t\t\thandle.rollback();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public void loadActivitiesFromCsv(UserTrees tree, LocalDateTime timePeriodBegin, LocalDateTime timePeriodEnd) {\n\t\t\n\t\tActivity atividade;\n\t\tNode<Object> userNode, timeNode, pcNode;\n\t\tString csvLine = getNextLine();\n\t\t/*Verifies if the line is a header. ignores it if that's the case*/\n\t\tPattern p = Pattern.compile(\"/id|date|user|pc|activity/i\");\n\t\tMatcher m = p.matcher( csvLine );\n\t\tif(!m.find()) {\n\t\t\tatividade = (Activity) stringsToClass( parseCsvLine( csvLine ) );\n\t\t\t\n\t\t\tuserNode = tree.getUserNode( atividade.getUserIdentifier() );\n\t\t\ttimeNode = userNode.getChild(0);\n\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\tloadActivityIntoPc(pcNode, atividade);\t\n\t\t\tif(atividade.getDate().isAfter(timePeriodBegin) && atividade.getDate().isBefore(timePeriodEnd))\n\t\t\t{\n\t\t\t\ttimeNode = userNode.getChild(1);\n\t\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\t\tloadActivityIntoPc(pcNode, atividade);\n\t\t\t}\n\t\t}\n\t\tcsvLine = getNextLine();\n\t\twhile(csvLine != null)\n\t\t{\n\t\t\tatividade = (Activity) stringsToClass( parseCsvLine( csvLine ) );\n\t\t\tif(atividade==null)\n\t\t\t{\n\t\t\t\tcsvLine = getNextLine();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tuserNode = tree.getUserNode( atividade.getUserIdentifier() );\n\t\t\tif(userNode == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttimeNode = userNode.getChild(0);\n\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\tloadActivityIntoPc(pcNode, atividade);\t\n\t\t\tif(timePeriodBegin == null || timePeriodEnd == null) \n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(atividade.getDate().isAfter(timePeriodBegin) && atividade.getDate().isBefore(timePeriodEnd))\n\t\t\t{\n\t\t\t\ttimeNode = userNode.getChild(1);\n\t\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\t\tloadActivityIntoPc(pcNode, atividade);\n\t\t\t}\n\t\t\tcsvLine = getNextLine();\n\t\t}\n\t\t\n\t}", "private void loadMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (varTmpDir.exists()) {\n FileInputStream fileIn = new FileInputStream(varTmpDir);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n longTermMemory = (HashMap<String, BoardRecord>) in.readObject();\n in.close();\n fileIn.close();\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"File not found\");\n c.printStackTrace();\n return;\n }\n\n System.out.println(\"RECALLED LONG TERM MEMORIES FROM \" + brainLocation + \": \" + longTermMemory.toString());\n }", "public void loadFileList() {\n\n if (mCredential.getSelectedAccountName() == null) {\n chooseAccount();\n } else {\n new MakeRequestTask(mCredential,MakeRequestTask.TASK_TYPE_FILELIST).execute();\n\n }\n }", "public void loadArenas() {\n\t\tLogger logger = getLogger();\n\t\tFile arenaFolder = getArenaFolder();\n\t\tif (!arenaFolder.exists()) {\n\t\t\tarenaFolder.mkdirs();\n\t\t}\n\n\t\tCollection<File> arenas = FileUtils.listFiles(arenaFolder, null, false);\n\n\t\tif (arenas.isEmpty()) {\n\t\t\tlogger.info(\"No arenas loaded for \" + getName());\n\t\t\treturn;\n\t\t}\n\n\t\tfor (File file : arenas) {\n\t\t\ttry {\n\t\t\t\tArena arena = new Arena(file);\n\t\t\t\tarena.load();\n\t\t\t\tarenaManager.addArena(arena);\n\t\t\t\tlogger.info((\"Loaded arena \" + arena.toString()));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tlogger.info(\"Unable to load arena from file: \" + file.getName());\n\t\t\t}\n\t\t}\n\n\t}", "@GET\n @Path( \"transactions\" )\n void getTransactions( @QueryParam( \"orderId\" ) Long orderId,\n @QueryParam( \"invoiceId\" ) Long invoiceId,\n SuccessCallback<Items<Transaction>> callback );", "public List<Transaction> readByTransactionId(int transactionId) throws TransactionNotFoundException {\n\t\treturn transactionDAO.selectByTransactionId(transactionId);\n\t}", "public static void main(String[] args) throws FileNotFoundException\r\n\t{\n\t\tBank b1 = new Bank();\r\n//\t\tb1.setCustomers(b1.LoadCustomersFromFile());\r\n\t\tSystem.out.println(b1.printCustomersToString());\r\n\t\tSystem.out.println(b1.printTransactionsToString());\r\n\t\tCustomer customer = b1.getCustomers().get(5);\r\n\t\tAccount account = b1.getCustomers().get(5).getAccounts().get(0);\r\n//\t\taccount.createMonthlyStatement(\"Oct\", 2019, account, customer, b1);\r\n//\t\tb1.setTransactions(b1.LoadTransactionsFromFile());\r\n\t\tSystem.out.println(b1);\r\n//\t\tBank b1=runcreate();\r\n//\t\tSystem.out.println(b1);\r\n//\t\tSaveorLoadBank.LoadBankFromFile();\r\n//\t\tArrayList<Customer> customers = b1.getCustomers();\r\n//\t\tCustomer c1 = customers.get(4);\r\n//\t\tCustomer c2 = customers.get(5);\r\n//\t\tSystem.out.println(customers.get(4));\r\n//\t\tSystem.out.println(customers.get(5));\r\n//\t\tAccount a1 = customers.get(4).getAccounts().get(0);\r\n//\t\tAccount a2 = customers.get(5).getAccounts().get(0);\r\n//\t\tTransferManager.Transfer(c1, a1, c2, a2, (long) 100);\r\n//\t\tSystem.out.println(c1);\r\n//\t\tSystem.out.println(c2);\r\n//\t\tSystem.out.println(b1);\r\n//\t\tSystem.out.println(b1);\r\n\t\tb1.saveTofilePrintWriter();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "@Override\n\tpublic List<Transaction> findByAccount(Integer account) {\n\t\treturn null;\n\t}", "public static ArrayList<Loan> readData(String file) throws FileNotFoundException {\n // Scanner used to read in the data from the file.\n Scanner in = new Scanner(new File(file));\n // ArrayList to store the data.\n ArrayList<Loan> list = new ArrayList<Loan>();\n // Read in the header line so it is not added to the ArrayLists.\n String header = in.nextLine();\n // Check to see if the file still has data to be read in.\n while(in.hasNextLine()) {\n \n // Read in the line of data and \n // use a space as a delimiter to separate the different columns.\n String[] line = in.nextLine().split(\",\");\n \n // Local variable containing the ID.\n int ID = Integer.parseInt(line[0]);\n \n // Local variable containing the amount.\n int amount = Integer.parseInt(line[1]);\n \n // Local variable containing the country.\n String country = line[2];\n \n // Local variable containing the lenders.\n int lenders = Integer.parseInt(line[5]);\n \n // Local variable containing the difference in days.\n int differenceInDays = Integer.parseInt(line[4])/86400;\n \n // Add the loan to the arraylist.\n list.add(new Loan(ID, amount, country, differenceInDays, lenders)); \n \n }\n // Return the completed ArrayLists.\n return list;\n }", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public static void loadCorpus(String corpus) throws IOException {\n List<String> lines = FileUtils.readLines(new File(corpus), \"UTF-8\");\n\n processLoadedCorpus(lines);\n }", "public void setTokenTransactionArray(java.util.List<com.networknt.taiji.token.TokenTransaction> value) {\n this.TokenTransactionArray = value;\n }", "List<Account> getAccounts(String login);", "public static Response controllerGetFutureTransactions(\n Account account,\n Token authorization\n ) {\n if (userOwnsAccount(account.accountId, authorization.userId) == null) {\n return new Response(\n 401,\n Router.AUTHENTICATION_ERROR,\n Response.ResponseType.TEXT\n );\n }\n try {\n ArrayList<FutureTransaction> transactions = TransactionDatabase.retrieveFutureTransactions(\n account.accountId\n );\n return new Response(200, transactions, Response.ResponseType.JSON);\n } catch (SQLException e) {\n return new Response(500, SQL_ERROR, Response.ResponseType.TEXT);\n }\n }", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public void load(){\n\t\t\tArrayList<String> entries = readEntriesFromFile(FILENAME);\n\t\t\t\n\t\t\tfor(int i = 1; i < entries.size(); i++){\n\t\t\t\tString entry = entries.get(i);\n\t\t\t\tString[] entryParts = entry.split(\",\");\n\t\t\t\tString name = entryParts[0];\n\t\t\t\tString power = entryParts[1];\n\t\t\t\tString gold = entryParts[2];\n\t\t\t\tString xp = entryParts[3];\n\t\t\t\tString location = entryParts[4];\n\t\t\t\tint powerInt = Integer.parseInt(power);\n\t\t\t\tint goldInt = Integer.parseInt(gold);\n\t\t\t\tint XPInt = Integer.parseInt(xp);\n\t\t\t\tRegion regionR = RM.getRegion(location);\n\t\t\t\tTrap trap = new Trap(name, powerInt, goldInt, XPInt, regionR);\n\t\t\t\ttrapList[i-1] = trap;\n\t\t\t}\n\t}", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "List<Transcription> selectTranscriptions(String userName, String naId,\n\t\t\tString objectId, int offset, int rows) throws DataAccessException,\n\t\t\tUnsupportedEncodingException;", "public savingsAccount(){\n balance = 0;\n String[] sTransactions = new String[1000];\n savingTransactions = sTransactions;\n }", "private <T> void loadFlatFile(Class<T> clazz, String flatFileName)\n\t\t\tthrows ApplicationException {\n\n\t\tlog.info(String.format(\"Loading file %s to object type %s\",\n\t\t\t\tflatFileName, clazz.toString()));\n\t\t\n\t\tDbInserter dbi = getDbInserter();\n\t\t\n\t\tFixedFormatManager manager = new FixedFormatManagerImpl();\n\t\tBufferedReader br = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tInputStream ins = this.getClass().getClassLoader()\n\t\t\t\t\t.getResourceAsStream(flatFileName);\n\t\t\tbr = new BufferedReader(new InputStreamReader(ins));\n\t\t\tString record;\n\n\t\t\tlog.info(\"Reading, inserting records.\");\n\t\t\twhile (null != (record = br.readLine())) {\n\t\t\t\tDomain obj = (Domain) manager.load(clazz, record);\n\t\t\t\t//log.info(String.format(\"Record %s\", obj));\n\t\t\t\t//log.info(String.format(\"%s: key %d\", obj.getRecType(), obj.getDomainId()));\n\t\t\t\t\n\t\t\t\tdbi.insert(obj);\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tlog.info(String.format(\"Read %d records from object.\", count,\n\t\t\t\t\tclazz.toString()));\n\t\t\t\n\t\t\tdbi.flushToIndex();\n\n\t\t} catch (FixedFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (null != br) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "@NotNull\n List<Tx> txs(@NotNull String address, long startBlock, long endBlock) throws EtherScanException;", "@Override\n\tpublic List<Transaction> getTransactionsByAccountId(int accountId) throws SQLException {\n\t\tList<Transaction> tList = new ArrayList<>();\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from transaction_history where account_id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\tTransaction t = new Transaction(rs.getInt(2), rs.getString(3), rs.getDouble(4),rs.getTimestamp(5));\n\t\t\ttList.add(t);\n\t\t}\n\t\treturn tList;\n\t}", "@Override\n\tpublic void importData(String filePath) {\n\t\tString[] allLines = readFile(filePath);\n\n\t\t//Obtains the date to give to all sales from the cell in the first line and first column of the csv\n\t\t//And formats it into the expected format.\n\t\tString[] firstLine = allLines[0].split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\", -1);\n\t\tString[] title = firstLine[0].split(\"\\\\(\");\n\t\tSimpleDateFormat oldFormat = new SimpleDateFormat(\"MMMMM, yyyy\");\n\t\tSimpleDateFormat newFormat = new SimpleDateFormat(\"MMM yyyy\");\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = oldFormat.parse(title[1].replaceAll(\"[()]\", \"\"));\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"There was parsing the date in the first cell of the first line of the csv.\\n\" \n\t\t\t\t\t+ \" A date of the format 'October, 2017' was expected.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.monthAndYear = newFormat.format(date);\n\n\t\t//Parses data for each currency and places it in class variable listForex by calling importForex() on each currency line of csv\n\t\t//Considers that the first line of currencies is the fourth line of csv.\n\t\t//Stops if counter reaches the total number of lines of csv, or if the line is shorter than 15 characters,\n\t\t//so that it doesn't try to parse the summary lines below the last currency line.\n\t\tint counter = 3;\n\t\twhile (counter< allLines.length && allLines[counter].length() > 15) {\n\t\t\timportForex(allLines[counter]);\n\t\t\tcounter++;\n\t\t}\n\n\t\tChannel apple = obtainChannel(\"Apple\", new AppleFileFormat(), false);\n\n\t\t//Places the imported data in the app,\n\t\t//making sure not to replace the existing list of FX rates for this month and year if there is one.\n\t\t//It does however update the FX rate value for currencies that are already in the data for this month.\n\t\tif (apple.getHistoricalForex().containsKey(monthAndYear)) {\n\t\t\tHashMap<String, Double> existingList = apple.getHistoricalForex().get(monthAndYear);\n\t\t\tfor (String s : existingList.keySet()) {\n\t\t\t\tlistForex.put(s, existingList.get(s));\n\t\t\t}\t\n\t\t}\n\t\tapple.addHistoricalForex(monthAndYear, listForex);\n\t}", "void setAccountRoles(List<Node> nodes) {\n\t\taccountRoles = new ArrayList<>();\n\t\tfor (Node n : nodes) {\n\t\t\tPermissionVO vo = (PermissionVO) n.getUserObject();\n\t\t\t//we only care about level 4 nodes, which is where permissions are set. Also toss any VOs that don't have permissions in them\n\t\t\tif (SecurityController.PERMISSION_DEPTH_LVL != n.getDepthLevel() || vo.isUnauthorized()) continue;\n\t\t\tvo.setHierarchyToken(n.getFullPath()); //transpose the value compiled in SmartTrakRoleModule\n\t\t\t//System.err.println(\"user authorized for hierarchy: \" + vo.getHierarchyToken())\n\t\t\taccountRoles.add(vo);\n\t\t}\n\t\tbuildACL();\n\t}", "public static List<Transaction> parseTransactionHistory() throws\n IOException {\n try(Reader reader = new InputStreamReader(\n ClassLoader.getSystemResourceAsStream(config.getInputFile()))) {\n CustomMatchingStrategy ms = new CustomMatchingStrategy();\n ms.setType(Transaction.class);\n\n CsvToBean<Transaction> csvToBean = new CsvToBeanBuilder(reader)\n .withType(Transaction.class)\n .withIgnoreLeadingWhiteSpace(true)\n .withMappingStrategy(ms)\n .withIgnoreQuotations(true)\n .build();\n return csvToBean.parse();\n } catch (IOException e) {\n LOGGER.severe(\"Error: wrong config file, \" + config.getInputFile());\n throw e;\n }\n }", "public boolean deleteAccountTransactions(AccountTransaction t) {\n\t\t\ttry(Connection conn = ConnectionUtil.getConnection();){\n\t\t\t\tString sql = \"INSERT INTO archive_account_transactions \"\n\t\t\t\t\t\t+ \"(transaction_id,account_id_fk,trans_type,\"\n\t\t\t\t\t\t+ \"debit,credit,signed_amount,running_balance,\"\n\t\t\t\t\t\t+ \"status,memo,user_id_fk,transaction_dt,deleted_by) \"\n\t\t\t\t\t\t+ \"SELECT transaction_id,account_id_fk,trans_type, \"\n\t\t\t\t\t\t+ \"debit,credit,signed_amount,running_balance,\" \n\t\t\t\t\t\t+ \"status,memo,user_id_fk,transaction_dt, ? \"\n\t\t\t\t\t\t+ \"FROM account_transactions \"\n\t\t\t\t\t\t+ \"WHERE account_id_fk = ?;\";\t\t\t\t\t\t\n\t\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\n\t\t\t\tstatement.setInt(1,t.getUserId());\n\t\t\t\tstatement.setInt(2,t.getAccountId());\n\t\t\t\t\n\t\t\t\tint iCount = statement.executeUpdate();\n\t\t\t\t\n\t\t\t\tsql = \t\"DELETE \"\n\t\t\t\t\t\t+ \"FROM account_transactions \"\n\t\t\t\t\t\t+ \"WHERE account_id_fk = ?;\";\t\t\t\t\t\t\n\t\t\t\tstatement = conn.prepareStatement(sql);\n\t\t\t\tstatement.setInt(1,t.getAccountId());\n\t\t\t\t\n\t\t\t\tint dCount = statement.executeUpdate();\n\t\t\t\t\n//\t\t\t\tSystem.out.println(iCount);\n//\t\t\t\tSystem.out.println(dCount);\n\t\t\t\t\n\t\t\t\t//Did you delete the same # of transactions as you moved to archive\n\t\t\t\treturn iCount == dCount;\n\t\t\t\t\t\t\t\t\n\t\t\t}catch(SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn false;\n\t\t\t\n\t\t}", "public static Transaction[] transactionList(){\n int countFullPosition = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n countFullPosition++;\n }\n }\n if(countFullPosition == 0)\n return new Transaction[] {};\n // throw new InternalServerException(\"TransactionList is empty\");\n Transaction[] trList = new Transaction[countFullPosition];\n int index = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n trList[index] = tr;\n index++;\n }\n }\n return trList;\n }", "private void parseTransactions(List<Transaction> transactions) {\n transactions.forEach(transaction -> {\n Account senderAccount = getAccount(transaction.getSender());\n Account receiverAccount = getAccount(transaction.getReceiver());\n senderAccount.addOutgoingTransaction(transaction);\n receiverAccount.addIncomingTransaction(transaction);\n });\n }", "public void run() {\n \n \t//overall loop which runs until all the transactions have been processed\n while(true) {\n \t\n \t//instantiate the local cachelist\n \tcacheList = new Cache[constants.numLetters];\n \tfor (int k = A; k <= Z; k++) {\n cacheList[k] = new Cache(accounts[k]);\n \n \t}\n \t\n \t//parsing the input file \n \tString[] commands = transaction.split(\";\");\n \tfor (int i = 0; i < commands.length; i++) {\n\t \t \n\t \tString[] words = commands[i].trim().split(\"\\\\s\");\n\t if (words.length < 3) throw new InvalidTransactionError();\n\t \n\t \n\t //sets the read lock for the cache of the account.\n\t Cache lhs = parseAccount(words[0]);\n\t \n\t if (!words[1].equals(\"=\"))\n\t throw new InvalidTransactionError();\n\t \n\t int rhs = parseAccountOrNum(words[2]);\n\t for (int j = 3; j < words.length; j+=2) {\n\t if (words[j].equals(\"+\"))\n\t rhs += parseAccountOrNum(words[j+1]);\n\t else if (words[j].equals(\"-\"))\n\t rhs -= parseAccountOrNum(words[j+1]);\n\t else\n\t throw new InvalidTransactionError();\n\t }\n\t //sets the write lock for the account in the cache\n\t lhs.writeCache(rhs);\n\t \n\t }\n \t\n\t //for loop \n \t/*int i = 0;\n\t \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n\t\t\t} \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"open abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //try and verify do the same as the open locks \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n\t\t\t}\n\t \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"verify abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //loops to commit\n\t for (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n\t \n\t System.out.println(\"commit: \" + transaction);\n\t \n\t //loops to close\n\t for (int k = A; k <= Z; k ++) {\n\t \tcacheList[k].closeCache();\n \t}\n\t \n\t break;*/\n\t \n \t//Code needed for concurrency programming, Loops over the entire cache list 4 different time\n \t//and in order first attempts to open each caches locks, and then verifies all caches, then commits\n \t//the caches, and finally closes all the locks for the caches. If it any point there is an exception\n \t//is thrown then checks will end and all the accounts will be closed and the loop will restart from the top\n \t//restart the transaction\n \ttry {\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n \t\t\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n \t\t\n \t\tSystem.out.println(\"commit: \" + transaction);\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n \t\t\n \t\tbreak;\n \t\t\n\t\t\t} catch (TransactionAbortException e) {\n\t\t\t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n\t\t\t\tcontinue;\n\t\t\t}\n \t\n }//while loop\n \n }", "@Override\n\t\tpublic List<AccountTransaction> findAll() {\n\t\t\treturn null;\n\t\t}", "public Collection<Integer> getLoanAccounts() {\n try {\n return costumerRepo.getAllAccounts(ssn, \"LineOfCreditAccount\");\n }catch (Exception ex) {\n rootLogger.error(\"JDBC: message: {}\", ex.getMessage());\n }\n return null;\n }", "List<TradeItem> getTradesFromAccount(long accountId);", "public static LinkedList<TransactionNode> readTransactionFile(String fileName)\n\t\t\tthrows IOException, InvalidFileFormatException, FileNotFoundException {\n\t\tFile csvFile = new File(fileName);\n\n\t\t// read the file only if it exists\n\t\tif (csvFile.isFile()) {\n\t\t\t// the row in the csv file\n\t\t\tString row = null;\n\t\t\tint indexRow = 0;\n\t\t\t// create BufferedReader and read data from csv\n\t\t\tBufferedReader csvReader = new BufferedReader(new FileReader(fileName));\n\t\t\ttry {\n\t\t\t\t// read the rest of the lines\n\t\t\t\tLinkedList<TransactionNode> newNodes = new LinkedList<TransactionNode>();\n\t\t\t\twhile ((row = csvReader.readLine()) != null) {\n\t\t\t\t\tString[] data = row.split(\",\");\n\n\t\t\t\t\t// check the header at the first line (header)\n\t\t\t\t\tif (indexRow == 0) {\n\t\t\t\t\t\t// check if the column names\n\t\t\t\t\t\tif (!(data[0].equals(\"target\") && data[1].equals(\"date\")\n\t\t\t\t\t\t\t\t&& data[2].equals(\"unitPrice\") && data[3].equals(\"investorName\")\n\t\t\t\t\t\t\t\t&& data[4].equals(\"numUnits\")\n\t\t\t\t\t\t\t\t&& data[5].equals(\"transactionType\"))) {\n\n\t\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\t\"The column names of the file is invalid.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindexRow++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// for the rest of the rows\n\t\t\t\t\t// - create the transaction node for each row\n\t\t\t\t\tString target = data[0];\n\t\t\t\t\tlong date = Long.valueOf(data[1]);\n\t\t\t\t\tdouble unitPrice = Double.valueOf(data[2]);\n\t\t\t\t\tString investorName = data[3];\n\t\t\t\t\tdouble numUnits = Double.valueOf(data[4]);\n\t\t\t\t\tString transactionType = data[5];\n\t\t\t\t\tif (!(transactionType.equals(\"sell\") || transactionType.equals(\"buy\"))) {\n\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\"Unrecognized transaction type\" + transactionType);\n\t\t\t\t\t}\n\t\t\t\t\t// add the row data to the list\n\t\t\t\t\tTransactionNode node = new TransactionNode(date, investorName, transactionType,\n\t\t\t\t\t\t\ttarget, unitPrice, numUnits);\n\t\t\t\t\tnewNodes.add(node);\n\t\t\t\t\tindexRow++;\n\t\t\t\t}\n\t\t\t\t// return the new nodes\n\t\t\t\treturn newNodes;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(\"IO Exception occured while reading the file at line \"\n\t\t\t\t\t\t+ String.valueOf(indexRow) + \" in: \" + fileName);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\"The format of the file at line \" + String.valueOf(indexRow)\n\t\t\t\t\t\t\t\t+ \" is invalid,i.e.,\" + row + \" in: \" + fileName);\n\t\t\t} finally {\n\t\t\t\t// close the reader\n\t\t\t\tcsvReader.close();\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new FileNotFoundException(\n\t\t\t\t\t\"The file you attempted to read does not exist or is not a valid file: \"\n\t\t\t\t\t\t\t+ fileName);\n\t\t}\n\t}", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "public FilteredBankAccountsIterator(BankAccountsBinarySearchTree bankAccountsTree) {\r\n \tthis.bankAccountsTree = bankAccountsTree;\r\n \tcurrent = bankAccountsTree.root.data;\r\n \tbankAccounts = new LinkedList();\r\n \t//Initialize an iterator goes over the tree\r\n \tBinaryTreeInOrderIterator <BankAccount> iter = new BinaryTreeInOrderIterator(bankAccountsTree.root);\r\n \t//check if there is bank account with a balance over than 100 \r\n \twhile(iter.hasNext()) {\r\n \t\tcurrent=iter.next();\r\n \t\tif(current.getBalance()>100) {\r\n \t\t\t//if such a bank account exist, add it to the end of the list\r\n \t\t\tbankAccounts.add(current);\r\n \t\t}\r\n \t}\r\n }", "public List<Transaction> getAllDepositTransactions(int start, int numOfRows) throws MiddlewareQueryException;", "public BankDataBase()\n {\n accounts = new Account[ 2 ];\n accounts[ 0 ] = new Account( 12345, 54321, 1000.0, 1200.0 );\n accounts[ 1 ] = new Account( 98765, 56789, 200.0, 200.0 );\n }", "public List<Account> viewAllAccountsPaginated(int start, int limit) {\n\t\tList<Account> list = new ArrayList<>(accounts.values());\n\t\tif(start + limit >= list.size()){\n\t\t\treturn list.subList(start, list.size());\n\t\t}\n\t\treturn list.subList(start, start + limit);\n\t}", "public MusicData[] loadAllMine(Long accountId) throws MusicAppException;", "public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "ArrayList<String> getTransactions(String IBAN, Klant klant) throws SessionExpiredException, IllegalArgumentException, RemoteException;" ]
[ "0.6934357", "0.5732514", "0.5263707", "0.52186877", "0.52076316", "0.5183294", "0.50124454", "0.50121313", "0.49514705", "0.49156567", "0.4912407", "0.48436573", "0.47834778", "0.47430384", "0.47360456", "0.4698839", "0.46833056", "0.46304286", "0.45958683", "0.44460794", "0.4434845", "0.44279322", "0.44166192", "0.43558663", "0.43352848", "0.43133083", "0.42943662", "0.42923504", "0.42732173", "0.42554203", "0.42517784", "0.42329657", "0.4225407", "0.42222622", "0.4207306", "0.41959742", "0.41830114", "0.41779786", "0.4175196", "0.41551068", "0.41501817", "0.4145362", "0.4136101", "0.4101728", "0.40846452", "0.40760803", "0.40574542", "0.40523067", "0.4035285", "0.40329838", "0.4017871", "0.40064657", "0.4000348", "0.39810413", "0.39646748", "0.39584354", "0.39531204", "0.39520562", "0.3915558", "0.39121684", "0.38916957", "0.38898304", "0.38855407", "0.38802564", "0.38799527", "0.38687137", "0.3864418", "0.38612092", "0.38565308", "0.38542876", "0.38528508", "0.38448554", "0.38416615", "0.3837378", "0.3821255", "0.38211423", "0.3820846", "0.38196424", "0.38143644", "0.38139752", "0.38119012", "0.38091525", "0.38028714", "0.37982193", "0.378977", "0.37879065", "0.37856773", "0.37848037", "0.37734798", "0.37614727", "0.37584656", "0.37543675", "0.37511128", "0.37453482", "0.3735315", "0.373481", "0.3732233", "0.3727279", "0.3725928", "0.3717527" ]
0.560523
2
/ compiled from: PackageFragmentDescriptor.kt
public interface PackageFragmentDescriptor extends ClassOrPackageFragmentDescriptor { @NotNull ModuleDescriptor getContainingDeclaration(); @NotNull FqName getFqName(); @NotNull MemberScope getMemberScope(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected FragmentPackage[] getFragmentPackages() {\n FragmentPackage[] packages = new FragmentPackage[2];\n String fragmentKey;\n\n fragmentKey = \"CONEXUS_\" + conexusID + \"_ABOUT\";\n packages[ABOUT_FRAGMENT] = new FragmentPackage(\"ABOUT\", fragmentKey, new FragmentCallback() {\n @Override\n public Fragment getFragment() {\n return ConexusAboutFragment.newInstance(mConexus);\n }\n });\n\n fragmentKey = \"CONEXUS_\" + conexusID + \"_ROSTER\";\n packages[ROSTER_FRAGMENT] = new FragmentPackage(\"ROSTER\", fragmentKey, new FragmentCallback() {\n @Override\n public Fragment getFragment() {\n return ConexusRosterFragment.newInstance(mConexus);\n }\n });\n\n return packages;\n }", "public abstract String getFragmentName();", "public ProgramFragment getFragment(String treeName, String name);", "@Override\n protected FragmentPackage getStaticFragmentPackage() {\n String fragmentKey = \"CONEXUS_\" + conexusID + \"_POSTS\";\n return new FragmentPackage(\"POSTS\", fragmentKey, new FragmentCallback() {\n @Override\n public Fragment getFragment() {\n return ConexusPostsFragment.newInstance(mConexus);\n }\n });\n }", "DocumentFragment getInstallationDescriptorExtension();", "public interface SetFragmentView extends MvpBaseView {\n /**\n * 获取当前版本\n * @param versionBean\n */\n void getVersion(VersionBean versionBean);\n\n /**\n * 下载APK\n * @param o\n * @param versionBean\n * @param newVersion\n */\n void downLoadApk(File o, VersionBean versionBean, String newVersion);\n}", "public abstract String getAndroidPackage();", "@PerFragment\n@Subcomponent(modules = FragmentModule.class)\npublic interface FragmentComponent {\n}", "public abstract int getFragmentView();", "public int getFragmentBundles();", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "int getMinorFragmentId();", "public final String mo60917a() {\n return \"tag_fragment_discover\";\n }", "public abstract String packageName();", "public CharSequence getPackageName() {\n/* 1403 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract Fragment getFragment();", "public interface IIndexFragment {\n\t/**\n\t * @see IIndex#FIND_DECLARATIONS\n\t */\n\tfinal int FIND_DECLARATIONS = IIndex.FIND_DECLARATIONS;\n\t/**\n\t * @see IIndex#FIND_DEFINITIONS\n\t */\n\tfinal int FIND_DEFINITIONS = IIndex.FIND_DEFINITIONS;\n\t/**\n\t * @see IIndex#FIND_REFERENCES\n\t */\n\tfinal int FIND_REFERENCES = IIndex.FIND_REFERENCES;\n\t/**\n\t * @see IIndex#SEARCH_ACROSS_LANGUAGE_BOUNDARIES\n\t */\n\tfinal int SEARCH_ACROSS_LANGUAGE_BOUNDARIES= IIndex.SEARCH_ACROSS_LANGUAGE_BOUNDARIES;\n\t/**\n\t * @see IIndex#FIND_DECLARATIONS_DEFINITIONS\n\t */\n\tfinal int FIND_DECLARATIONS_DEFINITIONS = IIndex.FIND_DECLARATIONS_DEFINITIONS;\n\t/**\n\t * @see IIndex#FIND_ALL_OCCURRENCES\n\t */\n\tfinal int FIND_ALL_OCCURRENCES = \t\t IIndex.FIND_ALL_OCCURRENCES;\n\t\n\t/**\n\t * Property key for the fragment ID. The fragment ID should uniquely identify the fragments usage within\n\t * a logical index.\n\t * @since 4.0\n\t */\n\tpublic static final String PROPERTY_FRAGMENT_ID= \"org.eclipse.cdt.internal.core.index.fragment.id\"; //$NON-NLS-1$\n\n\t/**\n\t * Property key for the fragment format ID. The fragment format ID should uniquely identify a format of an index fragment\n\t * up to version information. That is, as a particular format changes version its ID should remain the same.\n\t * @since 4.0.1\n\t */\n\tpublic static final String PROPERTY_FRAGMENT_FORMAT_ID= \"org.eclipse.cdt.internal.core.index.fragment.format.id\"; //$NON-NLS-1$\n\t\n\t/**\n\t * Property key for the fragment format's version. Version numbers belonging to the same format (identified by format ID) should be\n\t * comparable with each other. The version scheme exposed should be compatible with the OSGi framework's\n\t * version scheme - i.e. it should be successfully parsed by org.osgi.framework.Version.parseVersion(String). A null value\n\t * for this property is interpreted as Version(0.0.0)\n\t * @since 4.0.1\n\t */\n\tpublic static final String PROPERTY_FRAGMENT_FORMAT_VERSION= \"org.eclipse.cdt.internal.core.index.fragment.format.version\"; //$NON-NLS-1$\n\t\n\t/**\n\t * Returns the file for the given location and linkage. \n\t * May return <code>null</code>, if no such file exists.\n\t * This method may only return files that are actually managed by this fragment.\n\t * This method returns files without content, also.\n\t * @param linkageID the id of the linkage in which the file has been parsed.\n\t * @param location the IIndexFileLocation representing the location of the file\n\t * @return the file for the location, or <code>null</code> if the file is not present in the index\n\t * @throws CoreException\n\t */\n\tIIndexFragmentFile getFile(int linkageID, IIndexFileLocation location) throws CoreException;\n\n\t/**\n\t * Returns the files in all linkages for the given location. \n\t * This method may only return files that are actually managed by this fragment.\n\t * @param location the IIndexFileLocation representing the location of the file\n\t * @return the file for the location, or <code>null</code> if the file is not present in the index\n\t * @throws CoreException\n\t */\n\tIIndexFragmentFile[] getFiles(IIndexFileLocation location) throws CoreException;\n\n\t/**\n\t * Returns all include directives that point to the given file. The input file may belong to \n\t * another fragment. All of the include directives returned must belong to files managed by \n\t * this fragment.\n\t * @param file a file to search for includes pointing to it\n\t * @return an array of include directives managed by this fragment\n\t * @throws CoreException\n\t */\n\tIIndexFragmentInclude[] findIncludedBy(IIndexFragmentFile file) throws CoreException;\n\t\n\t/**\n\t * Looks for a binding matching the given one. May return <code>null</code>, if no\n\t * such binding exists. The binding may belong to an AST or another index fragment.\n\t * @param binding the binding to look for.\n\t * @return the binding, or <code>null</code>\n\t * @throws CoreException \n\t */\n\tIIndexFragmentBinding adaptBinding(IBinding binding) throws CoreException;\n\n\t/**\n\t * Looks for a binding of the given name from the AST. May return <code>null</code>, if no\n\t * such binding exists.\n\t * @param astName the name for looking up the binding\n\t * @return the binding for the name, or <code>null</code>\n\t * @throws CoreException\n\t */\n\tIIndexFragmentBinding findBinding(IASTName astName) throws CoreException;\n\t\n\t/**\n\t * Searches for all bindings with qualified names that seen as an array of simple names match the given array \n\t * of patterns. In case a binding exists in multiple projects, no duplicate bindings are returned.\n\t * You can search with an array of patterns that specifies a partial qualification only. \n\t * @param patterns an array of patterns the names of the qualified name of the bindings have to match.\n\t * @param isFullyQualified if <code>true</code>, the array of pattern specifies the fully qualified name\n\t * @param filter a filter that allows for skipping parts of the index \n\t * @param monitor a monitor to report progress, may be <code>null</code>\n\t * @return an array of bindings matching the pattern\n\t * @throws CoreException\n\t */\n\tIIndexFragmentBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException;\n\n\t/**\n\t * Searches for all macro containers (one for macros with the same name) with names that \n\t * match the given pattern. In case a binding exists in multiple projects, no duplicate bindings \n\t * are returned.\n\t * @param pattern a pattern the name of the bindings have to match.\n\t * @param filter a filter that allows for skipping parts of the index \n\t * @param monitor a monitor to report progress, may be <code>null</code>\n\t * @return an array of bindings matching the pattern\n\t * @throws CoreException\n\t */\n\tIIndexFragmentBinding[] findMacroContainers(Pattern pattern, IndexFilter filter, IProgressMonitor monitor) throws CoreException;\n\n\t\n\t/**\n\t * Searches for all bindings with qualified names that seen as an array of simple names equals\n\t * the given array of names. \n\t * @param names an array of names the qualified name of the bindings have to match.\n\t * @param filter a filter that allows for skipping parts of the index \n\t * @param monitor a monitor to report progress, may be <code>null</code>\n\t * @return an array of bindings matching the pattern\n\t * @throws CoreException\n\t */\n\tIIndexFragmentBinding[] findBindings(char[][] names, IndexFilter filter, IProgressMonitor monitor) throws CoreException;\n\n\t/**\n\t * Searches for all names that resolve to the given binding. You can limit the result to references, declarations\n\t * or definitions, or a combination of those.\n\t * @param binding a binding for which names are searched for\n\t * @param flags a combination of {@link #FIND_DECLARATIONS}, {@link #FIND_DEFINITIONS} and {@link #FIND_REFERENCES}\n\t * @return an array of names\n\t * @throws CoreException\n\t */\n\tIIndexFragmentName[] findNames(IBinding binding, int flags) throws CoreException;\n\t\n\t/**\n\t * Acquires a read lock.\n\t * @throws InterruptedException\n\t */\n\tvoid acquireReadLock() throws InterruptedException;\n\n\t/**\n\t * Releases a read lock.\n\t */\n\tvoid releaseReadLock();\n\t\n\t/**\n\t * Returns the timestamp of the last modification to the index.\n\t */\n\tlong getLastWriteAccess();\n\n\t/**\n\t * Returns all bindings with the given name, accepted by the given filter\n\t * @param monitor to report progress, may be <code>null</code>\n\t */\n\tIIndexFragmentBinding[] findBindings(char[] name, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;\n\n\t/**\n\t * Returns all bindings with the given prefix, accepted by the given filter\n\t * @param monitor to report progress, may be <code>null</code>\n\t */\n\tIIndexFragmentBinding[] findBindingsForPrefix(char[] prefix, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;\n\t\n\t/**\n\t * Returns all macros with the given prefix or name, accepted by the given filter\n\t * @param monitor to report progress, may be <code>null</code>\n\t */\n\tIIndexMacro[] findMacros(char[] name, boolean isPrefix, boolean caseSensitive, IndexFilter filter, IProgressMonitor monitor) throws CoreException;\n\n\t/**\n\t * Returns the linkages that are contained in this fragment\n\t */\n\tIIndexLinkage[] getLinkages();\n\t\n\t/**\n\t * Read the named property in this fragment. All fragments are expected to return a non-null value for \n\t * <ul>\n\t * <li>PROPERTY_FRAGMENT_ID</li>\n\t * <li>PROPERTY_FRAGMENT_FORMAT_ID</li>\n\t * <li>PROPERTY_FRAGMENT_FORMAT_VERSION</li>\n\t * </ul>\n\t * @param propertyName a case-sensitive identifier for a property, or null\n\t * @return the value associated with the key, or null if either no such property is set, or the specified key was null\n\t * @throws CoreException\n\t * @see IIndexFragment#PROPERTY_FRAGMENT_ID\n\t * @see IIndexFragment#PROPERTY_FRAGMENT_FORMAT_ID\n\t * @see IIndexFragment#PROPERTY_FRAGMENT_FORMAT_VERSION\n\t */\n\tpublic String getProperty(String propertyName) throws CoreException;\n\n\t/**\n\t * Resets the counters for cache-hits and cache-misses.\n\t */\n\tvoid resetCacheCounters();\n\t\n\t/**\n\t * Returns cache hits since last reset of counters.\n\t */\n\tlong getCacheHits();\n\t\n\t/**\n\t * Returns cache misses since last reset of counters.\n\t */\n\tlong getCacheMisses();\n\n\t/**\n\t * Creates an empty file set for this fragment\n\t * @since 5.0\n\t */\n\tIIndexFragmentFileSet createFileSet();\n\n\t/**\n\t * @return an array of all files contained in this index.\n\t */\n\tIIndexFragmentFile[] getAllFiles() throws CoreException;\n}", "public ProgramFragment getFragment(String treeName, Address addr);", "FragmentType createFragmentType();", "public DeviceModuleDetailFragment() {\n }", "VmPackage getVmPackage();", "@objid (\"bf65cf74-59fe-43b9-b422-4dece2593e95\")\npublic interface ISmMetamodelFragment extends MMetamodelFragment {\n /**\n * Create all the model checker classes.\n * @param metamodel the metamodel\n * @return the live model checkers.\n */\n @objid (\"5bf23d8e-6afe-478b-ae81-6989245a8387\")\n Collection<SmDependencyTypeChecker> createDependencyCheckers(SmMetamodel metamodel);\n\n /**\n * <p>\n * Instantiate and initialize the metamodel expert.\n * </p>\n * @param mm the metamodel.\n */\n @objid (\"fbd51d94-815e-4e48-b896-6fe4c2eb26de\")\n MExpert createMExpert(SmMetamodel mm);\n\n /**\n * Create the metaclasses.\n * @return the metaclasses.\n */\n @objid (\"8610b15d-2b92-41c6-9e01-228404be8a59\")\n Collection<SmClass> createMetaclasses();\n\n /**\n * Get the model shield checkers factory.\n * @param metamodel the metamodel\n * @return the model shield checkers factory.\n */\n @objid (\"ee775503-e151-4bb7-9921-40692858641e\")\n ICheckerFactory getModelShieldCheckers();\n\n /**\n * Tells whether this metamodel fragment is an extension or a standard Modelio metamodel fragment.\n * <p>\n * Standard Modelio metamodel fragments are guaranteed to have no metaclass name collisions.\n * @return <i>true</i> if the fragment is an extension, <i>false</i> if it is a Modelio standard fragment.\n */\n @objid (\"e20e1709-9e0b-4c6a-bf6c-3f3e7b57cdfe\")\n @Override\n boolean isExtension();\n\n}", "public interface FragmentConstructorFactory {\n \n /**\n * return an instance of fragment constructor for a type\n * @param type\n * @return\n */\n public FragmentConstructor getFragmentConstructorForType(FieldDescriptor descriptor);\n\n}", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "PiviPackage getPiviPackage();", "FragmentTypeSlot createFragmentTypeSlot();", "public interface IBaseFragmentView {\n}", "public abstract int getFragmentLayout();", "protected abstract String getPackageName();", "interface C1287b extends View<Fragment> {\n void mo4315a(int i);\n }", "public String getPackagedJava();", "java.lang.String getPackage();", "@Override\n\tprotected void setupFragmentComponent(AppComponent appComponent) {\n\t}", "public static multiple_package newInstance() {\n multiple_package fragment = new multiple_package();\n\n return fragment;\n }", "public PackageNode getPackage();", "public interface PesonageFragmentView extends MvpView {\n\n}", "public String getPackageName();", "FragmentManager getChildManagerForFragment();", "public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}", "interface DownloadsPres extends LifeCycleMap\n {\n Fragment getAdapterFragment(int position);\n }", "public interface AppDslPackage extends EPackage\n{\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"appDsl\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://www.fhj.at/gaar/androidapp/AppDsl\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"appDsl\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n AppDslPackage eINSTANCE = at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl.init();\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl <em>Android App Project</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getAndroidAppProject()\n * @generated\n */\n int ANDROID_APP_PROJECT = 0;\n\n /**\n * The feature id for the '<em><b>Applications</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ANDROID_APP_PROJECT__APPLICATIONS = 0;\n\n /**\n * The number of structural features of the '<em>Android App Project</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ANDROID_APP_PROJECT_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl <em>Application</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplication()\n * @generated\n */\n int APPLICATION = 1;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION__NAME = 0;\n\n /**\n * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION__ATTRIBUTES = 1;\n\n /**\n * The number of structural features of the '<em>Application</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_FEATURE_COUNT = 2;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl <em>Application Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationAttribute()\n * @generated\n */\n int APPLICATION_ATTRIBUTE = 2;\n\n /**\n * The number of structural features of the '<em>Application Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_ATTRIBUTE_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl <em>Application Min Sdk</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMinSdk()\n * @generated\n */\n int APPLICATION_MIN_SDK = 3;\n\n /**\n * The feature id for the '<em><b>Min Sdk</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_MIN_SDK__MIN_SDK = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Application Min Sdk</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_MIN_SDK_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl <em>Application Target Sdk</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationTargetSdk()\n * @generated\n */\n int APPLICATION_TARGET_SDK = 4;\n\n /**\n * The feature id for the '<em><b>Target Sdk</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_TARGET_SDK__TARGET_SDK = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Application Target Sdk</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_TARGET_SDK_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl <em>Application Compile Sdk</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationCompileSdk()\n * @generated\n */\n int APPLICATION_COMPILE_SDK = 5;\n\n /**\n * The feature id for the '<em><b>Compile Sdk</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_COMPILE_SDK__COMPILE_SDK = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Application Compile Sdk</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_COMPILE_SDK_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl <em>Application Permission List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationPermissionList()\n * @generated\n */\n int APPLICATION_PERMISSION_LIST = 6;\n\n /**\n * The feature id for the '<em><b>Permissions</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_PERMISSION_LIST__PERMISSIONS = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Application Permission List</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_PERMISSION_LIST_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl <em>Application Element List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElementList()\n * @generated\n */\n int APPLICATION_ELEMENT_LIST = 7;\n\n /**\n * The feature id for the '<em><b>Elements</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_ELEMENT_LIST__ELEMENTS = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Application Element List</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_ELEMENT_LIST_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl <em>Application Main Activity</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMainActivity()\n * @generated\n */\n int APPLICATION_MAIN_ACTIVITY = 8;\n\n /**\n * The feature id for the '<em><b>Launcher Activity</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_MAIN_ACTIVITY__LAUNCHER_ACTIVITY = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Application Main Activity</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_MAIN_ACTIVITY_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl <em>Permission</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getPermission()\n * @generated\n */\n int PERMISSION = 9;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PERMISSION__NAME = 0;\n\n /**\n * The number of structural features of the '<em>Permission</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int PERMISSION_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl <em>Application Element</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElement()\n * @generated\n */\n int APPLICATION_ELEMENT = 10;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_ELEMENT__NAME = 0;\n\n /**\n * The number of structural features of the '<em>Application Element</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int APPLICATION_ELEMENT_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl <em>Activity</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivity()\n * @generated\n */\n int ACTIVITY = 11;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY__NAME = APPLICATION_ELEMENT__NAME;\n\n /**\n * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY__ATTRIBUTES = APPLICATION_ELEMENT_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Activity</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY_FEATURE_COUNT = APPLICATION_ELEMENT_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl <em>Broadcast Receiver</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiver()\n * @generated\n */\n int BROADCAST_RECEIVER = 12;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BROADCAST_RECEIVER__NAME = APPLICATION_ELEMENT__NAME;\n\n /**\n * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BROADCAST_RECEIVER__ATTRIBUTES = APPLICATION_ELEMENT_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Broadcast Receiver</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BROADCAST_RECEIVER_FEATURE_COUNT = APPLICATION_ELEMENT_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl <em>Service</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getService()\n * @generated\n */\n int SERVICE = 13;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SERVICE__NAME = APPLICATION_ELEMENT__NAME;\n\n /**\n * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SERVICE__ATTRIBUTES = APPLICATION_ELEMENT_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Service</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SERVICE_FEATURE_COUNT = APPLICATION_ELEMENT_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl <em>Activity Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityAttribute()\n * @generated\n */\n int ACTIVITY_ATTRIBUTE = 14;\n\n /**\n * The number of structural features of the '<em>Activity Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY_ATTRIBUTE_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl <em>Broadcast Receiver Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAttribute()\n * @generated\n */\n int BROADCAST_RECEIVER_ATTRIBUTE = 15;\n\n /**\n * The number of structural features of the '<em>Broadcast Receiver Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BROADCAST_RECEIVER_ATTRIBUTE_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl <em>Service Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getServiceAttribute()\n * @generated\n */\n int SERVICE_ATTRIBUTE = 16;\n\n /**\n * The number of structural features of the '<em>Service Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SERVICE_ATTRIBUTE_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl <em>Element Enabled Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementEnabledAttribute()\n * @generated\n */\n int ELEMENT_ENABLED_ATTRIBUTE = 17;\n\n /**\n * The feature id for the '<em><b>Enabled</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_ENABLED_ATTRIBUTE__ENABLED = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Element Enabled Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_ENABLED_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl <em>Element Exported Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementExportedAttribute()\n * @generated\n */\n int ELEMENT_EXPORTED_ATTRIBUTE = 18;\n\n /**\n * The feature id for the '<em><b>Exported</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_EXPORTED_ATTRIBUTE__EXPORTED = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Element Exported Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_EXPORTED_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl <em>Element Label Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementLabelAttribute()\n * @generated\n */\n int ELEMENT_LABEL_ATTRIBUTE = 19;\n\n /**\n * The feature id for the '<em><b>Title</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_LABEL_ATTRIBUTE__TITLE = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Element Label Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_LABEL_ATTRIBUTE_FEATURE_COUNT = APPLICATION_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl <em>Element Intent List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementIntentList()\n * @generated\n */\n int ELEMENT_INTENT_LIST = 20;\n\n /**\n * The feature id for the '<em><b>Intents</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_INTENT_LIST__INTENTS = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Element Intent List</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ELEMENT_INTENT_LIST_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.IntentImpl <em>Intent</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.IntentImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getIntent()\n * @generated\n */\n int INTENT = 21;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int INTENT__NAME = 0;\n\n /**\n * The number of structural features of the '<em>Intent</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int INTENT_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl <em>Activity Parent Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityParentAttribute()\n * @generated\n */\n int ACTIVITY_PARENT_ATTRIBUTE = 22;\n\n /**\n * The feature id for the '<em><b>Parent</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY_PARENT_ATTRIBUTE__PARENT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Activity Parent Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY_PARENT_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl <em>Activity Layout Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityLayoutAttribute()\n * @generated\n */\n int ACTIVITY_LAYOUT_ATTRIBUTE = 23;\n\n /**\n * The feature id for the '<em><b>Layout Elements</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY_LAYOUT_ATTRIBUTE__LAYOUT_ELEMENTS = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Activity Layout Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTIVITY_LAYOUT_ATTRIBUTE_FEATURE_COUNT = ACTIVITY_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl <em>Layout Element</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElement()\n * @generated\n */\n int LAYOUT_ELEMENT = 24;\n\n /**\n * The number of structural features of the '<em>Layout Element</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int LAYOUT_ELEMENT_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl <em>Button</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButton()\n * @generated\n */\n int BUTTON = 25;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON__NAME = LAYOUT_ELEMENT_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Attributes</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON__ATTRIBUTES = LAYOUT_ELEMENT_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Button</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON_FEATURE_COUNT = LAYOUT_ELEMENT_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl <em>Button Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonAttribute()\n * @generated\n */\n int BUTTON_ATTRIBUTE = 26;\n\n /**\n * The number of structural features of the '<em>Button Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON_ATTRIBUTE_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl <em>Button Label Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonLabelAttribute()\n * @generated\n */\n int BUTTON_LABEL_ATTRIBUTE = 27;\n\n /**\n * The feature id for the '<em><b>Title</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON_LABEL_ATTRIBUTE__TITLE = BUTTON_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Button Label Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON_LABEL_ATTRIBUTE_FEATURE_COUNT = BUTTON_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl <em>Button Action Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonActionAttribute()\n * @generated\n */\n int BUTTON_ACTION_ATTRIBUTE = 28;\n\n /**\n * The feature id for the '<em><b>Action</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON_ACTION_ATTRIBUTE__ACTION = BUTTON_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Button Action Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BUTTON_ACTION_ATTRIBUTE_FEATURE_COUNT = BUTTON_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl <em>Spacer</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getSpacer()\n * @generated\n */\n int SPACER = 29;\n\n /**\n * The number of structural features of the '<em>Spacer</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SPACER_FEATURE_COUNT = LAYOUT_ELEMENT_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.TextImpl <em>Text</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.TextImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getText()\n * @generated\n */\n int TEXT = 30;\n\n /**\n * The feature id for the '<em><b>Text</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEXT__TEXT = LAYOUT_ELEMENT_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Text</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TEXT_FEATURE_COUNT = LAYOUT_ELEMENT_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl <em>Layout Element Click Action</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElementClickAction()\n * @generated\n */\n int LAYOUT_ELEMENT_CLICK_ACTION = 31;\n\n /**\n * The number of structural features of the '<em>Layout Element Click Action</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl <em>Broadcast Receiver Action Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverActionAttribute()\n * @generated\n */\n int BROADCAST_RECEIVER_ACTION_ATTRIBUTE = 32;\n\n /**\n * The feature id for the '<em><b>Action</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BROADCAST_RECEIVER_ACTION_ATTRIBUTE__ACTION = BROADCAST_RECEIVER_ATTRIBUTE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Broadcast Receiver Action Attribute</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BROADCAST_RECEIVER_ACTION_ATTRIBUTE_FEATURE_COUNT = BROADCAST_RECEIVER_ATTRIBUTE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl <em>Broadcast Receiver Action</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAction()\n * @generated\n */\n int BROADCAST_RECEIVER_ACTION = 33;\n\n /**\n * The number of structural features of the '<em>Broadcast Receiver Action</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int BROADCAST_RECEIVER_ACTION_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl <em>Action Show Toast</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionShowToast()\n * @generated\n */\n int ACTION_SHOW_TOAST = 34;\n\n /**\n * The feature id for the '<em><b>Toast Text</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_SHOW_TOAST__TOAST_TEXT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Action Show Toast</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_SHOW_TOAST_FEATURE_COUNT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl <em>Action Start Activity</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartActivity()\n * @generated\n */\n int ACTION_START_ACTIVITY = 35;\n\n /**\n * The feature id for the '<em><b>Activity</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_START_ACTIVITY__ACTIVITY = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Action Start Activity</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_START_ACTIVITY_FEATURE_COUNT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl <em>Action Start Service</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartService()\n * @generated\n */\n int ACTION_START_SERVICE = 36;\n\n /**\n * The feature id for the '<em><b>Service</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_START_SERVICE__SERVICE = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Action Start Service</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_START_SERVICE_FEATURE_COUNT = LAYOUT_ELEMENT_CLICK_ACTION_FEATURE_COUNT + 1;\n\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.AndroidAppProject <em>Android App Project</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Android App Project</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.AndroidAppProject\n * @generated\n */\n EClass getAndroidAppProject();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.AndroidAppProject#getApplications <em>Applications</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Applications</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.AndroidAppProject#getApplications()\n * @see #getAndroidAppProject()\n * @generated\n */\n EReference getAndroidAppProject_Applications();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Application <em>Application</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Application\n * @generated\n */\n EClass getApplication();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Application#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Application#getName()\n * @see #getApplication()\n * @generated\n */\n EAttribute getApplication_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Application#getAttributes <em>Attributes</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Attributes</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Application#getAttributes()\n * @see #getApplication()\n * @generated\n */\n EReference getApplication_Attributes();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationAttribute <em>Application Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationAttribute\n * @generated\n */\n EClass getApplicationAttribute();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk <em>Application Min Sdk</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Min Sdk</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk\n * @generated\n */\n EClass getApplicationMinSdk();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk#getMinSdk <em>Min Sdk</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Min Sdk</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationMinSdk#getMinSdk()\n * @see #getApplicationMinSdk()\n * @generated\n */\n EAttribute getApplicationMinSdk_MinSdk();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk <em>Application Target Sdk</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Target Sdk</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk\n * @generated\n */\n EClass getApplicationTargetSdk();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk#getTargetSdk <em>Target Sdk</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Target Sdk</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationTargetSdk#getTargetSdk()\n * @see #getApplicationTargetSdk()\n * @generated\n */\n EAttribute getApplicationTargetSdk_TargetSdk();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk <em>Application Compile Sdk</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Compile Sdk</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk\n * @generated\n */\n EClass getApplicationCompileSdk();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk#getCompileSdk <em>Compile Sdk</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Compile Sdk</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationCompileSdk#getCompileSdk()\n * @see #getApplicationCompileSdk()\n * @generated\n */\n EAttribute getApplicationCompileSdk_CompileSdk();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList <em>Application Permission List</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Permission List</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList\n * @generated\n */\n EClass getApplicationPermissionList();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList#getPermissions <em>Permissions</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Permissions</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationPermissionList#getPermissions()\n * @see #getApplicationPermissionList()\n * @generated\n */\n EReference getApplicationPermissionList_Permissions();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElementList <em>Application Element List</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Element List</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationElementList\n * @generated\n */\n EClass getApplicationElementList();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElementList#getElements <em>Elements</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Elements</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationElementList#getElements()\n * @see #getApplicationElementList()\n * @generated\n */\n EReference getApplicationElementList_Elements();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity <em>Application Main Activity</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Main Activity</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity\n * @generated\n */\n EClass getApplicationMainActivity();\n\n /**\n * Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity#getLauncherActivity <em>Launcher Activity</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Launcher Activity</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationMainActivity#getLauncherActivity()\n * @see #getApplicationMainActivity()\n * @generated\n */\n EReference getApplicationMainActivity_LauncherActivity();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Permission <em>Permission</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Permission</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Permission\n * @generated\n */\n EClass getPermission();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Permission#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Permission#getName()\n * @see #getPermission()\n * @generated\n */\n EAttribute getPermission_Name();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElement <em>Application Element</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Application Element</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationElement\n * @generated\n */\n EClass getApplicationElement();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ApplicationElement#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ApplicationElement#getName()\n * @see #getApplicationElement()\n * @generated\n */\n EAttribute getApplicationElement_Name();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Activity <em>Activity</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Activity</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Activity\n * @generated\n */\n EClass getActivity();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Activity#getAttributes <em>Attributes</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Attributes</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Activity#getAttributes()\n * @see #getActivity()\n * @generated\n */\n EReference getActivity_Attributes();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiver <em>Broadcast Receiver</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Broadcast Receiver</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiver\n * @generated\n */\n EClass getBroadcastReceiver();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiver#getAttributes <em>Attributes</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Attributes</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiver#getAttributes()\n * @see #getBroadcastReceiver()\n * @generated\n */\n EReference getBroadcastReceiver_Attributes();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Service <em>Service</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Service</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Service\n * @generated\n */\n EClass getService();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Service#getAttributes <em>Attributes</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Attributes</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Service#getAttributes()\n * @see #getService()\n * @generated\n */\n EReference getService_Attributes();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActivityAttribute <em>Activity Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Activity Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActivityAttribute\n * @generated\n */\n EClass getActivityAttribute();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAttribute <em>Broadcast Receiver Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Broadcast Receiver Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAttribute\n * @generated\n */\n EClass getBroadcastReceiverAttribute();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ServiceAttribute <em>Service Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Service Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ServiceAttribute\n * @generated\n */\n EClass getServiceAttribute();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute <em>Element Enabled Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Element Enabled Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute\n * @generated\n */\n EClass getElementEnabledAttribute();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute#isEnabled <em>Enabled</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Enabled</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementEnabledAttribute#isEnabled()\n * @see #getElementEnabledAttribute()\n * @generated\n */\n EAttribute getElementEnabledAttribute_Enabled();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute <em>Element Exported Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Element Exported Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute\n * @generated\n */\n EClass getElementExportedAttribute();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute#isExported <em>Exported</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Exported</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementExportedAttribute#isExported()\n * @see #getElementExportedAttribute()\n * @generated\n */\n EAttribute getElementExportedAttribute_Exported();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute <em>Element Label Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Element Label Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute\n * @generated\n */\n EClass getElementLabelAttribute();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute#getTitle <em>Title</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Title</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementLabelAttribute#getTitle()\n * @see #getElementLabelAttribute()\n * @generated\n */\n EAttribute getElementLabelAttribute_Title();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ElementIntentList <em>Element Intent List</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Element Intent List</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementIntentList\n * @generated\n */\n EClass getElementIntentList();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ElementIntentList#getIntents <em>Intents</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Intents</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ElementIntentList#getIntents()\n * @see #getElementIntentList()\n * @generated\n */\n EReference getElementIntentList_Intents();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Intent <em>Intent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Intent</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Intent\n * @generated\n */\n EClass getIntent();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Intent#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Intent#getName()\n * @see #getIntent()\n * @generated\n */\n EAttribute getIntent_Name();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute <em>Activity Parent Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Activity Parent Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute\n * @generated\n */\n EClass getActivityParentAttribute();\n\n /**\n * Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute#getParent <em>Parent</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Parent</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActivityParentAttribute#getParent()\n * @see #getActivityParentAttribute()\n * @generated\n */\n EReference getActivityParentAttribute_Parent();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute <em>Activity Layout Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Activity Layout Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute\n * @generated\n */\n EClass getActivityLayoutAttribute();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute#getLayoutElements <em>Layout Elements</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Layout Elements</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActivityLayoutAttribute#getLayoutElements()\n * @see #getActivityLayoutAttribute()\n * @generated\n */\n EReference getActivityLayoutAttribute_LayoutElements();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.LayoutElement <em>Layout Element</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Layout Element</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.LayoutElement\n * @generated\n */\n EClass getLayoutElement();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Button <em>Button</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Button</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Button\n * @generated\n */\n EClass getButton();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Button#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Button#getName()\n * @see #getButton()\n * @generated\n */\n EAttribute getButton_Name();\n\n /**\n * Returns the meta object for the containment reference list '{@link at.fhj.gaar.androidapp.appDsl.Button#getAttributes <em>Attributes</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Attributes</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Button#getAttributes()\n * @see #getButton()\n * @generated\n */\n EReference getButton_Attributes();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ButtonAttribute <em>Button Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Button Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ButtonAttribute\n * @generated\n */\n EClass getButtonAttribute();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute <em>Button Label Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Button Label Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute\n * @generated\n */\n EClass getButtonLabelAttribute();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute#getTitle <em>Title</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Title</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ButtonLabelAttribute#getTitle()\n * @see #getButtonLabelAttribute()\n * @generated\n */\n EAttribute getButtonLabelAttribute_Title();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute <em>Button Action Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Button Action Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute\n * @generated\n */\n EClass getButtonActionAttribute();\n\n /**\n * Returns the meta object for the containment reference '{@link at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute#getAction <em>Action</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Action</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ButtonActionAttribute#getAction()\n * @see #getButtonActionAttribute()\n * @generated\n */\n EReference getButtonActionAttribute_Action();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Spacer <em>Spacer</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Spacer</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Spacer\n * @generated\n */\n EClass getSpacer();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.Text <em>Text</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Text</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Text\n * @generated\n */\n EClass getText();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.Text#getText <em>Text</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Text</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.Text#getText()\n * @see #getText()\n * @generated\n */\n EAttribute getText_Text();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.LayoutElementClickAction <em>Layout Element Click Action</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Layout Element Click Action</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.LayoutElementClickAction\n * @generated\n */\n EClass getLayoutElementClickAction();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute <em>Broadcast Receiver Action Attribute</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Broadcast Receiver Action Attribute</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute\n * @generated\n */\n EClass getBroadcastReceiverActionAttribute();\n\n /**\n * Returns the meta object for the containment reference '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute#getAction <em>Action</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Action</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverActionAttribute#getAction()\n * @see #getBroadcastReceiverActionAttribute()\n * @generated\n */\n EReference getBroadcastReceiverActionAttribute_Action();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAction <em>Broadcast Receiver Action</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Broadcast Receiver Action</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.BroadcastReceiverAction\n * @generated\n */\n EClass getBroadcastReceiverAction();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActionShowToast <em>Action Show Toast</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Action Show Toast</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActionShowToast\n * @generated\n */\n EClass getActionShowToast();\n\n /**\n * Returns the meta object for the attribute '{@link at.fhj.gaar.androidapp.appDsl.ActionShowToast#getToastText <em>Toast Text</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Toast Text</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActionShowToast#getToastText()\n * @see #getActionShowToast()\n * @generated\n */\n EAttribute getActionShowToast_ToastText();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActionStartActivity <em>Action Start Activity</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Action Start Activity</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActionStartActivity\n * @generated\n */\n EClass getActionStartActivity();\n\n /**\n * Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ActionStartActivity#getActivity <em>Activity</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Activity</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActionStartActivity#getActivity()\n * @see #getActionStartActivity()\n * @generated\n */\n EReference getActionStartActivity_Activity();\n\n /**\n * Returns the meta object for class '{@link at.fhj.gaar.androidapp.appDsl.ActionStartService <em>Action Start Service</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Action Start Service</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActionStartService\n * @generated\n */\n EClass getActionStartService();\n\n /**\n * Returns the meta object for the reference '{@link at.fhj.gaar.androidapp.appDsl.ActionStartService#getService <em>Service</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Service</em>'.\n * @see at.fhj.gaar.androidapp.appDsl.ActionStartService#getService()\n * @see #getActionStartService()\n * @generated\n */\n EReference getActionStartService_Service();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n AppDslFactory getAppDslFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals\n {\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl <em>Android App Project</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.AndroidAppProjectImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getAndroidAppProject()\n * @generated\n */\n EClass ANDROID_APP_PROJECT = eINSTANCE.getAndroidAppProject();\n\n /**\n * The meta object literal for the '<em><b>Applications</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ANDROID_APP_PROJECT__APPLICATIONS = eINSTANCE.getAndroidAppProject_Applications();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl <em>Application</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplication()\n * @generated\n */\n EClass APPLICATION = eINSTANCE.getApplication();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute APPLICATION__NAME = eINSTANCE.getApplication_Name();\n\n /**\n * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference APPLICATION__ATTRIBUTES = eINSTANCE.getApplication_Attributes();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl <em>Application Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationAttribute()\n * @generated\n */\n EClass APPLICATION_ATTRIBUTE = eINSTANCE.getApplicationAttribute();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl <em>Application Min Sdk</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMinSdkImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMinSdk()\n * @generated\n */\n EClass APPLICATION_MIN_SDK = eINSTANCE.getApplicationMinSdk();\n\n /**\n * The meta object literal for the '<em><b>Min Sdk</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute APPLICATION_MIN_SDK__MIN_SDK = eINSTANCE.getApplicationMinSdk_MinSdk();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl <em>Application Target Sdk</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationTargetSdkImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationTargetSdk()\n * @generated\n */\n EClass APPLICATION_TARGET_SDK = eINSTANCE.getApplicationTargetSdk();\n\n /**\n * The meta object literal for the '<em><b>Target Sdk</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute APPLICATION_TARGET_SDK__TARGET_SDK = eINSTANCE.getApplicationTargetSdk_TargetSdk();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl <em>Application Compile Sdk</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationCompileSdkImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationCompileSdk()\n * @generated\n */\n EClass APPLICATION_COMPILE_SDK = eINSTANCE.getApplicationCompileSdk();\n\n /**\n * The meta object literal for the '<em><b>Compile Sdk</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute APPLICATION_COMPILE_SDK__COMPILE_SDK = eINSTANCE.getApplicationCompileSdk_CompileSdk();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl <em>Application Permission List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationPermissionListImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationPermissionList()\n * @generated\n */\n EClass APPLICATION_PERMISSION_LIST = eINSTANCE.getApplicationPermissionList();\n\n /**\n * The meta object literal for the '<em><b>Permissions</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference APPLICATION_PERMISSION_LIST__PERMISSIONS = eINSTANCE.getApplicationPermissionList_Permissions();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl <em>Application Element List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementListImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElementList()\n * @generated\n */\n EClass APPLICATION_ELEMENT_LIST = eINSTANCE.getApplicationElementList();\n\n /**\n * The meta object literal for the '<em><b>Elements</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference APPLICATION_ELEMENT_LIST__ELEMENTS = eINSTANCE.getApplicationElementList_Elements();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl <em>Application Main Activity</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationMainActivityImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationMainActivity()\n * @generated\n */\n EClass APPLICATION_MAIN_ACTIVITY = eINSTANCE.getApplicationMainActivity();\n\n /**\n * The meta object literal for the '<em><b>Launcher Activity</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference APPLICATION_MAIN_ACTIVITY__LAUNCHER_ACTIVITY = eINSTANCE.getApplicationMainActivity_LauncherActivity();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl <em>Permission</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.PermissionImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getPermission()\n * @generated\n */\n EClass PERMISSION = eINSTANCE.getPermission();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute PERMISSION__NAME = eINSTANCE.getPermission_Name();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl <em>Application Element</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ApplicationElementImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getApplicationElement()\n * @generated\n */\n EClass APPLICATION_ELEMENT = eINSTANCE.getApplicationElement();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute APPLICATION_ELEMENT__NAME = eINSTANCE.getApplicationElement_Name();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl <em>Activity</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivity()\n * @generated\n */\n EClass ACTIVITY = eINSTANCE.getActivity();\n\n /**\n * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ACTIVITY__ATTRIBUTES = eINSTANCE.getActivity_Attributes();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl <em>Broadcast Receiver</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiver()\n * @generated\n */\n EClass BROADCAST_RECEIVER = eINSTANCE.getBroadcastReceiver();\n\n /**\n * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference BROADCAST_RECEIVER__ATTRIBUTES = eINSTANCE.getBroadcastReceiver_Attributes();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl <em>Service</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ServiceImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getService()\n * @generated\n */\n EClass SERVICE = eINSTANCE.getService();\n\n /**\n * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SERVICE__ATTRIBUTES = eINSTANCE.getService_Attributes();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl <em>Activity Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityAttribute()\n * @generated\n */\n EClass ACTIVITY_ATTRIBUTE = eINSTANCE.getActivityAttribute();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl <em>Broadcast Receiver Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAttribute()\n * @generated\n */\n EClass BROADCAST_RECEIVER_ATTRIBUTE = eINSTANCE.getBroadcastReceiverAttribute();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl <em>Service Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ServiceAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getServiceAttribute()\n * @generated\n */\n EClass SERVICE_ATTRIBUTE = eINSTANCE.getServiceAttribute();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl <em>Element Enabled Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementEnabledAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementEnabledAttribute()\n * @generated\n */\n EClass ELEMENT_ENABLED_ATTRIBUTE = eINSTANCE.getElementEnabledAttribute();\n\n /**\n * The meta object literal for the '<em><b>Enabled</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ELEMENT_ENABLED_ATTRIBUTE__ENABLED = eINSTANCE.getElementEnabledAttribute_Enabled();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl <em>Element Exported Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementExportedAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementExportedAttribute()\n * @generated\n */\n EClass ELEMENT_EXPORTED_ATTRIBUTE = eINSTANCE.getElementExportedAttribute();\n\n /**\n * The meta object literal for the '<em><b>Exported</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ELEMENT_EXPORTED_ATTRIBUTE__EXPORTED = eINSTANCE.getElementExportedAttribute_Exported();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl <em>Element Label Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementLabelAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementLabelAttribute()\n * @generated\n */\n EClass ELEMENT_LABEL_ATTRIBUTE = eINSTANCE.getElementLabelAttribute();\n\n /**\n * The meta object literal for the '<em><b>Title</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ELEMENT_LABEL_ATTRIBUTE__TITLE = eINSTANCE.getElementLabelAttribute_Title();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl <em>Element Intent List</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ElementIntentListImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getElementIntentList()\n * @generated\n */\n EClass ELEMENT_INTENT_LIST = eINSTANCE.getElementIntentList();\n\n /**\n * The meta object literal for the '<em><b>Intents</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ELEMENT_INTENT_LIST__INTENTS = eINSTANCE.getElementIntentList_Intents();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.IntentImpl <em>Intent</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.IntentImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getIntent()\n * @generated\n */\n EClass INTENT = eINSTANCE.getIntent();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute INTENT__NAME = eINSTANCE.getIntent_Name();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl <em>Activity Parent Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityParentAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityParentAttribute()\n * @generated\n */\n EClass ACTIVITY_PARENT_ATTRIBUTE = eINSTANCE.getActivityParentAttribute();\n\n /**\n * The meta object literal for the '<em><b>Parent</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ACTIVITY_PARENT_ATTRIBUTE__PARENT = eINSTANCE.getActivityParentAttribute_Parent();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl <em>Activity Layout Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActivityLayoutAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActivityLayoutAttribute()\n * @generated\n */\n EClass ACTIVITY_LAYOUT_ATTRIBUTE = eINSTANCE.getActivityLayoutAttribute();\n\n /**\n * The meta object literal for the '<em><b>Layout Elements</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ACTIVITY_LAYOUT_ATTRIBUTE__LAYOUT_ELEMENTS = eINSTANCE.getActivityLayoutAttribute_LayoutElements();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl <em>Layout Element</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElement()\n * @generated\n */\n EClass LAYOUT_ELEMENT = eINSTANCE.getLayoutElement();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl <em>Button</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButton()\n * @generated\n */\n EClass BUTTON = eINSTANCE.getButton();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute BUTTON__NAME = eINSTANCE.getButton_Name();\n\n /**\n * The meta object literal for the '<em><b>Attributes</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference BUTTON__ATTRIBUTES = eINSTANCE.getButton_Attributes();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl <em>Button Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonAttribute()\n * @generated\n */\n EClass BUTTON_ATTRIBUTE = eINSTANCE.getButtonAttribute();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl <em>Button Label Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonLabelAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonLabelAttribute()\n * @generated\n */\n EClass BUTTON_LABEL_ATTRIBUTE = eINSTANCE.getButtonLabelAttribute();\n\n /**\n * The meta object literal for the '<em><b>Title</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute BUTTON_LABEL_ATTRIBUTE__TITLE = eINSTANCE.getButtonLabelAttribute_Title();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl <em>Button Action Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ButtonActionAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getButtonActionAttribute()\n * @generated\n */\n EClass BUTTON_ACTION_ATTRIBUTE = eINSTANCE.getButtonActionAttribute();\n\n /**\n * The meta object literal for the '<em><b>Action</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference BUTTON_ACTION_ATTRIBUTE__ACTION = eINSTANCE.getButtonActionAttribute_Action();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl <em>Spacer</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.SpacerImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getSpacer()\n * @generated\n */\n EClass SPACER = eINSTANCE.getSpacer();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.TextImpl <em>Text</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.TextImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getText()\n * @generated\n */\n EClass TEXT = eINSTANCE.getText();\n\n /**\n * The meta object literal for the '<em><b>Text</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute TEXT__TEXT = eINSTANCE.getText_Text();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl <em>Layout Element Click Action</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.LayoutElementClickActionImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getLayoutElementClickAction()\n * @generated\n */\n EClass LAYOUT_ELEMENT_CLICK_ACTION = eINSTANCE.getLayoutElementClickAction();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl <em>Broadcast Receiver Action Attribute</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionAttributeImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverActionAttribute()\n * @generated\n */\n EClass BROADCAST_RECEIVER_ACTION_ATTRIBUTE = eINSTANCE.getBroadcastReceiverActionAttribute();\n\n /**\n * The meta object literal for the '<em><b>Action</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference BROADCAST_RECEIVER_ACTION_ATTRIBUTE__ACTION = eINSTANCE.getBroadcastReceiverActionAttribute_Action();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl <em>Broadcast Receiver Action</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.BroadcastReceiverActionImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getBroadcastReceiverAction()\n * @generated\n */\n EClass BROADCAST_RECEIVER_ACTION = eINSTANCE.getBroadcastReceiverAction();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl <em>Action Show Toast</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActionShowToastImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionShowToast()\n * @generated\n */\n EClass ACTION_SHOW_TOAST = eINSTANCE.getActionShowToast();\n\n /**\n * The meta object literal for the '<em><b>Toast Text</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ACTION_SHOW_TOAST__TOAST_TEXT = eINSTANCE.getActionShowToast_ToastText();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl <em>Action Start Activity</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartActivityImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartActivity()\n * @generated\n */\n EClass ACTION_START_ACTIVITY = eINSTANCE.getActionStartActivity();\n\n /**\n * The meta object literal for the '<em><b>Activity</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ACTION_START_ACTIVITY__ACTIVITY = eINSTANCE.getActionStartActivity_Activity();\n\n /**\n * The meta object literal for the '{@link at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl <em>Action Start Service</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see at.fhj.gaar.androidapp.appDsl.impl.ActionStartServiceImpl\n * @see at.fhj.gaar.androidapp.appDsl.impl.AppDslPackageImpl#getActionStartService()\n * @generated\n */\n EClass ACTION_START_SERVICE = eINSTANCE.getActionStartService();\n\n /**\n * The meta object literal for the '<em><b>Service</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ACTION_START_SERVICE__SERVICE = eINSTANCE.getActionStartService_Service();\n\n }\n\n}", "public interface ExportedPackageHolder {\n\n /**\n * \n * @return the name of the package being exported\n */\n public String getPackageName();\n\n /**\n * \n * @return the <code>Version</code> that the package is exported at as a String.\n */\n public String getVersion();\n \n /**\n * \n * @return the {@link BundleHolder} that provides this <code>ExportedPackageHolder</code>\n */\n public BundleHolder getExportingBundle();\n \n /**\n * \n * @return A list {@link ImportedPackageHolder}s that are consuming this export\n */\n public List<ImportedPackageHolder> getConsumers();\n \n /**\n * Returns the directives for a header.\n * \n * @return a map containing the directives\n */\n Map<String, String> getDirectives();\n\n /**\n * Returns the attributes for a header.\n * \n * @return a map containing the attributes\n */\n Map<String, String> getAttributes();\n \n}", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "protected abstract FragmentComponent setupComponent();", "@Override\n public String visit(PackageDeclaration n, Object arg) {\n return null;\n }", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "int getMajorFragmentId();", "private EditBuildInfoFragment findInfoFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\treturn (EditBuildInfoFragment) fm.findFragmentByTag(FragmentUtils.makeFragmentName(mPager.getId(), 0));\n\t}", "TggPackage getTggPackage();", "boolean hasMinorFragmentId();", "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "public String getFragment() {\n return m_fragment;\n }", "@PerFragment\n//@Component(dependencies = MovieComponent.class, modules = FragmentModule.class)\n@Subcomponent(modules = FragmentModule.class)\npublic interface FragmentComponent {\n void inject(MainFragment fragment);\n void inject(MovieDetailsFragment fragment);\n void inject(SearchFragment fragment);\n void inject(OnboardingFragment fragment);\n void inject(VerticalGridFragment fragment);\n}", "@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }", "Decl getPart();", "public interface ASPMPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"ASPM\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.emftext.org/language/ASPM\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"ASPM\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tASPMPackage eINSTANCE = ASPM.impl.ASPMPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link ASPM.impl.LocatedElementImpl <em>Located Element</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see ASPM.impl.LocatedElementImpl\n\t * @see ASPM.impl.ASPMPackageImpl#getLocatedElement()\n\t * @generated\n\t */\n\tint LOCATED_ELEMENT = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Location</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LOCATED_ELEMENT__LOCATION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Comments Before</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LOCATED_ELEMENT__COMMENTS_BEFORE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Comments After</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LOCATED_ELEMENT__COMMENTS_AFTER = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Located Element</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LOCATED_ELEMENT_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Located Element</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint LOCATED_ELEMENT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link ASPM.impl.ModelImpl <em>Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see ASPM.impl.ModelImpl\n\t * @see ASPM.impl.ASPMPackageImpl#getModel()\n\t * @generated\n\t */\n\tint MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Location</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__LOCATION = LOCATED_ELEMENT__LOCATION;\n\n\t/**\n\t * The feature id for the '<em><b>Comments Before</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__COMMENTS_BEFORE = LOCATED_ELEMENT__COMMENTS_BEFORE;\n\n\t/**\n\t * The feature id for the '<em><b>Comments After</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__COMMENTS_AFTER = LOCATED_ELEMENT__COMMENTS_AFTER;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__ID = LOCATED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__NAME = LOCATED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Nodes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__NODES = LOCATED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Edges</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__EDGES = LOCATED_ELEMENT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Props</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL__PROPS = LOCATED_ELEMENT_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of structural features of the '<em>Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL_FEATURE_COUNT = LOCATED_ELEMENT_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of operations of the '<em>Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MODEL_OPERATION_COUNT = LOCATED_ELEMENT_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link ASPM.impl.NodeImpl <em>Node</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see ASPM.impl.NodeImpl\n\t * @see ASPM.impl.ASPMPackageImpl#getNode()\n\t * @generated\n\t */\n\tint NODE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Location</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__LOCATION = LOCATED_ELEMENT__LOCATION;\n\n\t/**\n\t * The feature id for the '<em><b>Comments Before</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__COMMENTS_BEFORE = LOCATED_ELEMENT__COMMENTS_BEFORE;\n\n\t/**\n\t * The feature id for the '<em><b>Comments After</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__COMMENTS_AFTER = LOCATED_ELEMENT__COMMENTS_AFTER;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__ID = LOCATED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>IDtrace</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__IDTRACE = LOCATED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__NAME = LOCATED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Model</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE__MODEL = LOCATED_ELEMENT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_FEATURE_COUNT = LOCATED_ELEMENT_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of operations of the '<em>Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint NODE_OPERATION_COUNT = LOCATED_ELEMENT_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link ASPM.impl.PropImpl <em>Prop</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see ASPM.impl.PropImpl\n\t * @see ASPM.impl.ASPMPackageImpl#getProp()\n\t * @generated\n\t */\n\tint PROP = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Location</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__LOCATION = LOCATED_ELEMENT__LOCATION;\n\n\t/**\n\t * The feature id for the '<em><b>Comments Before</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__COMMENTS_BEFORE = LOCATED_ELEMENT__COMMENTS_BEFORE;\n\n\t/**\n\t * The feature id for the '<em><b>Comments After</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__COMMENTS_AFTER = LOCATED_ELEMENT__COMMENTS_AFTER;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__ID = LOCATED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>IDtrace</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__IDTRACE = LOCATED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__NAME = LOCATED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__VALUE = LOCATED_ELEMENT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Model</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__MODEL = LOCATED_ELEMENT_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Owner</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP__OWNER = LOCATED_ELEMENT_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of structural features of the '<em>Prop</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP_FEATURE_COUNT = LOCATED_ELEMENT_FEATURE_COUNT + 6;\n\n\t/**\n\t * The number of operations of the '<em>Prop</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint PROP_OPERATION_COUNT = LOCATED_ELEMENT_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link ASPM.impl.EdgeImpl <em>Edge</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see ASPM.impl.EdgeImpl\n\t * @see ASPM.impl.ASPMPackageImpl#getEdge()\n\t * @generated\n\t */\n\tint EDGE = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Location</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__LOCATION = LOCATED_ELEMENT__LOCATION;\n\n\t/**\n\t * The feature id for the '<em><b>Comments Before</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__COMMENTS_BEFORE = LOCATED_ELEMENT__COMMENTS_BEFORE;\n\n\t/**\n\t * The feature id for the '<em><b>Comments After</b></em>' attribute list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__COMMENTS_AFTER = LOCATED_ELEMENT__COMMENTS_AFTER;\n\n\t/**\n\t * The feature id for the '<em><b>ID</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__ID = LOCATED_ELEMENT_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>IDtrace</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__IDTRACE = LOCATED_ELEMENT_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__NAME = LOCATED_ELEMENT_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Source</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__SOURCE = LOCATED_ELEMENT_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__TARGET = LOCATED_ELEMENT_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Model</b></em>' container reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE__MODEL = LOCATED_ELEMENT_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of structural features of the '<em>Edge</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE_FEATURE_COUNT = LOCATED_ELEMENT_FEATURE_COUNT + 6;\n\n\n\t/**\n\t * The number of operations of the '<em>Edge</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint EDGE_OPERATION_COUNT = LOCATED_ELEMENT_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link ASPM.LocatedElement <em>Located Element</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Located Element</em>'.\n\t * @see ASPM.LocatedElement\n\t * @generated\n\t */\n\tEClass getLocatedElement();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.LocatedElement#getLocation <em>Location</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Location</em>'.\n\t * @see ASPM.LocatedElement#getLocation()\n\t * @see #getLocatedElement()\n\t * @generated\n\t */\n\tEAttribute getLocatedElement_Location();\n\n\t/**\n\t * Returns the meta object for the attribute list '{@link ASPM.LocatedElement#getCommentsBefore <em>Comments Before</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute list '<em>Comments Before</em>'.\n\t * @see ASPM.LocatedElement#getCommentsBefore()\n\t * @see #getLocatedElement()\n\t * @generated\n\t */\n\tEAttribute getLocatedElement_CommentsBefore();\n\n\t/**\n\t * Returns the meta object for the attribute list '{@link ASPM.LocatedElement#getCommentsAfter <em>Comments After</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute list '<em>Comments After</em>'.\n\t * @see ASPM.LocatedElement#getCommentsAfter()\n\t * @see #getLocatedElement()\n\t * @generated\n\t */\n\tEAttribute getLocatedElement_CommentsAfter();\n\n\t/**\n\t * Returns the meta object for class '{@link ASPM.Model <em>Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Model</em>'.\n\t * @see ASPM.Model\n\t * @generated\n\t */\n\tEClass getModel();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Model#getID <em>ID</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>ID</em>'.\n\t * @see ASPM.Model#getID()\n\t * @see #getModel()\n\t * @generated\n\t */\n\tEAttribute getModel_ID();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Model#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see ASPM.Model#getName()\n\t * @see #getModel()\n\t * @generated\n\t */\n\tEAttribute getModel_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link ASPM.Model#getNodes <em>Nodes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Nodes</em>'.\n\t * @see ASPM.Model#getNodes()\n\t * @see #getModel()\n\t * @generated\n\t */\n\tEReference getModel_Nodes();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link ASPM.Model#getEdges <em>Edges</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Edges</em>'.\n\t * @see ASPM.Model#getEdges()\n\t * @see #getModel()\n\t * @generated\n\t */\n\tEReference getModel_Edges();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link ASPM.Model#getProps <em>Props</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Props</em>'.\n\t * @see ASPM.Model#getProps()\n\t * @see #getModel()\n\t * @generated\n\t */\n\tEReference getModel_Props();\n\n\t/**\n\t * Returns the meta object for class '{@link ASPM.Node <em>Node</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Node</em>'.\n\t * @see ASPM.Node\n\t * @generated\n\t */\n\tEClass getNode();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Node#getID <em>ID</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>ID</em>'.\n\t * @see ASPM.Node#getID()\n\t * @see #getNode()\n\t * @generated\n\t */\n\tEAttribute getNode_ID();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Node#getIDtrace <em>IDtrace</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>IDtrace</em>'.\n\t * @see ASPM.Node#getIDtrace()\n\t * @see #getNode()\n\t * @generated\n\t */\n\tEAttribute getNode_IDtrace();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Node#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see ASPM.Node#getName()\n\t * @see #getNode()\n\t * @generated\n\t */\n\tEAttribute getNode_Name();\n\n\t/**\n\t * Returns the meta object for the container reference '{@link ASPM.Node#getModel <em>Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the container reference '<em>Model</em>'.\n\t * @see ASPM.Node#getModel()\n\t * @see #getNode()\n\t * @generated\n\t */\n\tEReference getNode_Model();\n\n\t/**\n\t * Returns the meta object for class '{@link ASPM.Prop <em>Prop</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Prop</em>'.\n\t * @see ASPM.Prop\n\t * @generated\n\t */\n\tEClass getProp();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Prop#getID <em>ID</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>ID</em>'.\n\t * @see ASPM.Prop#getID()\n\t * @see #getProp()\n\t * @generated\n\t */\n\tEAttribute getProp_ID();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Prop#getIDtrace <em>IDtrace</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>IDtrace</em>'.\n\t * @see ASPM.Prop#getIDtrace()\n\t * @see #getProp()\n\t * @generated\n\t */\n\tEAttribute getProp_IDtrace();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Prop#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see ASPM.Prop#getName()\n\t * @see #getProp()\n\t * @generated\n\t */\n\tEAttribute getProp_Name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Prop#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see ASPM.Prop#getValue()\n\t * @see #getProp()\n\t * @generated\n\t */\n\tEAttribute getProp_Value();\n\n\t/**\n\t * Returns the meta object for the container reference '{@link ASPM.Prop#getModel <em>Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the container reference '<em>Model</em>'.\n\t * @see ASPM.Prop#getModel()\n\t * @see #getProp()\n\t * @generated\n\t */\n\tEReference getProp_Model();\n\n\t/**\n\t * Returns the meta object for the reference '{@link ASPM.Prop#getOwner <em>Owner</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Owner</em>'.\n\t * @see ASPM.Prop#getOwner()\n\t * @see #getProp()\n\t * @generated\n\t */\n\tEReference getProp_Owner();\n\n\t/**\n\t * Returns the meta object for class '{@link ASPM.Edge <em>Edge</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Edge</em>'.\n\t * @see ASPM.Edge\n\t * @generated\n\t */\n\tEClass getEdge();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Edge#getID <em>ID</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>ID</em>'.\n\t * @see ASPM.Edge#getID()\n\t * @see #getEdge()\n\t * @generated\n\t */\n\tEAttribute getEdge_ID();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Edge#getIDtrace <em>IDtrace</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>IDtrace</em>'.\n\t * @see ASPM.Edge#getIDtrace()\n\t * @see #getEdge()\n\t * @generated\n\t */\n\tEAttribute getEdge_IDtrace();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link ASPM.Edge#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see ASPM.Edge#getName()\n\t * @see #getEdge()\n\t * @generated\n\t */\n\tEAttribute getEdge_Name();\n\n\t/**\n\t * Returns the meta object for the reference '{@link ASPM.Edge#getSource <em>Source</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Source</em>'.\n\t * @see ASPM.Edge#getSource()\n\t * @see #getEdge()\n\t * @generated\n\t */\n\tEReference getEdge_Source();\n\n\t/**\n\t * Returns the meta object for the reference '{@link ASPM.Edge#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Target</em>'.\n\t * @see ASPM.Edge#getTarget()\n\t * @see #getEdge()\n\t * @generated\n\t */\n\tEReference getEdge_Target();\n\n\t/**\n\t * Returns the meta object for the container reference '{@link ASPM.Edge#getModel <em>Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the container reference '<em>Model</em>'.\n\t * @see ASPM.Edge#getModel()\n\t * @see #getEdge()\n\t * @generated\n\t */\n\tEReference getEdge_Model();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tASPMFactory getASPMFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link ASPM.impl.LocatedElementImpl <em>Located Element</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see ASPM.impl.LocatedElementImpl\n\t\t * @see ASPM.impl.ASPMPackageImpl#getLocatedElement()\n\t\t * @generated\n\t\t */\n\t\tEClass LOCATED_ELEMENT = eINSTANCE.getLocatedElement();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Location</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute LOCATED_ELEMENT__LOCATION = eINSTANCE.getLocatedElement_Location();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Comments Before</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute LOCATED_ELEMENT__COMMENTS_BEFORE = eINSTANCE.getLocatedElement_CommentsBefore();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Comments After</b></em>' attribute list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute LOCATED_ELEMENT__COMMENTS_AFTER = eINSTANCE.getLocatedElement_CommentsAfter();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link ASPM.impl.ModelImpl <em>Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see ASPM.impl.ModelImpl\n\t\t * @see ASPM.impl.ASPMPackageImpl#getModel()\n\t\t * @generated\n\t\t */\n\t\tEClass MODEL = eINSTANCE.getModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>ID</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MODEL__ID = eINSTANCE.getModel_ID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MODEL__NAME = eINSTANCE.getModel_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Nodes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MODEL__NODES = eINSTANCE.getModel_Nodes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edges</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MODEL__EDGES = eINSTANCE.getModel_Edges();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Props</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MODEL__PROPS = eINSTANCE.getModel_Props();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link ASPM.impl.NodeImpl <em>Node</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see ASPM.impl.NodeImpl\n\t\t * @see ASPM.impl.ASPMPackageImpl#getNode()\n\t\t * @generated\n\t\t */\n\t\tEClass NODE = eINSTANCE.getNode();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>ID</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__ID = eINSTANCE.getNode_ID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>IDtrace</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__IDTRACE = eINSTANCE.getNode_IDtrace();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute NODE__NAME = eINSTANCE.getNode_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Model</b></em>' container reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference NODE__MODEL = eINSTANCE.getNode_Model();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link ASPM.impl.PropImpl <em>Prop</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see ASPM.impl.PropImpl\n\t\t * @see ASPM.impl.ASPMPackageImpl#getProp()\n\t\t * @generated\n\t\t */\n\t\tEClass PROP = eINSTANCE.getProp();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>ID</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROP__ID = eINSTANCE.getProp_ID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>IDtrace</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROP__IDTRACE = eINSTANCE.getProp_IDtrace();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROP__NAME = eINSTANCE.getProp_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute PROP__VALUE = eINSTANCE.getProp_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Model</b></em>' container reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PROP__MODEL = eINSTANCE.getProp_Model();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Owner</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference PROP__OWNER = eINSTANCE.getProp_Owner();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link ASPM.impl.EdgeImpl <em>Edge</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see ASPM.impl.EdgeImpl\n\t\t * @see ASPM.impl.ASPMPackageImpl#getEdge()\n\t\t * @generated\n\t\t */\n\t\tEClass EDGE = eINSTANCE.getEdge();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>ID</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute EDGE__ID = eINSTANCE.getEdge_ID();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>IDtrace</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute EDGE__IDTRACE = eINSTANCE.getEdge_IDtrace();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute EDGE__NAME = eINSTANCE.getEdge_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Source</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference EDGE__SOURCE = eINSTANCE.getEdge_Source();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference EDGE__TARGET = eINSTANCE.getEdge_Target();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Model</b></em>' container reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference EDGE__MODEL = eINSTANCE.getEdge_Model();\n\n\t}\n\n}", "public void resolve()\n{\n getFragment().resolveFragment();\n}", "public FindItemFragment() {\n }", "public void setPackageName(CharSequence packageName) {\n/* 1418 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface Example6ParentFragmentView extends BaseView {\n\n void showSomething(String something);\n}", "@Override\n public String toString() {\n return packageName;\n }", "public void createFragment() {\n\n }", "private String generateManifestMF(ConcreteSyntax cSyntax, String packageName) {\n StringBuffer s = new StringBuffer();\n \n s.append(\"Manifest-Version: 1.0\\n\");\n s.append(\"Bundle-ManifestVersion: 2\\n\");\n s.append(\"Bundle-Name: EMFTextEdit Parser Plugin: \" + cSyntax.getName() + \"\\n\");\n s.append(\"Bundle-SymbolicName: \" + packageName + \";singleton:=true\\n\");\n s.append(\"Bundle-Version: 1.0.0\\n\");\n s.append(\"Bundle-Vendor: Software Engineering Group - TU Dresden Germany\\n\");\n //s.append(\"Bundle-Localization: plugin\\n\");\n s.append(\"Require-Bundle: org.eclipse.core.runtime,\\n\");\n s.append(\" org.eclipse.emf.ecore,\\n\");\n s.append(\" \" + cSyntax.getPackage().getGenModel().getModelPluginID() + \",\\n\");\n if(EMFTextEditUIPlugin.getDefault().getPreferenceStore().getBoolean(EMFTextEditUIPlugin.GENERATE_TEST_ACTION_NAME)){\n s.append(\" org.reuseware.emftextedit.test,\\n\");\t\n }\n EList<GenModel> importedPlugins = new BasicEList<GenModel>();\n for(Import aImport : cSyntax.getImports()) {\n \tGenModel m = aImport.getPackage().getGenModel();\n \tif (!importedPlugins.contains(m)) {\n s.append(\" \" + m.getModelPluginID() + \",\\n\");\n \t\timportedPlugins.add(m);\n \t}\n }\n s.append(\" org.reuseware.emftextedit\\n\");\n s.append(\"Bundle-ActivationPolicy: lazy\\n\");\n s.append(\"Bundle-RequiredExecutionEnvironment: J2SE-1.5\\n\");\n // export the generated package\n s.append(\"Export-Package: \" + packageName + \"\\n\");\n \n return s.toString();\n }", "String getPackageName();", "static /* synthetic */ int m0-get0(cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageDeleteObserver2):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageDeleteObserver2):int\");\n }", "AbstractFragmentType createAbstractFragmentType();", "public interface Linker {\n\n void replaceFragments(int myFragment);\n\n void setTescoProductPrices(ArrayList<String> productPrices);\n\n ArrayList<String> getTescoProductPrices();\n\n void setSuperValuProductPrices(ArrayList<String> productPrices);\n\n ArrayList<String> getSuperValuProductPrices();\n\n void setProductNames(ArrayList<String> productNames);\n\n ArrayList<String> getProductNames();\n\n}", "public DeptsExpandableFragment() {\n }", "NfrPackage getNfrPackage();", "public void packageDeleted(java.lang.String r1, int r2) {\n /*\n // Can't load method instructions: Load method exception: null in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.packageDeleted(java.lang.String, int):void, dex: in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.packageDeleted(java.lang.String, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.packageDeleted(java.lang.String, int):void\");\n }", "public SymbolDetailFragment() {\n\t}", "public interface AtomPackage extends EPackage {\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"atom\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://bip2/ujf/verimag/bip/component/atom/1.0\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"bip2.ujf.verimag.bip.component.atom\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n AtomPackage eINSTANCE = bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl\n .init();\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration <em>Internal External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalExternalPortDeclaration()\n * @generated\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION = 0;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__PORT_TYPE = PortPackage.PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__NAME = PortPackage.PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS = PortPackage.PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Internal External Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl <em>Internal Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalPortDeclaration()\n * @generated\n */\n int ATOM_INTERNAL_PORT_DECLARATION = 1;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__PORT_TYPE = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__NAME = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__DATA_PARAMETERS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS;\n\n /**\n * The number of structural features of the '<em>Internal Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_PORT_DECLARATION_FEATURE_COUNT = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl <em>External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExternalPortDeclaration()\n * @generated\n */\n int ATOM_EXTERNAL_PORT_DECLARATION = 2;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__PORT_TYPE = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__NAME = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION__BIP_ANNOTATIONS;\n\n /**\n * The feature id for the '<em><b>Backend Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__BACKEND_NAME = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Policy</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION__POLICY = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>External Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT = ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl <em>Internal Data Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalDataDeclaration()\n * @generated\n */\n int ATOM_INTERNAL_DATA_DECLARATION = 3;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__BIP_ANNOTATIONS = DataPackage.EXPLICIT_DATA_DECLARATION__BIP_ANNOTATIONS;\n\n /**\n * The feature id for the '<em><b>Data Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__DATA_TYPE = DataPackage.EXPLICIT_DATA_DECLARATION__DATA_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__NAME = DataPackage.EXPLICIT_DATA_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Value</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__VALUE = DataPackage.EXPLICIT_DATA_DECLARATION__VALUE;\n\n /**\n * The feature id for the '<em><b>Const</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__CONST = DataPackage.EXPLICIT_DATA_DECLARATION__CONST;\n\n /**\n * The feature id for the '<em><b>Exported</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION__EXPORTED = DataPackage.EXPLICIT_DATA_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Internal Data Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_INTERNAL_DATA_DECLARATION_FEATURE_COUNT = DataPackage.EXPLICIT_DATA_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl <em>Export Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExportPortDeclaration()\n * @generated\n */\n int ATOM_EXPORT_PORT_DECLARATION = 4;\n\n /**\n * The feature id for the '<em><b>Port Type</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__PORT_TYPE = PortPackage.PORT_DECLARATION__PORT_TYPE;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__NAME = PortPackage.PORT_DECLARATION__NAME;\n\n /**\n * The feature id for the '<em><b>Data Parameters</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__DATA_PARAMETERS = PortPackage.PORT_DECLARATION__DATA_PARAMETERS;\n\n /**\n * The feature id for the '<em><b>Bip Annotations</b></em>' map.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__BIP_ANNOTATIONS = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Port Declaration References</b></em>' reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION__PORT_DECLARATION_REFERENCES = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 1;\n\n /**\n * The number of structural features of the '<em>Export Port Declaration</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ATOM_EXPORT_PORT_DECLARATION_FEATURE_COUNT = PortPackage.PORT_DECLARATION_FEATURE_COUNT + 2;\n\n /**\n * The meta object id for the '{@link bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy <em>Event Consumption Policy</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getEventConsumptionPolicy()\n * @generated\n */\n int EVENT_CONSUMPTION_POLICY = 5;\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration <em>Internal External Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Internal External Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration\n * @generated\n */\n EClass getAtomInternalExternalPortDeclaration();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalPortDeclaration <em>Internal Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Internal Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalPortDeclaration\n * @generated\n */\n EClass getAtomInternalPortDeclaration();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration <em>External Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>External Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration\n * @generated\n */\n EClass getAtomExternalPortDeclaration();\n\n /**\n * Returns the meta object for the attribute '{@link bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getBackendName <em>Backend Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Backend Name</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getBackendName()\n * @see #getAtomExternalPortDeclaration()\n * @generated\n */\n EAttribute getAtomExternalPortDeclaration_BackendName();\n\n /**\n * Returns the meta object for the attribute '{@link bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getPolicy <em>Policy</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Policy</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExternalPortDeclaration#getPolicy()\n * @see #getAtomExternalPortDeclaration()\n * @generated\n */\n EAttribute getAtomExternalPortDeclaration_Policy();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration <em>Internal Data Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Internal Data Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration\n * @generated\n */\n EClass getAtomInternalDataDeclaration();\n\n /**\n * Returns the meta object for the attribute '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration#isExported <em>Exported</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Exported</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalDataDeclaration#isExported()\n * @see #getAtomInternalDataDeclaration()\n * @generated\n */\n EAttribute getAtomInternalDataDeclaration_Exported();\n\n /**\n * Returns the meta object for class '{@link bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration <em>Export Port Declaration</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Export Port Declaration</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration\n * @generated\n */\n EClass getAtomExportPortDeclaration();\n\n /**\n * Returns the meta object for the reference list '{@link bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration#getPortDeclarationReferences <em>Port Declaration References</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference list '<em>Port Declaration References</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.AtomExportPortDeclaration#getPortDeclarationReferences()\n * @see #getAtomExportPortDeclaration()\n * @generated\n */\n EReference getAtomExportPortDeclaration_PortDeclarationReferences();\n\n /**\n * Returns the meta object for enum '{@link bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy <em>Event Consumption Policy</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for enum '<em>Event Consumption Policy</em>'.\n * @see bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy\n * @generated\n */\n EEnum getEventConsumptionPolicy();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n AtomFactory getAtomFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals {\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration <em>Internal External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.AtomInternalExternalPortDeclaration\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalExternalPortDeclaration()\n * @generated\n */\n EClass ATOM_INTERNAL_EXTERNAL_PORT_DECLARATION = eINSTANCE\n .getAtomInternalExternalPortDeclaration();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl <em>Internal Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalPortDeclaration()\n * @generated\n */\n EClass ATOM_INTERNAL_PORT_DECLARATION = eINSTANCE\n .getAtomInternalPortDeclaration();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl <em>External Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExternalPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExternalPortDeclaration()\n * @generated\n */\n EClass ATOM_EXTERNAL_PORT_DECLARATION = eINSTANCE\n .getAtomExternalPortDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Backend Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATOM_EXTERNAL_PORT_DECLARATION__BACKEND_NAME = eINSTANCE\n .getAtomExternalPortDeclaration_BackendName();\n\n /**\n * The meta object literal for the '<em><b>Policy</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATOM_EXTERNAL_PORT_DECLARATION__POLICY = eINSTANCE\n .getAtomExternalPortDeclaration_Policy();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl <em>Internal Data Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomInternalDataDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomInternalDataDeclaration()\n * @generated\n */\n EClass ATOM_INTERNAL_DATA_DECLARATION = eINSTANCE\n .getAtomInternalDataDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Exported</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute ATOM_INTERNAL_DATA_DECLARATION__EXPORTED = eINSTANCE\n .getAtomInternalDataDeclaration_Exported();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl <em>Export Port Declaration</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomExportPortDeclarationImpl\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getAtomExportPortDeclaration()\n * @generated\n */\n EClass ATOM_EXPORT_PORT_DECLARATION = eINSTANCE\n .getAtomExportPortDeclaration();\n\n /**\n * The meta object literal for the '<em><b>Port Declaration References</b></em>' reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference ATOM_EXPORT_PORT_DECLARATION__PORT_DECLARATION_REFERENCES = eINSTANCE\n .getAtomExportPortDeclaration_PortDeclarationReferences();\n\n /**\n * The meta object literal for the '{@link bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy <em>Event Consumption Policy</em>}' enum.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see bip2.ujf.verimag.bip.component.atom.EventConsumptionPolicy\n * @see bip2.ujf.verimag.bip.component.atom.impl.AtomPackageImpl#getEventConsumptionPolicy()\n * @generated\n */\n EEnum EVENT_CONSUMPTION_POLICY = eINSTANCE.getEventConsumptionPolicy();\n\n }\n\n}", "@RecentlyNonNull\n/* */ public String getPackageName() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface g {\n\n /* compiled from: AccessibilityViewCommand */\n public static abstract class a {\n\n /* renamed from: a reason: collision with root package name */\n private static final Bundle f2690a = new Bundle();\n\n /* renamed from: b reason: collision with root package name */\n Bundle f2691b;\n\n public void a(Bundle bundle) {\n this.f2691b = bundle;\n }\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class b extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class c extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class d extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class e extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class f extends a {\n }\n\n /* renamed from: b.g.i.a.g$g reason: collision with other inner class name */\n /* compiled from: AccessibilityViewCommand */\n public static final class C0028g extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class h extends a {\n }\n\n boolean a(View view, a aVar);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }", "@SuppressWarnings(\"unused\") // Generated code\n private static byte[] getAdapterClassDump(@NotNull String recyclerViewName,\n @NotNull String viewHolderName,\n @NotNull String adapterName) {\n ClassWriter cw = new ClassWriter(0);\n FieldVisitor fv;\n MethodVisitor mv;\n AnnotationVisitor av0;\n\n String signature = String.format(\"L%1$s<L%2$s;>;\",\n adapterName,\n viewHolderName);\n cw.visit(V1_7, ACC_PUBLIC + ACC_SUPER, \"com/android/layoutlib/bridge/android/support/Adapter\", signature, adapterName, null);\n\n cw.visitInnerClass(\"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\", \"com/android/layoutlib/bridge/android/support/Adapter\", \"ViewHolder\", ACC_PRIVATE + ACC_STATIC);\n\n cw.visitInnerClass(viewHolderName, recyclerViewName, \"ViewHolder\", ACC_PUBLIC + ACC_STATIC + ACC_ABSTRACT);\n\n cw.visitInnerClass(adapterName, recyclerViewName, \"Adapter\", ACC_PUBLIC + ACC_STATIC + ACC_ABSTRACT);\n\n {\n fv = cw.visitField(ACC_PRIVATE, \"mItemCount\", \"I\", null, null);\n fv.visitEnd();\n }\n {\n fv = cw.visitField(ACC_PRIVATE, \"mId\", \"I\", null, null);\n fv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"<init>\", \"()V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitMethodInsn(INVOKESPECIAL, adapterName, \"<init>\", \"()V\", false);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitIntInsn(BIPUSH, 10);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 1);\n mv.visitEnd();\n }\n {\n String desc = String.format(\"(Landroid/view/ViewGroup;I)L%1$s;\", viewHolderName);\n mv = cw.visitMethod(ACC_PUBLIC, \"onCreateViewHolder\", desc, null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n Label l0 = new Label();\n mv.visitJumpInsn(IFLE, l0);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getContext\", \"()Landroid/content/Context;\", false);\n mv.visitMethodInsn(INVOKESTATIC, \"android/view/LayoutInflater\", \"from\", \"(Landroid/content/Context;)Landroid/view/LayoutInflater;\", false);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n mv.visitVarInsn(ALOAD, 1);\n mv.visitInsn(ICONST_0);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/LayoutInflater\", \"inflate\", \"(ILandroid/view/ViewGroup;Z)Landroid/view/View;\", false);\n mv.visitVarInsn(ASTORE, 3);\n Label l1 = new Label();\n mv.visitJumpInsn(GOTO, l1);\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitTypeInsn(NEW, \"android/widget/TextView\");\n mv.visitInsn(DUP);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getContext\", \"()Landroid/content/Context;\", false);\n mv.visitMethodInsn(INVOKESPECIAL, \"android/widget/TextView\", \"<init>\", \"(Landroid/content/Context;)V\", false);\n mv.visitVarInsn(ASTORE, 3);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {\"android/view/View\"}, 0, null);\n mv.visitTypeInsn(NEW, \"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\");\n mv.visitInsn(DUP);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\", \"<init>\", \"(Landroid/view/View;)V\", false);\n mv.visitInsn(ARETURN);\n mv.visitMaxs(4, 4);\n mv.visitEnd();\n }\n {\n String desc = String.format(\"(L%1$s;I)V\", viewHolderName);\n mv = cw.visitMethod(ACC_PUBLIC, \"onBindViewHolder\", desc, null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 1);\n mv.visitFieldInsn(GETFIELD, viewHolderName, \"itemView\", \"Landroid/view/View;\");\n mv.visitVarInsn(ASTORE, 3);\n mv.visitTypeInsn(NEW, \"java/util/ArrayList\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/util/ArrayList\", \"<init>\", \"()V\", false);\n mv.visitVarInsn(ASTORE, 4);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitTypeInsn(NEW, \"java/util/LinkedList\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/util/LinkedList\", \"<init>\", \"()V\", false);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter\", \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", false);\n mv.visitTypeInsn(NEW, \"java/lang/StringBuilder\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/lang/StringBuilder\", \"<init>\", \"()V\", false);\n mv.visitLdcInsn(\"Item \");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitVarInsn(ILOAD, 2);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(I)Ljava/lang/StringBuilder;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"toString\", \"()Ljava/lang/String;\", false);\n mv.visitVarInsn(ASTORE, 5);\n mv.visitInsn(ICONST_0);\n mv.visitVarInsn(ISTORE, 6);\n Label l0 = new Label();\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_FULL, 7, new Object[] {\"com/android/layoutlib/bridge/android/support/Adapter\", viewHolderName, Opcodes.INTEGER, \"android/view/View\", \"java/util/ArrayList\", \"java/lang/String\", Opcodes.INTEGER}, 0, new Object[] {});\n mv.visitVarInsn(ILOAD, 6);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"size\", \"()I\", false);\n Label l1 = new Label();\n mv.visitJumpInsn(IF_ICMPGE, l1);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitVarInsn(ILOAD, 6);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"get\", \"(I)Ljava/lang/Object;\", false);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitVarInsn(ALOAD, 5);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/widget/TextView\", \"setText\", \"(Ljava/lang/CharSequence;)V\", false);\n mv.visitTypeInsn(NEW, \"java/lang/StringBuilder\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/lang/StringBuilder\", \"<init>\", \"()V\", false);\n mv.visitLdcInsn(\"Sub\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitVarInsn(ALOAD, 5);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"toString\", \"()Ljava/lang/String;\", false);\n mv.visitVarInsn(ASTORE, 5);\n mv.visitIincInsn(6, 1);\n mv.visitJumpInsn(GOTO, l0);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n mv.visitInsn(RETURN);\n mv.visitMaxs(5, 7);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"getItemCount\", \"()I\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(IRETURN);\n mv.visitMaxs(1, 1);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"setLayoutId\", \"(I)V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ILOAD, 1);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 2);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"setItemCount\", \"(I)V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ILOAD, 1);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 2);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PRIVATE, \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", \"(Landroid/view/View;Ljava/util/ArrayList<Landroid/widget/TextView;>;Ljava/util/LinkedList<Landroid/view/View;>;)V\", null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(INSTANCEOF, \"android/widget/TextView\");\n Label l0 = new Label();\n mv.visitJumpInsn(IFEQ, l0);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/widget/TextView\", \"getText\", \"()Ljava/lang/CharSequence;\", false);\n mv.visitMethodInsn(INVOKEINTERFACE, \"java/lang/CharSequence\", \"length\", \"()I\", true);\n Label l1 = new Label();\n mv.visitJumpInsn(IFNE, l1);\n mv.visitVarInsn(ALOAD, 2);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"add\", \"(Ljava/lang/Object;)Z\", false);\n mv.visitInsn(POP);\n mv.visitJumpInsn(GOTO, l1);\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(INSTANCEOF, \"android/view/ViewGroup\");\n mv.visitJumpInsn(IFEQ, l1);\n mv.visitInsn(ICONST_0);\n mv.visitVarInsn(ISTORE, 4);\n Label l2 = new Label();\n mv.visitLabel(l2);\n mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n mv.visitVarInsn(ILOAD, 4);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/view/ViewGroup\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getChildCount\", \"()I\", false);\n mv.visitJumpInsn(IF_ICMPGE, l1);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/view/ViewGroup\");\n mv.visitVarInsn(ILOAD, 4);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getChildAt\", \"(I)Landroid/view/View;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"add\", \"(Ljava/lang/Object;)Z\", false);\n mv.visitInsn(POP);\n mv.visitIincInsn(4, 1);\n mv.visitJumpInsn(GOTO, l2);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"isEmpty\", \"()Z\", false);\n Label l3 = new Label();\n mv.visitJumpInsn(IFNE, l3);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"remove\", \"()Ljava/lang/Object;\", false);\n mv.visitTypeInsn(CHECKCAST, \"android/view/View\");\n mv.visitVarInsn(ALOAD, 2);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter\", \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", false);\n mv.visitLabel(l3);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitInsn(RETURN);\n mv.visitMaxs(4, 5);\n mv.visitEnd();\n }\n cw.visitEnd();\n\n return cw.toByteArray();\n }", "public interface BuiltInsLoader {\n public static final Companion Companion = Companion.$$INSTANCE;\n\n PackageFragmentProvider createPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Iterable<? extends ClassDescriptorFactory> iterable, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z);\n\n /* compiled from: BuiltInsLoader.kt */\n public static final class Companion {\n static final /* synthetic */ Companion $$INSTANCE = new Companion();\n private static final Lazy<BuiltInsLoader> Instance$delegate = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, BuiltInsLoader$Companion$Instance$2.INSTANCE);\n\n private Companion() {\n }\n\n public final BuiltInsLoader getInstance() {\n return Instance$delegate.getValue();\n }\n }\n}", "public interface FragmentComponentBuilder<C extends FragmentComponent, M extends FragmentModule> {\n C build();\n FragmentComponentBuilder<C, M> module(M module);\n}", "java.lang.String getPackageName();", "public String getSuggestPackage() {\n/* 63 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@kotlin.Metadata(mv = {1, 1, 15}, bv = {1, 0, 3}, k = 1, d1 = {\"\\u0000(\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\bg\\u0018\\u00002\\u00020\\u0001J\\b\\u0010\\u0002\\u001a\\u00020\\u0003H&J\\u0010\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\u0006\\u001a\\u00020\\u0007H&J\\u0010\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\b\\u001a\\u00020\\tH&J\\u0010\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\n\\u001a\\u00020\\u000bH&\\u00a8\\u0006\\f\"}, d2 = {\"Lcom/github/midros/istheapp/di/component/AppComponent;\", \"\", \"getInterfaceFirebase\", \"Lcom/github/midros/istheapp/data/rxFirebase/InterfaceFirebase;\", \"inject\", \"\", \"app\", \"Lcom/github/midros/istheapp/app/IsTheApp;\", \"accessibilityDataService\", \"Lcom/github/midros/istheapp/services/accessibilityData/AccessibilityDataService;\", \"notificationService\", \"Lcom/github/midros/istheapp/services/notificationService/NotificationService;\", \"app_debug\"})\[email protected](modules = {com.github.midros.istheapp.di.module.AppModule.class, com.github.midros.istheapp.di.module.FirebaseModule.class})\[email protected]()\npublic abstract interface AppComponent {\n \n public abstract void inject(@org.jetbrains.annotations.NotNull()\n com.github.midros.istheapp.app.IsTheApp app);\n \n public abstract void inject(@org.jetbrains.annotations.NotNull()\n com.github.midros.istheapp.services.accessibilityData.AccessibilityDataService accessibilityDataService);\n \n public abstract void inject(@org.jetbrains.annotations.NotNull()\n com.github.midros.istheapp.services.notificationService.NotificationService notificationService);\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.github.midros.istheapp.data.rxFirebase.InterfaceFirebase getInterfaceFirebase();\n}", "int getSendingMinorFragmentId();", "@Value.Default default TypeInfo basePackageInfo() {\n return TypeInfo.of(packageId(), \"package-info\");\n }", "public interface GraphPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"graph\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"org.openecomp.ncomp.sirius.manager.graph\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"graph\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tGraphPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl <em>Gui Graph</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraph()\n\t * @generated\n\t */\n\tint GUI_GRAPH = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Nodes</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH__NODES = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Edges</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH__EDGES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl <em>Gui Graph Item</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphItem()\n\t * @generated\n\t */\n\tint GUI_GRAPH_ITEM = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Tooltip</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM__TOOLTIP = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Url</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM__URL = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph Item</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph Item</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_ITEM_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl <em>Gui Graph Node</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphNode()\n\t * @generated\n\t */\n\tint GUI_GRAPH_NODE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__NAME = GUI_GRAPH_ITEM__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Tooltip</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP;\n\n\t/**\n\t * The feature id for the '<em><b>Url</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__URL = GUI_GRAPH_ITEM__URL;\n\n\t/**\n\t * The feature id for the '<em><b>X</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Y</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>H</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__H = GUI_GRAPH_ITEM_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>W</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE__W = GUI_GRAPH_ITEM_FEATURE_COUNT + 3;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 4;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph Node</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_NODE_OPERATION_COUNT = GUI_GRAPH_ITEM_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl <em>Gui Graph Edge</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl\n\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphEdge()\n\t * @generated\n\t */\n\tint GUI_GRAPH_EDGE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__NAME = GUI_GRAPH_ITEM__NAME;\n\n\t/**\n\t * The feature id for the '<em><b>Tooltip</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP;\n\n\t/**\n\t * The feature id for the '<em><b>Url</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__URL = GUI_GRAPH_ITEM__URL;\n\n\t/**\n\t * The feature id for the '<em><b>X</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Y</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of structural features of the '<em>Gui Graph Edge</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 2;\n\n\t/**\n\t * The number of operations of the '<em>Gui Graph Edge</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint GUI_GRAPH_EDGE_OPERATION_COUNT = GUI_GRAPH_ITEM_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph <em>Gui Graph</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph\n\t * @generated\n\t */\n\tEClass getGuiGraph();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getNodes <em>Nodes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Nodes</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getNodes()\n\t * @see #getGuiGraph()\n\t * @generated\n\t */\n\tEReference getGuiGraph_Nodes();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getEdges <em>Edges</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Edges</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getEdges()\n\t * @see #getGuiGraph()\n\t * @generated\n\t */\n\tEReference getGuiGraph_Edges();\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem <em>Gui Graph Item</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph Item</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem\n\t * @generated\n\t */\n\tEClass getGuiGraphItem();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName()\n\t * @see #getGuiGraphItem()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphItem_Name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip <em>Tooltip</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Tooltip</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip()\n\t * @see #getGuiGraphItem()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphItem_Tooltip();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl <em>Url</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Url</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl()\n\t * @see #getGuiGraphItem()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphItem_Url();\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode <em>Gui Graph Node</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph Node</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode\n\t * @generated\n\t */\n\tEClass getGuiGraphNode();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX <em>X</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>X</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_X();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY <em>Y</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Y</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_Y();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH <em>H</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>H</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_H();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW <em>W</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>W</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW()\n\t * @see #getGuiGraphNode()\n\t * @generated\n\t */\n\tEAttribute getGuiGraphNode_W();\n\n\t/**\n\t * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge <em>Gui Graph Edge</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Gui Graph Edge</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge\n\t * @generated\n\t */\n\tEClass getGuiGraphEdge();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX <em>X</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>X</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX()\n\t * @see #getGuiGraphEdge()\n\t * @generated\n\t */\n\tEReference getGuiGraphEdge_X();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY <em>Y</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Y</em>'.\n\t * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY()\n\t * @see #getGuiGraphEdge()\n\t * @generated\n\t */\n\tEReference getGuiGraphEdge_Y();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tGraphFactory getGraphFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl <em>Gui Graph</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraph()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH = eINSTANCE.getGuiGraph();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Nodes</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH__NODES = eINSTANCE.getGuiGraph_Nodes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edges</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH__EDGES = eINSTANCE.getGuiGraph_Edges();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl <em>Gui Graph Item</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphItem()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH_ITEM = eINSTANCE.getGuiGraphItem();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_ITEM__NAME = eINSTANCE.getGuiGraphItem_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_ITEM__TOOLTIP = eINSTANCE.getGuiGraphItem_Tooltip();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Url</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_ITEM__URL = eINSTANCE.getGuiGraphItem_Url();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl <em>Gui Graph Node</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphNode()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH_NODE = eINSTANCE.getGuiGraphNode();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>X</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__X = eINSTANCE.getGuiGraphNode_X();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Y</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__Y = eINSTANCE.getGuiGraphNode_Y();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>H</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__H = eINSTANCE.getGuiGraphNode_H();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>W</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute GUI_GRAPH_NODE__W = eINSTANCE.getGuiGraphNode_W();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl <em>Gui Graph Edge</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl\n\t\t * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphEdge()\n\t\t * @generated\n\t\t */\n\t\tEClass GUI_GRAPH_EDGE = eINSTANCE.getGuiGraphEdge();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>X</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH_EDGE__X = eINSTANCE.getGuiGraphEdge_X();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Y</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference GUI_GRAPH_EDGE__Y = eINSTANCE.getGuiGraphEdge_Y();\n\n\t}\n\n}", "public interface UpdataCurrentFragment {\n void update(Bundle bundle);\n}", "public interface DownManageFragmentAble {\n\t\n\tList<GameModel> getGameModels(Context cxt);\n\n\tList<GameModel> getCheckedModels(List<GameModel> items);\n}", "protected abstract Fragment createFragment();", "public interface UrlFragment extends EObject\n{\n}", "public PackageManager2(android.content.Context r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: cm.android.mdm.manager.PackageManager2.<init>(android.content.Context):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.<init>(android.content.Context):void\");\n }", "public abstract String getModuleName( );", "public interface MainF4Presenter {\n void loadItem();\n\n public interface fragment{\n void updateView();\n }\n}", "@PerFragment\n@Subcomponent(modules = MovieListFragmentModule.class)\npublic interface MovieListFragmentSubcomponent {\n\n void inject(MovieListFragment movieListFragment);\n}", "public interface IOrderMagnageActivityView {\n\n /**\n * 初始化商品管理分类\n */\n void initOrderManage(List<Fragment> fragmentList);\n}", "private PackageDeleteObserver2(cm.android.mdm.manager.PackageManager2 r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void\");\n }", "String pkg();" ]
[ "0.65615684", "0.61269087", "0.59309334", "0.58306915", "0.58217955", "0.5793583", "0.57865983", "0.5681312", "0.5677673", "0.5677647", "0.56025827", "0.5601723", "0.56006914", "0.55926394", "0.5584566", "0.55463386", "0.55433303", "0.55411637", "0.5518877", "0.5502538", "0.5487524", "0.54835254", "0.5481474", "0.5476485", "0.54681486", "0.5456551", "0.5453723", "0.54211587", "0.54146206", "0.54040027", "0.5385714", "0.53673995", "0.5363314", "0.53589195", "0.53536266", "0.5349091", "0.5332618", "0.5325532", "0.53147876", "0.53132474", "0.5312174", "0.52990055", "0.52843297", "0.52843297", "0.52843297", "0.5281369", "0.5278839", "0.5278536", "0.5269538", "0.5269538", "0.526448", "0.5254811", "0.52515954", "0.52404547", "0.5239921", "0.5239051", "0.5232797", "0.5224991", "0.5203957", "0.51973224", "0.5190079", "0.5169261", "0.51664597", "0.51632035", "0.51580954", "0.51574266", "0.5156067", "0.51457256", "0.51396006", "0.51371235", "0.5136548", "0.5131637", "0.51315105", "0.512382", "0.51188654", "0.51168615", "0.51084423", "0.51021373", "0.5099436", "0.5096602", "0.50890076", "0.5083701", "0.507751", "0.5068628", "0.50682056", "0.5067371", "0.5061155", "0.50588423", "0.50562525", "0.5056201", "0.50545526", "0.505018", "0.504837", "0.50441307", "0.5042242", "0.5040855", "0.5037833", "0.50320774", "0.50314593", "0.50273806" ]
0.7519572
0
Creates a new instance of SlanjePoruke
public SlanjePoruke() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Klassenstufe createKlassenstufe();", "Schueler createSchueler();", "public NhanVien()\n {\n }", "public Pasien() {\r\n }", "public TebakNusantara()\n {\n }", "public OVChipkaart() {\n\n }", "Reproducible newInstance();", "public Postoj() {}", "public Manusia() {}", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "public AntrianPasien() {\r\n\r\n }", "public Kullanici() {}", "public LarvaSkeleton() {\n\n }", "public YonetimliNesne() {\n }", "public Prova() {}", "Petunia() {\r\n\t\t}", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "Instance createInstance();", "public AfiliadoVista() {\r\n }", "public Produto() {}", "Schulleiter createSchulleiter();", "public Musik(){}", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "Vaisseau createVaisseau();", "public Livro() {\n\n\t}", "public Gasto() {\r\n\t}", "public QLNhanVien(){\n \n }", "public Visita() {\n initialize();\n }", "public JSFOla() {\n }", "private UsineJoueur() {}", "public Pitonyak_09_02() {\r\n }", "public Kendaraan() {\n }", "public Veiculo() {\r\n\r\n }", "public CrearQuedadaVista() {\n }", "public CyanSus() {\n\n }", "public Tarifa() {\n ;\n }", "public PerezosoTest()\n {\n }", "Secuencia createSecuencia();", "public Sku() {\n\t}", "public PessoaTest() {\n pessoa.setNome(\"Thiago\");\n pessoa.setSobrenome(\"Cury\"); \n pessoa.setIdade(36); \n }", "public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }", "public Aktie() {\n }", "public MorteSubita() {\n }", "Persoana createPersoana(String nume, int varsta) {\n return new Persoana(nume, varsta);\n }", "public Vehiculo() {\r\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public ProjektTest()\n {\n }", "public Alojamiento() {\r\n\t}", "private VegetableFactory() {\n }", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public Venda() {\n }", "Simple createSimple();", "public PlantillaController() {\n }", "public RptPotonganGaji() {\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public Corso() {\n\n }", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public Aritmetica(){ }", "public ControllerProtagonista() {\n\t}", "private Panino(String name) {\n this.name = name;\n }", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "Vaisseau_longueur createVaisseau_longueur();", "public Caso_de_uso () {\n }", "public Odontologo() {\n }", "public Plato(){\n\t\t\n\t}", "private PerksFactory() {\n\n\t}", "AliciaLab createAliciaLab();", "public Surgeon() {\n }", "public prueba()\r\n {\r\n }", "public Curso() {\r\n }", "public Transportista() {\n }", "public Simulador(){\n }", "public Rol() {}", "public static crearNuevaSalida getInstance() {\n if (myInstance == null) {\n myInstance = new crearNuevaSalida();\n }\n return myInstance;\n }", "SpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite();", "public Spiel(TerraSnowSpleef plugin) {\r\n this.plugin = plugin;\r\n joinCountdown = false;\r\n startCountdown = false;\r\n spiel = false;\r\n sf = new Spielfeld(plugin);\r\n spielerSet = new HashSet<>();\r\n }", "private Instantiation(){}", "public Factory() {\n\t\tsuper();\n\t}", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public static Scrivania create(\n\t\tautorizzazione.dir.mef.service.persistence.ScrivaniaPK scrivaniaPK) {\n\t\treturn getPersistence().create(scrivaniaPK);\n\t}", "public CreateKonceptWorker() {\n\t\tsuper();\n\t\tthis.koncept = new KoncepteParaula();\n\t}", "public TTau() {}", "public PersonaFisica() {}", "public VOCSesame () {\n }", "public Vampire() {\n super();\n this.name = \"Vampire\";\n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public ServicioUjaPack() {\n }", "public Poem(){}", "Oracion createOracion();", "SpaceInvaderTest_VaisseauAvance_DeplacerVaisseauVersLaGauche createSpaceInvaderTest_VaisseauAvance_DeplacerVaisseauVersLaGauche();", "public SgaexpedbultoImpl()\n {\n }", "public Respuesta() {\n }", "public Espai(){}", "private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}", "private HierarchyFactory ()\n {\n }", "public Achterbahn() {\n }", "public AllLaboTest() {\n }" ]
[ "0.6374723", "0.63519883", "0.6315911", "0.62927693", "0.6259766", "0.624104", "0.62103045", "0.6142554", "0.6130003", "0.6120141", "0.6120141", "0.6120141", "0.6120141", "0.61150706", "0.609925", "0.6086423", "0.6059511", "0.6043372", "0.59870344", "0.5984103", "0.59569633", "0.5949755", "0.59493554", "0.5940345", "0.59312916", "0.593081", "0.5925789", "0.5909919", "0.59087855", "0.5905638", "0.5889037", "0.58887976", "0.58794063", "0.58720344", "0.5867859", "0.5865193", "0.58620125", "0.5855704", "0.58527255", "0.584709", "0.5829073", "0.5796788", "0.5796647", "0.57962686", "0.5788871", "0.5783668", "0.5780409", "0.57727927", "0.5763291", "0.57624966", "0.5735521", "0.57322794", "0.5731435", "0.571374", "0.57040954", "0.57003474", "0.5694237", "0.5682797", "0.567703", "0.56676805", "0.56626344", "0.565963", "0.5656188", "0.5654759", "0.5637373", "0.56295365", "0.5619554", "0.56185657", "0.56130886", "0.5612095", "0.5607199", "0.5604525", "0.5595647", "0.55945224", "0.5594248", "0.55907685", "0.5587846", "0.5587647", "0.5587558", "0.55761606", "0.5565877", "0.5565294", "0.5563091", "0.55581546", "0.55526775", "0.55510193", "0.555006", "0.5549716", "0.55402267", "0.5540035", "0.55323225", "0.5524709", "0.5522463", "0.5520751", "0.5519691", "0.55073506", "0.55051494", "0.5502454", "0.54931116", "0.5488165" ]
0.7959921
0
update return if there is no primary key value
public void update(T instance) throws Exception { String primaryKeyValue=ReflectionUtils.getFieldValue(instance,instance.getPrimaryKeyName()); if(null==primaryKeyValue){ throw new Exception("This is no primary key value"); } initDBTableMeta(instance); String setClause=buildSQLKeyValueMap(instance,","); String whereClause =instance.getPrimaryKeyName()+"="+primaryKeyValue; String sql = UPDATE+tableName+SET+setClause+WHERE+whereClause; logger.info("usedSql={}", sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateByPrimaryKeySelective(Prueba record);", "int updateByPrimaryKey(PrhFree record);", "int updateByPrimaryKeySelective(PrhFree record);", "int updateByPrimaryKeySelective(Assist_table record);", "int updateByPrimaryKey(Trueorfalse record);", "@Override\n\tpublic int updateByPrimaryKey(Checkingin record) {\n\t\treturn 0;\n\t}", "int updateByPrimaryKeySelective(Commet record);", "int updateByPrimaryKey(Prueba record);", "int updateByPrimaryKeySelective(Engine record);", "int updateByPrimaryKey(Assist_table record);", "int updateByPrimaryKeySelective(Trueorfalse record);", "int updateByPrimaryKeySelective(Forumpost record);", "@Override\r\n\tpublic int updateByPrimaryKey(PayRecord record) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int updateByPrimaryKeySelective(PayRecord record) {\n\t\treturn 0;\r\n\t}", "int updateByPrimaryKeySelective(ProEmployee record);", "@Override\n\tpublic int updateByPrimaryKeySelective(Permis record) {\n\t\treturn 0;\n\t}", "int updateByPrimaryKeySelective(Abum record);", "@Override\r\n\tpublic Integer updateByPrimaryKey(Wt_collection record) {\n\t\treturn 0;\r\n\t}", "int updateByPrimaryKeySelective(Access record);", "int updateByPrimaryKeySelective(PmKeyDbObj record);", "int updateByPrimaryKeySelective(Thing record);", "int updateByPrimaryKeySelective(QuestionOne record);", "int updateByPrimaryKeySelective(BaseReturn record);", "int updateByPrimaryKeySelective(SupplyNeed record);", "@Override\r\n\tpublic Integer updateByPrimaryKeySelective(Wt_collection record) {\n\t\treturn 0;\r\n\t}", "int updateByPrimaryKey(Engine record);", "int updateByPrimaryKeySelective(Body record);", "int updateByPrimaryKeySelective(TCar record);", "int updateByPrimaryKeySelective(Employee record);", "int updateByPrimaryKeySelective(SysCode record);", "int updateByPrimaryKeySelective(TbComEqpModel record);", "int updateByPrimaryKeySelective(Basicinfo record);", "int updateByPrimaryKeySelective(SysId record);", "@Override\n\tpublic boolean update(String sql) {\n\t\treturn false;\n\t}", "int updateByPrimaryKey(SupplyNeed record);", "int updateByPrimaryKeySelective(Transaction record);", "int updateByPrimaryKeySelective(GoodsPo record);", "int updateByPrimaryKey(Commet record);", "int updateByPrimaryKeySelective(Yqbd record);", "int updateByPrimaryKeySelective(TABLE41 record);", "public int updateByPK(Resourcesvalue record){\n \tif(record==null||record.getRescvalueid()==null)\n \t\treturn 0;\n\t\tint rows = super.update(\"Resourcesvalue.updateByPK\", record);\n\t\treturn rows;\n }", "int updateByPrimaryKeySelective(Question record);", "int updateByPrimaryKeySelective(Question record);", "int updateByPrimaryKeySelective(Question record);", "int updateByPrimaryKeySelective(Question record);", "int updateByPrimaryKeySelective(AccessModelEntity record);", "int updateByPrimaryKey(BaseReturn record);", "int updateByPrimaryKeySelective(Kaiwa record);", "int updateByPrimaryKeySelective(Tourst record);", "@Override\n\tpublic int updateByPrimaryKey(Cell record) {\n\t\treturn 0;\n\t}", "int updateByPrimaryKey(Forumpost record);", "int updateByPrimaryKeySelective(Massage record);", "int updateByPrimaryKeySelective(Goods record);", "int updateByPrimaryKeySelective(Goods record);", "int updateByPrimaryKey(Basicinfo record);", "int updateByPrimaryKey(Access record);", "int updateByPrimaryKeySelective(Admin record);", "int updateByPrimaryKey(ProEmployee record);", "@Override\r\n\tpublic int updateByPrimaryKeySelective(Byip record) {\n\t\treturn 0;\r\n\t}", "int updateByPrimaryKeySelective(Shareholder record);", "int updateByPrimaryKey(Yqbd record);", "int updateByPrimaryKeySelective(AccuseInfo record);", "int updateByPrimaryKey(Body record);", "int updateByPrimaryKeySelective(DataSync record);", "int updateByPrimaryKeySelective(Table2 record);", "int updateByPrimaryKeySelective(Caiwu record);", "int updateByPrimaryKeySelective(Course record);", "int updateByPrimaryKeySelective(RecordLike record);", "int updateByPrimaryKey(Kaiwa record);", "int updateByPrimaryKeySelective(GirlInfo record);", "int updateByPrimaryKeySelective(Procdef record);", "int updateByPrimaryKeySelective(Appraise record);", "int updateByPrimaryKeySelective(StudentInfo record);", "int updateByPrimaryKeySelective(SysNotice record);", "int updateByPrimaryKeySelective(TerminalInfo record);", "int updateByPrimaryKeySelective(TempletLink record);", "int updateByPrimaryKeySelective(BaseCountract record);", "int updateByPrimaryKey(TCar record);", "int updateByPrimaryKey(Dormitory record);", "int updateByPrimaryKeySelective(Product record);", "int updateByPrimaryKeySelective(Enfermedad record);", "int updateByPrimaryKeySelective(Notice record);", "int updateByPrimaryKeySelective(Online record);", "int updateByPrimaryKey(PmKeyDbObj record);", "int updateByPrimaryKeySelective(JzAct record);", "int updateByPrimaryKeySelective(Student record);", "int updateByPrimaryKeySelective(Student record);", "int updateByPrimaryKeySelective(Student record);", "int updateByPrimaryKeySelective(UserPonumberGoods record);", "int updateByPrimaryKey(Disease record);", "int updateByPrimaryKey(AccessModelEntity record);", "int updateByPrimaryKeySelective(CptDataStore record);", "int updateByPrimaryKey(SysId record);", "int updateByPrimaryKeySelective(Clazz record);", "int updateByPrimaryKey(TbComEqpModel record);", "int updateByPrimaryKeySelective(Movimiento record);", "int updateByPrimaryKeySelective(Cargo record);", "int updateByPrimaryKeySelective(Storage record);", "int updateByPrimaryKeySelective(Storage record);", "int updateByPrimaryKeySelective(ConfigData record);", "int updateByPrimaryKeySelective(Owner record);" ]
[ "0.7096611", "0.69920826", "0.69857854", "0.696966", "0.6948869", "0.69353324", "0.6908561", "0.68726605", "0.68669134", "0.68442255", "0.68355405", "0.6835449", "0.682873", "0.6820396", "0.6793507", "0.67920583", "0.6785696", "0.6781301", "0.6774741", "0.6762354", "0.6761867", "0.67494947", "0.6749339", "0.6748209", "0.6747848", "0.67457306", "0.6745365", "0.6743979", "0.6739676", "0.67391866", "0.6736276", "0.6731815", "0.6731071", "0.6726375", "0.67212", "0.6713369", "0.67084634", "0.6703479", "0.66980815", "0.66952544", "0.66944236", "0.6693762", "0.6693762", "0.6693762", "0.6693762", "0.6693629", "0.6690284", "0.6681636", "0.66806513", "0.6680538", "0.6677193", "0.6676298", "0.66757625", "0.66757625", "0.6667897", "0.6660814", "0.666029", "0.6659126", "0.66555065", "0.66552293", "0.6653548", "0.6650645", "0.66476345", "0.6646319", "0.6645392", "0.6641849", "0.66412127", "0.663793", "0.66377205", "0.66362965", "0.66318905", "0.6627707", "0.6626824", "0.6624943", "0.6624384", "0.6618315", "0.6616365", "0.66162026", "0.6612544", "0.661244", "0.66054076", "0.66052794", "0.66047686", "0.66013634", "0.6601218", "0.6600805", "0.6600805", "0.6600805", "0.660037", "0.6599761", "0.6599188", "0.6595514", "0.65940964", "0.6590669", "0.6588447", "0.6586106", "0.65830654", "0.6580973", "0.6580973", "0.6577481", "0.65770227" ]
0.0
-1
Indicate the listener can be notified or not. If you sometimes do not want to get notification from the drag runtime, you can return false to reject the notification.
@Deprecated @Override public boolean disableNotify(IDragSource source, IDropTarget target, IDataObject data) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canStartDrag()\n\t{\n\t\treturn !isDragging();\n\t}", "boolean hasChangeEvent();", "public abstract boolean canHandle(Object event);", "private\n boolean\n allowEvents()\n {\n return itsAllowEvents;\n }", "@SuppressWarnings(\"unused\")\n public void setNotifyWhileDragging(boolean flag) {\n this.notifyWhileDragging = flag;\n }", "abstract boolean getIsDragging();", "@Override\n\tpublic boolean touchDragged(int arg0, int arg1, int arg2) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean touchDragged(int arg0, int arg1, int arg2) {\n\t\treturn false;\n\t}", "public boolean onDragStarted();", "protected abstract boolean dragged();", "public synchronized boolean isEnabled() {\n \t\t\treturn listenerEnabled;\n \t\t}", "boolean hasEvent();", "@Override\n public boolean dispatchTouchEvent(MotionEvent ev) {\n return DefaultApplication.isWaiting() ? false : super.dispatchTouchEvent(ev);\n }", "@Override\n\t\t\t\t\t\tpublic boolean isEnabled()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(requiresListeners\n\t\t\t\t\t\t\t\t&& !prisms.util.PrismsUtils.hasEventListeners(theSession,\n\t\t\t\t\t\t\t\t\ttoFire.name))\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}", "boolean isRegistrateChangeListener();", "public boolean notify(EventObject aEvent)\r\n\t\t{\r\n\t\t\tfinal Object lSubscriber = this.subscriberRef.get();\r\n\t\t\tif (lSubscriber != null)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tif (this.parameterType.isAssignableFrom(aEvent.getClass()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tObject lSource = aEvent.getSource();\r\n\t\t\t\t\t\tif (((lSource == null) && this.allowNullSource) || \r\n\t\t\t\t\t\t\t((lSource != null) && this.sourceType.isAssignableFrom(lSource.getClass())))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Invoke the notification method and remember the result.\r\n\t\t\t\t\t\t\tfinal Object lResult = this.method.invoke(lSubscriber, aEvent);\r\n\t\t\t\t\t\t\t// If the notification method gave us a boolean, we will interpret this value,\r\n\t\t\t\t\t\t\t// if we got 'true' this means that the event was handled completely, no other handlers will be invoked.\r\n\t\t\t\t\t\t\t// If we got a 'false' this means that we have to continue invoking the other handlers.\r\n\t\t\t\t\t\t\treturn (lResult instanceof Boolean) && (Boolean)lResult;\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\tcatch (InvocationTargetException e)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (e.getTargetException() instanceof PropertyVetoException)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthrow (PropertyVetoException)e.getTargetException();\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\tfinal String lMsg = \"Error while invoking notification method '%s' on an instance of class '%s'.\";\r\n\t\t\t\t\t\tthrow new RuntimeException(String.format(lMsg, this.method.getName(), lSubscriber.getClass().getSimpleName()), e);\r\n\t\t\t\t\t}\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\tfinal String lMsg = \"Error while invoking notification method '%s' on an instance of class '%s'.\";\r\n\t\t\t\t\tthrow new RuntimeException(String.format(lMsg, this.method.getName(), lSubscriber.getClass().getSimpleName()), e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "@Override\n public boolean notificationPermissionEnabled() throws android.os.RemoteException {\n return false;\n }", "@Override\n\tpublic boolean canReceive() {\n\t\treturn false;\n\t}", "boolean eventEnabled(AWTEvent e) {\n if (e.id == ActionEvent.ACTION_PERFORMED) {\n if ((eventMask & AWTEvent.ACTION_EVENT_MASK) != 0 ||\n actionListener != null) {\n return true;\n }\n return false;\n }\n return super.eventEnabled(e);\n }", "protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}", "protected boolean isBound(){\n\t\treturn !listeners.isEmpty();\n\t}", "public boolean notificationPermissionEnabled() throws android.os.RemoteException;", "public boolean isDropped();", "@SuppressWarnings(\"deprecation\")\n protected boolean isDragPossible(MouseEvent e) {\n JTextComponent c = (JTextComponent)e.getSource();\n if (c.isEnabled()) {\n Caret caret = c.getCaret();\n int dot = caret.getDot();\n int mark = caret.getMark();\n if (dot != mark) {\n Point p = new Point(e.getX(), e.getY());\n int pos = c.viewToModel(p);\n\n int p0 = Math.min(dot, mark);\n int p1 = Math.max(dot, mark);\n if ((pos >= p0) && (pos < p1)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isSelfMessageProcessingEvent();", "public boolean isSuppressed();", "@Override\r\n\tpublic boolean handleEvent(IEvent event) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean listen(DrumPoint drum, int begin, int end) {\n\t\treturn false;\n\t}", "@Override\n public boolean notificationPermissionEnabled() throws android.os.RemoteException {\n android.os.Parcel _data = android.os.Parcel.obtain();\n android.os.Parcel _reply = android.os.Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n boolean _status = mRemote.transact(\n Stub.TRANSACTION_notificationPermissionEnabled, _data, _reply, 0);\n _reply.readException();\n _result = (0 != _reply.readInt());\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }", "static void setNotDraging(){isDraging=false;}", "public abstract boolean isTrigger();", "protected boolean shouldAddControlListener() {\n return true;\n }", "@Override\n public boolean usesEvents()\n {\n return false;\n }", "public abstract boolean isSubscribesEnabled();", "@objid (\"0480e45a-6886-42c0-b13c-78b8ab8f713d\")\n boolean isIsEvent();", "private boolean isDragOk(DropTargetDragEvent e) {\n\t\tif (!isDragFlavorSupported(e)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tint da = e.getDropAction();\n\t\t// we're saying that these actions are necessary\n\t\tif ((da & acceptableActions) == 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tFIBDraggable element = (FIBDraggable) e.getTransferable().getTransferData(ElementDrag.DEFAULT_FLAVOR);\n\t\t\tif (element == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tObject source = e.getSource();\n\t\t\tif (source instanceof FIBDropTarget) {\n\t\t\t\treturn element.acceptDragging((FIBDropTarget) source);\n\t\t\t}\n\t\t\treturn false;\n\n\t\t} catch (UnsupportedFlavorException e1) {\n\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\te1.printStackTrace();\n\t\t\treturn false;\n\t\t} catch (IOException e1) {\n\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\te1.printStackTrace();\n\t\t\treturn false;\n\t\t} catch (Exception e1) {\n\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\te1.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isDragging()\n\t{\n\t\treturn dragged != null;\n\t}", "public boolean interpretLongPressEvents() {\n return false;\n }", "boolean shouldAutoSubscribe();", "public boolean hasPushEvent();", "protected boolean hasListeners()\n {\n // m_listenerSupport defaults to null, and it is reset to null when\n // the last listener unregisters\n return m_listenerSupport != null;\n }", "protected boolean hasListeners()\n {\n // m_listenerSupport defaults to null, and it is reset to null when\n // the last listener unregisters\n return m_listenerSupport != null;\n }", "@Override\n\tprotected boolean checkOverride(IEventInstance eventInstance, Operand operand) {\n\t\treturn false;\n\t}", "public boolean isLingering();", "void dragDetected(DragDetectEvent e);", "boolean isSetEvent();", "protected boolean shouldAddDisplayListener() {\n return true;\n }", "public boolean updateSystemGestureExclusion() {\n if (this.mSystemGestureExclusionListeners.getRegisteredCallbackCount() == 0) {\n return false;\n }\n Region systemGestureExclusion = calculateSystemGestureExclusion();\n try {\n if (this.mSystemGestureExclusion.equals(systemGestureExclusion)) {\n return false;\n }\n this.mSystemGestureExclusion.set(systemGestureExclusion);\n for (int i = this.mSystemGestureExclusionListeners.beginBroadcast() - 1; i >= 0; i--) {\n try {\n this.mSystemGestureExclusionListeners.getBroadcastItem(i).onSystemGestureExclusionChanged(this.mDisplayId, systemGestureExclusion);\n } catch (RemoteException e) {\n Slog.e(TAG, \"Failed to notify SystemGestureExclusionListener\", e);\n }\n }\n this.mSystemGestureExclusionListeners.finishBroadcast();\n systemGestureExclusion.recycle();\n return true;\n } finally {\n systemGestureExclusion.recycle();\n }\n }", "public abstract boolean cancelable();", "boolean isNotificationsEnabled();", "public abstract boolean hasBeenPickedUp();", "public abstract boolean listenerUserInput();", "public boolean canBeLeft();", "public boolean isDragging( ) {\n\t\tif ( draggable ) {\n\t\t\tif ( dragging ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasListeners() {\n return !listeners.isEmpty();\n }", "public boolean hasListeners() {\n return !listeners.isEmpty();\n }", "public boolean forceEvents() {\n if (!isStarted()) {\n return false;\n }\n\n if (listeners.isEmpty()) {\n return false;\n }\n\n LOG.debug(\"Force events for all currently connected devices\");\n\n deviceDetector.resetRoots();\n\n return true;\n }", "public boolean isHandled() \n { return (eventAction != null) ? eventAction.isHandled() : false; }", "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "public abstract boolean didObserveNewBehavior(IBehavior behaviorListener);", "protected boolean isDragAcceptable(DropTargetDragEvent evt) {\n\t\t\treturn (\n\t\t\t\tsuper.isDragAcceptable(evt)\n\t\t\t\t\t&& evt.isDataFlavorSupported(QuestionTranferable.QUESTION_FLAVOR));\n\t\t}", "public void ifNotificationOnChecked() {\n\t\tif (notificationOnChecked && bNotification) {\n\t\t\tnotifyMain(\"Autostop:\\n\" + upTime + \" s\", \"Recording...\");\n\t\t} else {\n\t\t\tif (notificationManager != null) {\n\t\t\t\tnotificationManager.cancelAll();\n\t\t\t}\n\t\t}\n\t}", "public boolean tryEditingScheduledEvent();", "public boolean getIsDraggingPuck() {\n return draggingPuck;\n }", "public synchronized boolean hasSubscribers ()\n {\n return !this.listeners.isEmpty ();\n }", "public boolean isNeedsAlert() {\n return current.needsAlert();\n }", "private static native boolean previewEventImpl() /*-{\n var isCancelled = false; \n for (var i = 0; i < $wnd.__gwt_globalEventArray.length; i++) {\n if (!$wnd.__gwt_globalEventArray[i]()) {\n isCancelled = true;\n }\n }\n return !isCancelled;\n }-*/;", "protected boolean acceptOrRejectDrag(DropTargetDragEvent dtde) {\n int dropAction = dtde.getDropAction();\n int sourceActions = dtde.getSourceActions();\n boolean acceptedDrag = false;\n\n DnDUtils.debugPrintln(\"\\tSource actions are \"\n + DnDUtils.showActions(sourceActions) + \", drop action is \"\n + DnDUtils.showActions(dropAction));\n\n boolean acceptableDropLocation = isAcceptableDropLocation(dtde);\n\n // Reject if the object being transferred or the operations available\n // are not acceptable.\n if (!acceptableType\n || (sourceActions & DnDConstants.ACTION_COPY_OR_MOVE) == 0) {\n DnDUtils.debugPrintln(\n \"Drop target rejecting drag: acceptableType = \"\n + acceptableType);\n dtde.rejectDrag();\n\n } else if (!acceptableDropLocation) {\n // Can only drag to writable directory\n DnDUtils.debugPrintln(\n \"Drop target rejecting drag: no acceptable drop lLocation\");\n dtde.rejectDrag();\n\n } else {\n // Offering an acceptable operation: accept\n DnDUtils.debugPrintln(\"Drop target accepting drag\");\n dtde.acceptDrag(dropAction);\n acceptedDrag = true;\n }\n\n return acceptedDrag;\n }", "public boolean isEventsSuppressed() {\r\n\t\treturn eventsSuppressed;\r\n\t}", "public interface IEventListener {\n\n /**\n * Handles an event\n * @param e event\n * @return true if the event should be consumed and not propagated, otherwise false\n */\n boolean onEvent(Event e);\n}", "public boolean canHandle(Object selection);", "public boolean isListenerAvailable() {\n return mListener != null;\n }", "public boolean isListenerAvailable() {\n return mListener != null;\n }", "public boolean canReceiveMessages()\n {\n return true;\n }", "boolean eventEnabled(AWTEvent e) {\n return false;\n }", "protected boolean isDragAcceptable(DropTargetDropEvent evt) {\n\t\t\treturn (\n\t\t\t\tsuper.isDragAcceptable(evt)\n\t\t\t\t\t&& evt.getTransferable().isDataFlavorSupported(\n\t\t\t\t\t\tQuestionTranferable.QUESTION_FLAVOR));\n\t\t}", "public abstract boolean isEnabled();", "public abstract boolean isEnabled();", "@Override\n\tpublic boolean IsListening() {\n\t\treturn listening;\n\t}", "private boolean processXdndDrop(XClientMessageEvent xclient) {\n if (sourceWindow != xclient.get_data(0)) {\n return false;\n }\n\n if (targetXWindow != null) {\n notifyProtocolListener(targetXWindow, sourceX, sourceY, userAction,\n xclient, MouseEvent.MOUSE_RELEASED);\n }\n\n return true;\n }", "public boolean canBeSwappedOut();", "Boolean getIsChanged();", "public void checkRelease(){\n\n\t\t//Clear boolean to indicate that the GUIItem is no longer touched\n\t\twhileTouched = false;\n\t\tif (touchObject != null)\n\t\t\tonRelease = true;\n\t}", "@Override\n\tpublic boolean isPending();", "public boolean isDragEnabled() {\n return mDragEnabled;\n }", "public boolean setEventsEnabled(boolean enabled);", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "public boolean isEnabled();", "boolean hasSubscribe();", "boolean isAchievable();", "public boolean isDismissable() {\n/* 1278 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean isAccepting();", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\tdgView.requestDisallowInterceptTouchEvent(true);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\tpublic boolean listen(ArrayList<Track> tracks, DrumPoint drum, int begin, int end) {\n\t\treturn false;\n\t}", "public boolean isEnableGestureRecognization() {\n return false;\n }", "boolean hasFeedback();", "Boolean isTouchable();" ]
[ "0.63021713", "0.62334484", "0.6221335", "0.6192852", "0.6166463", "0.6092532", "0.60476846", "0.60476846", "0.60180175", "0.59964097", "0.5984197", "0.5983972", "0.5965975", "0.5964128", "0.58866036", "0.5876898", "0.5874481", "0.5856681", "0.57802284", "0.57260954", "0.57260954", "0.5688583", "0.56872904", "0.56727016", "0.56312007", "0.56093436", "0.5600358", "0.5598738", "0.5588573", "0.55821323", "0.5574581", "0.55653405", "0.5550935", "0.55485433", "0.554168", "0.55372685", "0.55301595", "0.55194604", "0.5515526", "0.55133927", "0.5510604", "0.5510604", "0.5502173", "0.55016387", "0.5500117", "0.5499631", "0.5493182", "0.5487427", "0.5473904", "0.54434645", "0.54224247", "0.5404933", "0.5398735", "0.5392944", "0.53915143", "0.53915143", "0.5389609", "0.53882855", "0.53613406", "0.5353879", "0.535336", "0.5349264", "0.5339535", "0.531988", "0.5311755", "0.5310925", "0.5310482", "0.5304034", "0.5302422", "0.5291722", "0.52884865", "0.52876157", "0.52876157", "0.5280214", "0.5277137", "0.5261624", "0.5251416", "0.5251416", "0.5248984", "0.5247902", "0.52424383", "0.52416676", "0.5240711", "0.52405894", "0.5238378", "0.52383274", "0.5232426", "0.5232426", "0.5232426", "0.5232426", "0.5232426", "0.5231774", "0.5222563", "0.5217044", "0.5206622", "0.52041453", "0.52034336", "0.52023906", "0.52004504", "0.5197902" ]
0.5754494
19
Called when being dragging.
@Override public void onDragging(DragParams params) { // Do nothing. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDragStarted(int position) {\n }", "void onDragged();", "protected abstract boolean dragged();", "public boolean onDragStarted();", "@Override\n public void drag(int x, int y)\n {\n }", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "public void onDragEnded();", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent me) {\r\n\t\tdrag(me.getX(), me.getY());\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "@Override\n public void mouseDragged(java.awt.event.MouseEvent e) {\n }", "@Override\n\tpublic void dragDropped() {\n\n\t}", "@Override\n public void onDragEnd() {\n // Do nothing.\n }", "void onDragStart(View view);", "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged(MouseEvent e){}", "public void mouseDragged(MouseEvent e) {}", "private void startDragging() {\n Point mousePosition = calculateMouseLocation();\n mouseX = mousePosition.getX();\n mouseY = mousePosition.getY();\n prevX = getArea().getX();\n prevY = getArea().getY();\n setDragging(true);\n }", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tco.mouseDragged(e);\n\t}", "private void drag() {\n Point mousePosition = calculateMouseLocation();\n getArea().x = mousePosition.getX() - (mouseX - prevX);\n getArea().y = mousePosition.getY() - (mouseY - prevY);\n // Ensure that weird resizing stuff doesn't happen while moving the\n // window. Idfk why this works, but it does.\n resize();\n getLayout().resize(this, getChildren());\n getLayout().layout(this, getChildren());\n }", "public void mouseDragged(MouseEvent e) {\n\n }", "static void setNotDraging(){isDraging=false;}", "@Override\n public void onItemDragStarted(int position) {\n }", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseDragged(MouseEvent e) {\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\tif(state.getStatus()==Status.SELECTING_RECT){\n\t\t\t\tif(startDragginPoint == null)\n\t\t\t\t\tdraggingFrom(arg0.getPoint());\n\t\t\t\tcurrentDragPoint = arg0.getPoint();\t\n\t\t\t\trepaint();\n\t\t\t}\n\t\t\tif(state.getStatus()==Status.SELECTING_RECT_LS){\n\t\t\t\tif(startDragginPoint == null)\n\t\t\t\t\tdraggingFrom(arg0.getPoint());\n\t\t\t\tcurrentDragPoint = arg0.getPoint();\t\n\t\t\t\trepaint();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }", "public void mouseDragged(MouseEvent e) {\n\t \t\t\n\t \t}", "public void mouseDragged(MouseEvent me) {\n\n\t\t\t}", "@Override\n public void onDragPositionsChanged(int oldPosition, int newPosition) {\n }", "@DISPID(-2147412077)\n @PropGet\n java.lang.Object ondragstart();", "public void mouseDragged(MouseEvent mEvent) \n {\n /* don't do anything while game is running */\n if(GAME_RUNNING)\n return;\n\n /* TODO: remove debug msg */\n statusMsg = new String(\"mouseDragged @ \" + mEvent.getX() + \", \" + mEvent.getY() + \" on \" + mEvent.getComponent().getClass().getName());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouse dragging on gamecanvas while game is not running */\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n case SELECTED:\n /* mouse is being dragged but we aren't in drag mode, did this drag start on an unlocked widget? */\n Widget startWidget = timWorld.grabWidget(pressX,pressY); //TODO: add a flag/check so we don't have to continually try to grab in case of failure\n if(startWidget != null && startWidget.isLocked() == false)\n {\n /* mouse dragging started over an unlocked widget, pick it up and begin dragging */\n selectedWidget = startWidget;\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.PRESS;\n \n clickOffsetX = selectedWidget.getPosition().getX() - pressX;\n clickOffsetY = selectedWidget.getPosition().getY() - pressY;\n \n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n case ADDING:\n /* update mouseX and mouseY for bounding box drawing of the widget being dragged or added */\n mouseX = mEvent.getX();\n mouseY = mEvent.getY();\n canvas.repaint();\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* dragging on widget scroller */\n\n /* make sure we aren't already in adding or dragging mode */\n if(SELECT_MODE != SelectMode.ADDING)\n {\n String pressedWidget = ws.getWidgetAt(pressX, pressY);\n if(pressedWidget != null)\n {\n /* pressed on an actual widget, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = pressedWidget;\n selectedWidget = WidgetFactory.createWidget(pressedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.PRESS;\n\n /* set widget to 0,0 so its boundary will be drawn properly while dragging */\n selectedWidget.setPositionX(0.0f);\n selectedWidget.setPositionY(0.0f);\n\n clickOffsetX = 0;\n clickOffsetY = 0;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n\n /* TODO: remove debug msg */\n //System.out.println(\"Picked up \" + pressedWidget + \" from widgetscroller\");\n }\n }\n else\n {\n mouseX = mEvent.getX();\n mouseY = mEvent.getY() + 465;\n canvas.repaint();\n }\n }\n\t}", "@Override\r\n public void mousePressed(MouseEvent e) {\n startDrag = new Point(e.getX(), e.getY());\r\n endDrag = startDrag;\r\n repaint();\r\n\r\n }", "public void mouseDragged( MouseEvent event ){}", "public void mouseDragged(MouseEvent event) { }", "public void mouseDragged( MouseEvent e ) {\n }", "@Override\n\tpublic void onDragEnd(boolean success) {\n\t\t\n\t}", "public void mouseDragged(MouseEvent e)\n {}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tLOG.fine(\"Dragged [\" + e.getX() + \", \" + e.getY() + \"]...\");\r\n\t\t\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseDragged(e);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void touchDragged(int screenX, int screenY, int pointer) {\n\t\t\n\t}", "void onStartDrag(RecyclerView.ViewHolder viewHolder);", "void onStartDrag(RecyclerView.ViewHolder viewHolder);", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "public void mouseDragged(MouseEvent me) {\n updateDrag(me.getPoint());\n }", "@Override\n \tpublic void roiDragged(ROIEvent evt) {\n \t\t\n \t}", "@DISPID(-2147412077)\n @PropPut\n void ondragstart(\n java.lang.Object rhs);", "public void mouseDragged(MouseEvent event) {\n painterJPanelMouseDragged(event);\n }", "@Override\n\tpublic void dragAborted () {\n\t}", "private void enableDrag() {\n final Delta dragDelta = new Delta();\n setOnMousePressed((MouseEvent mouseEvent) -> {\n // record a delta distance for the drag and drop operation.\n if(isDragEnabled) {\n dragDelta.x = getCenterX() - mouseEvent.getX();\n dragDelta.y = getCenterY() - mouseEvent.getY();\n }\n });\n setOnMouseDragged((MouseEvent mouseEvent) -> {\n if(isDragEnabled) {\n double newX = mouseEvent.getX() + dragDelta.x;\n if (newX > 0 && newX < getScene().getWidth()) {\n setCenterX(newX);\n if(this == base)\n startX = getCenterX();\n }\n double newY = mouseEvent.getY() + dragDelta.y;\n if (newY > 0 && newY < getScene().getHeight()) {\n setCenterY(newY);\n if(this == base)\n startY = getCenterY();\n }\n }\n });\n }", "@DISPID(204)\r\n public boolean beginDrag() {\r\n throw new UnsupportedOperationException();\r\n }", "public void onDrag(int dragSource, int dropTarget) {\n\t}", "@FXML\n private void mouseDown(MouseEvent event) {\n preDragX = event.getX();\n preDragY = event.getY();\n }", "@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + deltaY);\r\n }", "public void mouseMoved(MouseEvent e) {\n ptDragStart = e.getPoint();\r\n\r\n }", "@Override\r\n\tpublic void drag(EditorInterface i, MouseEvent e) {\r\n\t\t\r\n\t\tthis.x = e.getX();\r\n\t\tthis.y = e.getY();\r\n\t}", "void onStartTrackingTouch() {\n mIsDragging = true;\n }", "void onStartTrackingTouch() {\n mIsDragging = true;\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t\tmouseClicked(e);\n\t\t\n\t}", "@Override\n\tpublic void onDragStart(DragSource source, Object info, int dragAction) {\n\n\t}", "@Override\n\tpublic boolean touchDragged(int arg0, int arg1, int arg2) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean touchDragged(int arg0, int arg1, int arg2) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void touchDragged(float x, float y, int pointer) {\n\t\tGdx.app.log(Global.APP_TAG, \"touchDragged\");\n\t\tsuper.touchDragged(x, y, pointer);\n\t}", "public void mouseDragged(MouseEvent event)\n\t\t{}" ]
[ "0.8052832", "0.80496275", "0.7808168", "0.77839285", "0.7728234", "0.7557964", "0.7552459", "0.7523784", "0.7523784", "0.7505783", "0.7505783", "0.7505783", "0.74886245", "0.74502325", "0.7447916", "0.7438606", "0.7437854", "0.7434184", "0.7434184", "0.7434184", "0.7434184", "0.7434184", "0.7431588", "0.7431588", "0.74308866", "0.7428844", "0.74064565", "0.74056816", "0.74020696", "0.7397082", "0.7397082", "0.73896813", "0.73837256", "0.73837256", "0.73784226", "0.737509", "0.737509", "0.737509", "0.737509", "0.737509", "0.737509", "0.737509", "0.7354133", "0.72791016", "0.7260768", "0.7243309", "0.7237116", "0.7207618", "0.7182745", "0.71812797", "0.7164507", "0.71353996", "0.71353996", "0.7120511", "0.71064377", "0.7105115", "0.7098258", "0.7097572", "0.70880413", "0.7076217", "0.7041606", "0.7036022", "0.70288235", "0.7015462", "0.7000649", "0.69854504", "0.6977356", "0.696298", "0.6952779", "0.6950941", "0.69380224", "0.6929049", "0.69252676", "0.6921342", "0.69209003", "0.69153935", "0.69092673", "0.6907511", "0.6907511", "0.68985134", "0.68956584", "0.6875842", "0.68702227", "0.6842003", "0.6823185", "0.68221444", "0.6819222", "0.68054074", "0.6804556", "0.6793214", "0.67783695", "0.6776105", "0.6769662", "0.6769662", "0.6766718", "0.6756779", "0.67559683", "0.67559683", "0.67474097", "0.67382157" ]
0.699422
65
The drag has ended.
@Override public void onDragEnd() { // Do nothing. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDragEnded();", "@Override\n\tpublic void onDragEnd(boolean success) {\n\t\t\n\t}", "public void dragEnd() {\n\t \n\t super.dragEnd();\n\t view.dragEnd();\n\t }", "public void dragDropEnd(boolean success);", "private synchronized void endDrag() {\n this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n beingDragged = false;\n }", "public void onMoveGestureEnded()\n\t{\n\t\tfireEvent(TiC.EVENT_MOVE_END, null);\n\t}", "void onDragEnd(View view);", "private boolean finishDrag(MotionEvent event) {\n if(dragging == null)\n {\n return false;\n }\n\n updateDrag(event);\n\n if(dragInTarget)\n {\n doMove(dragDirection, dragging.size());\n }\n else\n {\n vibrate(VIBRATE_DRAG);\n }\n\n dragInTarget = false;\n dragging = null;\n invalidate();\n\n return true;\n }", "public void mouseExited(MouseEvent me) {\n endDrag();\n }", "@Override\n\tpublic void dragAborted () {\n\t}", "public void dragDropEnd(DragSourceDropEvent evt) {\n }", "@Override\r\n public void dragExit(DropTargetEvent dte) {}", "public void mouseReleased(MouseEvent me) {\n endDrag();\n }", "protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>howLongWeWantToMove;\n }", "@Override\r\n\t\tpublic void dragExit(DropTargetEvent dte) {\n\t\t\t\r\n\t\t}", "public boolean onDragStarted();", "@Override\n\t\t\tpublic void dragExit(DropTargetEvent e) {\n\t\t\t}", "@Override\n\tpublic void dragDropped() {\n\n\t}", "protected void end() {\n\t\tdrive.setBoth(0);\n\t}", "public void dragExit(DropTargetEvent dte) {\n\t\t\n\t}", "public void dragExit(DragSourceEvent evt) {\n }", "private void dragDone(DragEvent event) {\n TransferMode modeUsed = event.getTransferMode();\n if (modeUsed == TransferMode.MOVE) {\n this.setDisable(true);\n }\n event.consume();\n }", "public void dragExit(DropTargetEvent dte) {\n // empty\n }", "protected void end() {\n isFinished();\n }", "public boolean isFinished() {\n return (Math.abs(RobotContainer.drive.getAngle() - this.angle) <= 1);\n }", "public boolean finished() {\n \t\treturn isFinished;\n \t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn done; \n\t}", "public void dragFinished(Layer layer, int newIndex) {\n layerList.remove(layer);\n layerList.add(newIndex, layer);\n imageChanged(FULL);\n }", "public boolean isEnded(){\n\t\treturn ended;\n\t}", "public void endTurn() {\n\t\tif (whoseTurn == 0) {\n\t\t\twhoseTurn = 1;\n\t\t} else {\n\t\t\twhoseTurn = 0;\n\t\t}\n\t\thasMoved = false;\n\t\thasSelected = false;\n\t\tif (prevSelected != null) {\n\t\t\tprevSelected.doneCapturing();\n\t\t}\n\t\tprevSelected = null;\n\t\tprevSelectedX = 0;\n\t\tprevSelectedY = 0;\n\t}", "public boolean finished();", "public void setEnded(){\n\t\tended=true;\n\t}", "@Override\n protected void onAnimationEnd() {\n super.onAnimationEnd();\n animating = false;\n\n if (moveAtEnd) {\n moveAtEnd = false;\n clearAnimation();\n setX(destX);\n setY(destY);\n }\n }", "protected boolean isFinished() {\n\t\treturn Robot.elevator.isInPosition(newPosition, direction);\n\t}", "public void finished() {\r\n\t\t// Mark ourselves as finished.\r\n\t\tif (finished) { return; }\r\n\t\tfinished = true;\r\n\t\tif (ic != null) {\r\n\t\t\tjvr.removeEventListener(ic);\r\n\t\t\ttry {\r\n\t\t\t\tdx.stopch(dxdev,dx.EV_ASYNC);\r\n\t\t\t}\r\n\t\t\tcatch (JVRException e) { logger.throwing(getClass().getName(),\"finished\",e); }\r\n\t\t}\r\n\t\t// Notify any \"waiters\" that we are done.\r\n\t\tsynchronized (this) { notifyAll(); }\r\n\t\t// Fire an event for asynchronous JVR event listeners.\r\n\t\tnew JVREvent(this,\"finished\").fire();\r\n\t\t// For debugging only.\r\n\t\t// logger.info(\"(FINISHED)\\n\" + this);\r\n\t}", "protected abstract boolean dragged();", "protected void end() {\n\t\t// we are ending the, stop moving the robot\n\t\tRobot.driveSubsystem.arcadeDrive(0, 0);\n\t}", "protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }", "@Override\r\n protected boolean isFinished() {\r\n \t// we're done when distance pid is done\r\n boolean distFin = mDistController.isFinished() ;\r\n if (distFin) {\r\n Robot.drivetrain.tankDrive(0, 0);\r\n mDistController.stop();\r\n mBearingController.stop();\r\n }\r\n return distFin ; \r\n }", "public void handleDragEnd(DragEvent anEvent)\n {\n ViewEvent nevent = ViewEvent.createEvent(_rootView, anEvent, null, null);\n _rootView.getWindow().dispatchEventToWindow(nevent);\n }", "boolean finished() {\n\t\treturn y > (parent.height);//in this case it will be the bottom corner of the canvas\n\t}", "public boolean isFinished() {\n\t\t\n\t\treturn drivetrain.angleReachedTarget();\n\n\t}", "@Override\n public boolean isFinished() {\n return isDone;\n }", "@Override\n public boolean isFinished() {\n return isDone;\n }", "@Override\n protected boolean isFinished() {\n return finished;\n }", "@Override\r\n\t\t\tpublic void dragLeave(DropTargetEvent event) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected boolean isFinished() {\n SmartDashboard.putNumber(\"TurnCommand Current Heading\", Robot.m_drivetrain.getAngle());\n SmartDashboard.putNumber(\"TurnCommand Target\", Start + TurnGoal);\n if (IsLeft) {\n return Robot.m_drivetrain.getAngle() <= Start + TurnGoal;\n } else {\n return Robot.m_drivetrain.getAngle() >= Start + TurnGoal;\n }\n }", "protected void end() {\r\n // stop motor, reset position on the dumper, enable closed loop\r\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\r\n\t\t\t\t\tpublic void dragLeave(DropTargetEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void \tdragExit(DropTargetEvent dte){\n draggedFile=null;\n }", "static void dragonLost() {\n\n\t\tSystem.exit(0); // This code ends the program\n\t}", "@Override\n\t\t\tpublic void dragFinished (DragSourceEvent event) {\n\t\t\t\tif (event.detail == DND.DROP_MOVE) {\n\t\t\t\t\tdragLabel.setText (\"\");\n\t\t\t\t}\n\t\t\t}", "@Override\n public boolean isEnding() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n public void onDragStarted(int position) {\n }", "protected boolean isFinished() {\n \tdouble changeInX = targetX - Robot.sensors.getXCoordinate();\n \tdouble changeInY = targetY - Robot.sensors.getYCoordinate();\n \tdouble distance = Math.sqrt(Math.pow(changeInX, 2) + Math.pow(changeInY, 2));\n return distance < 8 || System.currentTimeMillis() >= stopTime;\n }", "private void scrollerFinished()\n\t{\n\t\tif (!mFingerDown)\n\t\t{\n\t\t\treadjustScrollToMiddleItem();\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\treturn this.isDone;\n }", "@Override\n public boolean isFinished() {\n return complete;\n }", "@Override\r\n\tboolean isFinished() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(checkForWin() != -1)\r\n\t\t\treturn true;\r\n\t\telse if(!(hasValidMove(0) || hasValidMove(1)))\r\n\t\t\treturn true; //game draw both are stuck\r\n\t\telse return false;\r\n\t}", "@Override\n public boolean isFinished() {\n return true;\n }", "private void handleAutomatonEnded() {\n Platform.runLater(() -> {\n canvas.scheduleUpdate();\n goEndState();\n alertAutomatonEnded();\n });\n }", "public void finished();", "@Override\n\tpublic boolean isFinished() {\n\t\treturn finished;\n\t}", "@Override\n protected boolean isFinished() {\n return isFinished;\n }", "@Override\n\t\tpublic boolean isFinished() {\n\t\t\treturn false;\n\t\t}", "protected void end() {\r\n Robot.feeder.retractArm();\r\n Robot.feeder.setFeederIntakeSpeed(0);\r\n Robot.chassis.driveMecanumNormalized(0, 0, 0);\r\n Robot.shooter.setShootingMotors(0, 0);\r\n }", "public void done() {\n isDone = true;\n }", "@Override\n public boolean isFinished() \n {\n int curCount = mPath.kNumPoints - mCount;\n if(curCount<1)\n {\n System.out.println(mPath.kNumPoints);\n }\n \n return curCount<1;\n }", "@Override\n protected boolean isFinished() {\n return true;\n }", "public void end() {\n\t\tsigue = false;\n\t}", "public void finish() {\n\t\tPositionVo v = new PositionVo(1d, 0d, 0d, 0d, 0d, 0d, 0d);\n\t\tmanager.canvas.setJoneDoe(v, new Point(0, 0), Direction.NONE);\n\t\tstopTimer();\n\t\tfree();\n\t\tmanager.iWait();\n\t}", "@Override\n protected void end() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.STOPPED, 0.0);\n }", "public boolean wasFinished()\n {\n return this.isFinished;\n }", "public boolean canEndTurn(){\n\t\treturn moved;\n\n\t}", "public void endDrawing() {\r\n SelectionResult res = SelectionResult.getInstance();\r\n\r\n res.selection = selection;\r\n res.referenceY = selectedY;\r\n\r\n res.previewWidth = getWidth();\r\n res.previewHeight = getHeight();\r\n\r\n selectedY = -1;\r\n }", "@Override\r\n\tpublic boolean isFinished() {\n\t\treturn finish;\r\n\t}", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "protected void end() {\n \tRobot.driveBase.stopDead();\n }", "public boolean hasEnded() {\n\t\treturn ended;\n\t}", "@Override\n protected boolean isFinished() {\n return Robot.m_elevator.isDone();\n }", "@Override\n boolean isFinished() {\n return false;\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn isFin;\n\t}", "private void complete(boolean complete) {\n if (completed)\n return;\n \n drawingPad.getSelectedItems().finalizeMovement();\n \n if (complete) {\n iFrameOperator.enableCopyCut(false);\n iFrameOperator.enableAdvanceTools(false);\n drawingPad.finalizeSelectedItems();\n }\n \n drawingPad.repaint();\n }", "protected void end() {\n \t//Just let the lift keep holding the current motion magic\n \t//setpoint after this command ends\n \tRobot.debug.Stop();\n }", "protected abstract boolean end();", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "public boolean isFinished() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }" ]
[ "0.8147768", "0.79081416", "0.7878827", "0.77348536", "0.7372295", "0.69938624", "0.69011664", "0.6814797", "0.67319787", "0.6626733", "0.66203356", "0.6619145", "0.6612122", "0.65959346", "0.6583257", "0.6580259", "0.6552208", "0.6428908", "0.6405349", "0.6393617", "0.6379962", "0.63682544", "0.6344585", "0.6217536", "0.6214698", "0.61950254", "0.61906195", "0.6186365", "0.6185225", "0.61583775", "0.6146699", "0.6140028", "0.6135112", "0.61213475", "0.61183256", "0.6117968", "0.61148155", "0.61013746", "0.60894644", "0.6089153", "0.60874987", "0.6086154", "0.607431", "0.607431", "0.60721225", "0.6056567", "0.604779", "0.60472095", "0.60336435", "0.60336435", "0.6032747", "0.60318464", "0.6019636", "0.60162807", "0.6015394", "0.60077363", "0.60056627", "0.59949017", "0.5994487", "0.59892297", "0.5989052", "0.59771776", "0.597311", "0.59709805", "0.5968512", "0.5965899", "0.59653103", "0.5963711", "0.5935137", "0.59333813", "0.5931551", "0.5924565", "0.5924395", "0.59243286", "0.5909548", "0.5900741", "0.58916914", "0.58861744", "0.5884562", "0.58780545", "0.5877652", "0.5877497", "0.5872839", "0.5871368", "0.5864489", "0.5862479", "0.585855", "0.5856963", "0.58549106", "0.5852677", "0.58518696", "0.58518696", "0.58512515", "0.58512515", "0.5850227", "0.58496654", "0.5843077", "0.5843077", "0.5843077", "0.5843077" ]
0.7039435
5
Constructor for Initializing fields
public AttributeField(Field field){ this.field = field; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Field() {\r\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override public void init()\n\t\t{\n\t\t}", "public void init() {\n \n }", "public AirField() {\n\n\t}", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "public Constructor(){\n\t\t\n\t}", "public void init() {\n\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "public FieldScrapper() \r\n {\r\n }", "public IntegerField() {\r this(3, 0, 0, 0);\r }", "@Override\n public void init() {\n }", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }", "private FieldInfo() {\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public InitialData(){}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private TigerData() {\n initFields();\n }", "@Override\n public void init() {}", "Field() {\n value = 0;\n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void initialize()\n {\n }", "public void init() {\r\n\r\n\t}", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "@Override\n protected void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void init(){}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public void init() {\n\t\n\t}", "public void init() {\n\t\t\n\t}", "public void init(){\n \n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "public void init() { }", "public void init() { }", "private void init() {\n\n\t}", "protected void init() {\n }", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "public void init() {}", "public void init() {}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init()\n {\n }", "@Override\n public void init() {\n }", "protected void init() {\n // to override and use this method\n }", "private void initValues() {\n \n }", "protected void init() {\n super.init();\n uriExpr = null;\n uri = null;\n nameExpr = null;\n name = null;\n qname = null;\n attrExpr = null;\n attr = null;\n emptyExpr = null;\n empty = false;\n }", "protected void initialize() {\n \t\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n void init() {\n }", "private void init() {\n\n\n\n }", "protected void initialize() {}", "protected void initialize() {}", "protected void init(){\n }", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "public void init() {\n\t\t \r\n\t\t }", "private Request() {\n initFields();\n }", "public void init() {\n\n }", "public void init() {\n\n }", "protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }", "public FieldInfo() {\r\n \t// No implementation required\r\n }", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "protected void _init(){}", "public UserInputField() {\n }", "@Override\n public void initialize() {\n \n }" ]
[ "0.750252", "0.745184", "0.7340145", "0.73054254", "0.72578007", "0.7188838", "0.71866727", "0.7156399", "0.70855963", "0.70530933", "0.7048569", "0.70177007", "0.6960288", "0.6940037", "0.6927436", "0.6927436", "0.6927436", "0.6917838", "0.6917778", "0.69038004", "0.68808234", "0.68682367", "0.6863592", "0.6857069", "0.68451476", "0.68420726", "0.68420726", "0.68420726", "0.6837716", "0.68359065", "0.6829694", "0.68213624", "0.68073475", "0.6797357", "0.6797357", "0.6797357", "0.679355", "0.6792667", "0.6790771", "0.67823386", "0.6780374", "0.6780374", "0.6780374", "0.6780374", "0.6761643", "0.676075", "0.676075", "0.676075", "0.676075", "0.676075", "0.6754381", "0.6753841", "0.6753383", "0.67522156", "0.67458594", "0.673928", "0.67350197", "0.67350197", "0.67350197", "0.67350197", "0.6719451", "0.67135936", "0.67126733", "0.67126733", "0.6707338", "0.6703276", "0.6668332", "0.6666244", "0.6666244", "0.6665499", "0.66384643", "0.66384643", "0.66384643", "0.6633361", "0.6629763", "0.66253847", "0.6620991", "0.6614722", "0.6598962", "0.6597095", "0.6597095", "0.65801823", "0.6572846", "0.6570422", "0.65672994", "0.65672994", "0.6561211", "0.6554912", "0.65515673", "0.6550539", "0.653214", "0.653214", "0.65280885", "0.65150964", "0.650875", "0.65073127", "0.65035313", "0.65035313", "0.65020037", "0.6499721", "0.6472478" ]
0.0
-1
Gets the name of the field
public String getName(){ return field.getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFieldName();", "public String getFieldName();", "public String getFieldName() {\n return TF_Field_Name;\n }", "public java.lang.String getFieldName() {\n return fieldName;\n }", "@Override\n public String name() {\n return fieldName;\n }", "public String getFieldname(){\n\t\treturn sFeldname;\n\t}", "public String getFieldName() {\n int index = getFieldIndex();\n if (index == 0)\n return null;\n\n ComplexEntry entry = (ComplexEntry) getPool().getEntry(index);\n String name = entry.getNameAndTypeEntry().getNameEntry().getValue();\n if (name.length() == 0)\n return null;\n return name;\n }", "@Override\n\tpublic String getFieldName()\n\t{\n\t\treturn fieldName;\n\t}", "public String getFieldName() {\n return fieldName;\n }", "public String getFieldName() {\n return fieldName;\n }", "public String getFieldName() {\n return fieldName;\n }", "public String getFieldName() {\n return m_fieldName;\n }", "public String getFieldName()\n\t{\n\t\treturn fieldName;\n\t}", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "public String getFieldName() {\n return fieldName;\n }", "protected String getFieldName(java.lang.reflect.Field fld){\r\n\t\treturn _getFieldName(fld,true);\r\n\t}", "public String getFieldName()\n {\n return m_strFieldName;\n }", "public String getNameField() {\n if (nameField == null || Constants.EMPTY_STRING.equals(nameField)) {\n final JSONArray dataFields = rawData.optJSONArray(Constants.FIELDS_FIELD);\n if (dataFields != null) {\n for (int i = 0; i < dataFields.length(); i++) {\n final JSONObject field = dataFields.optJSONObject(i);\n if (field != null) {\n boolean nameFieldPresent = field.optBoolean(Constants.NAMEFIELD_FIELD);\n if (nameFieldPresent) {\n nameField = field.optString(Constants.NAME_FIELD);\n }\n }\n }\n }\n }\n return nameField;\n }", "public String getCurrentFieldName () {\n String currentField = getCurrentElement(ElementKind.FIELD);\n if (currentField == null) return \"\";\n else return currentField;\n //return getSelectedIdentifier ();\n }", "public String getFieldName() {\n return this.fieldName;\n }", "public String getFieldName() {\r\n return this.strFieldName;\r\n }", "public String get_fieldname() throws Exception {\n\t\treturn this.fieldname;\n\t}", "public String getField() {\n return field;\n }", "public String getField()\n {\n return field;\n }", "String getJavaFieldName();", "protected String get_object_name() {\n\t\treturn this.fieldname;\n\t}", "public java.lang.String getFieldFormName() {\n return fieldFormName;\n }", "String getField();", "PropertyName getName();", "public String getName() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@name\").getText();\n\t}", "public String getNameFieldText() {\n return nameField.getText();\n }", "public String getName() {\n/* */ return this.field_176894_i;\n/* */ }", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public String field() {\n\t\treturn \"_\"+methodBase();\n\t}", "public final String getName() {\n String ret = null;\n for (String s : getNameFields()) {\n if (ret == null) {\n ret = get(s);\n } else {\n ret = ret + \",\" + get(s);\n }\n }\n return ret;\n }", "public String getFieldName(int nFieldIndex) {\n\treturn null;\n}", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getUsernameFieldName() {\n return getStringProperty(USERNAME_FIELD_NAME_KEY);\n }", "String getPropertyName();", "public String getFieldName(Class<?> type, String fieldName);", "private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }", "private JTextField getTextFieldName() {\r\n JTextField textFieldName = makeJTextField(1, 100, 100, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n return textFieldName;\r\n }", "public String getNewsletterFieldName() {\n return getStringProperty(NEWSLETTER_FIELD_NAME_KEY);\n }", "public String getPropertyName();", "protected String _getFieldName(java.lang.reflect.Field fld, boolean rich){\r\n\t\tString name=fld.getName();\r\n\t\tif (fld.isAnnotationPresent(IndexKey.class)) {\r\n\t\t\tif (rich) name=INDEX_+name;\r\n\t\t} \r\n\t\telse\r\n\t\tif (fld.isAnnotationPresent(NumIndex.class)) {\r\n\t\t\tif (rich) name=NUMINDEX_+name;\r\n\t\t} \r\n\t\telse\r\n\t\tif (fld.isAnnotationPresent(FullBody.class)) {\r\n\t\t\tif (rich) name=FULLBODY_+name;\r\n\t\t} \r\n\t\telse\r\n\t\tif (fld.isAnnotationPresent(CategoryKey.class)) {\r\n\t\t\tif (rich) name=CATEGORY_+name;\r\n\t\t} \r\n\t\telse \r\n\t\tif (fld.isAnnotationPresent(FullText.class)) {\r\n\t\t\tif (rich) name=FULLTEXT_+name;\r\n\t\t} \r\n\t\telse \r\n\t\tif (fld.isAnnotationPresent(DateIndex.class)) {\r\n\t\t\tif (rich) name=DATEINDEX_+name;\r\n\t\t} \r\n\t\telse \r\n\t\tif (fld.isAnnotationPresent(TimestampIndex.class)) {\r\n\t\t\tif (rich) name=TIMESTAMP_+name;\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "public String toString()\n\t{\n\t\treturn fieldname;\n\t}", "protected abstract String getFieldName(String parameter);", "public String getFieldDeclarerName() {\n int index = getFieldIndex();\n if (index == 0)\n return null;\n\n ComplexEntry entry = (ComplexEntry) getPool().getEntry(index);\n String name = getProject().getNameCache().getExternalForm(entry.\n getClassEntry().getNameEntry().getValue(), false);\n if (name.length() == 0)\n return null;\n return name;\n }", "public String getFieldText(String fieldName);", "public java.lang.String getName();", "public String getFirstNameFieldName() {\n return getStringProperty(FIRST_NAME_FIELD_NAME_KEY);\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.84166765", "0.81717926", "0.8073378", "0.8041018", "0.8014589", "0.7953863", "0.79458535", "0.78768885", "0.78624946", "0.78624946", "0.78624946", "0.78598595", "0.78431994", "0.7842364", "0.78367186", "0.78339374", "0.7830375", "0.7775166", "0.7746", "0.774072", "0.7736086", "0.7587283", "0.75574845", "0.7497222", "0.74333555", "0.7428449", "0.742444", "0.73996264", "0.7352797", "0.73293734", "0.7326554", "0.73109275", "0.7275493", "0.7252692", "0.7252538", "0.7247416", "0.7223123", "0.7161353", "0.71007043", "0.70913666", "0.7026475", "0.7021015", "0.6934062", "0.69170463", "0.690839", "0.68932706", "0.6861037", "0.68526626", "0.6851652", "0.6836547", "0.6834542", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317", "0.6817317" ]
0.8845412
0
Gets the type of the field
public Class<?> getType(){ return field.getType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FieldType getType();", "public String getFieldType()\n\t{\n\t\treturn fieldType;\n\t}", "public String getFieldType()\n {\n return m_strFieldType;\n }", "public java.lang.String getFieldType() {\n return fieldType;\n }", "public Class getFieldType() {\n String type = getFieldTypeName();\n if (type == null)\n return null;\n return Strings.toClass(type, getClassLoader());\n }", "public fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType() {\n return type_;\n }", "com.google.cloud.datacatalog.FieldType getType();", "public fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType() {\n return type_;\n }", "public Typ getFieldType(){\n\t\treturn tFeldTyp;\n\t}", "public Class<?> getRawFieldType() {\r\n\t\treturn TypeToken.of(_fieldType)\r\n\t\t\t\t\t\t.getRawType();\r\n\t}", "String getType(FieldDef fieldDef, String key,\r\n FieldsRepository fieldsRepository);", "public Type getType(String f)\n {\n return getFieldTypMap().get(f);\n }", "fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public String obtenirType() {\n\t\treturn this.type;\n\t}", "public String getFieldType() {\n\t\treturn \"0\";\n\t}", "public String getType() {\n return (String) getObject(\"type\");\n }", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "public Type getType();", "public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }", "public java.lang.String getFieldDBType() {\n return fieldDBType;\n }", "com.google.cloud.datacatalog.FieldTypeOrBuilder getTypeOrBuilder();", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "type getType();", "public String getType() {\n return _type;\n }", "public String getType() {\n\t\treturn _type;\n\t}", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public Class getType() {\n\t if ( type != null )\n\t return type;\n\t return long.class;\n\t }", "private static Class<?> type(Field field) {\n\t\tif (Types.isKindOf(field.getType(), List.class)) {\n\t\t\t// for the purpose of this implementation only first parameterized\n\t\t\t// type matters, as result from list declaration List<E>\n\t\t\treturn (Class<?>) ((ParameterizedType) field.getGenericType()).getActualTypeArguments()[0];\n\t\t}\n\t\treturn field.getType();\n\t}", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public int getFieldType(String strFieldName) {\n\treturn 0;\n}", "public String getType()\n \t{\n \t\treturn this.type;\n \t}", "public Type getType() {\n\t\treturn this.type;\n\t}", "public QName getFieldElementType() {\n return fieldElementType;\n }", "public String getDataType()\n {\n String v = (String)this.getFieldValue(FLD_dataType);\n return StringTools.trim(v);\n }", "public java.lang.String getType()\n {\n return m_type;\n }", "public Class<?> getFieldType( int i ) {\n return entityMetaData.getFieldType( i );\n }", "public Type getType(){\n\t\treturn this.type;\n\t}", "public Type getType() {\n return _type;\n }", "public Class getType();", "public Type getType() {\n return this.type;\n }", "public Type getType() {\n\t\treturn type;\n\t}" ]
[ "0.8049316", "0.77687943", "0.77434087", "0.7705409", "0.76746017", "0.74150133", "0.7412213", "0.7407988", "0.7373712", "0.7306017", "0.721783", "0.7170036", "0.708309", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.70808864", "0.7080517", "0.70691067", "0.70620257", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.70386577", "0.702984", "0.70006025", "0.6961665", "0.69424826", "0.68705463", "0.6867023", "0.6824995", "0.68148905", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.680365", "0.6801477", "0.67967695", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.67958844", "0.6791952", "0.67894655", "0.6782894", "0.678241", "0.6781903", "0.6777112", "0.6772345", "0.6768738", "0.67671865", "0.6752327", "0.6748815", "0.67487806" ]
0.87603027
0
Gets names of the Annotated fields
public String getAttributeName(){ if(field.getAnnotation(Column.class) != null){ return field.getAnnotation(Column.class).column(); } if( field.getAnnotation(PrimaryKey.class) !=null){ return field.getAnnotation(PrimaryKey.class).name(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getAllFilledAnnotationFields();", "java.lang.String getFields();", "public String[] getFieldNames();", "public String[] getFieldNames()\n {\n return this.fieldMap.keyArray(String.class);\n }", "public Vector getSampleAnnotationFieldNames();", "abstract public FieldNames getFieldNames();", "@Override\n\tpublic String[] getFieldName() {\n\t\treturn new String[]{\"编码\",\"名称\",\"属性\"};\n\t}", "public String getFields() {\n return fields;\n }", "public Set<String> getFieldNames() {\n Set<String> names = new HashSet<String>();\n for (IdentifierProperties field : fields) {\n names.add(field.getName());\n }\n\n return names;\n }", "@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}", "public String getName(){\n return field.getName();\n }", "public Set<String> getFieldNames ()\n\t{\n\t\treturn m_Fields.keySet();\n\t}", "String getJavaFieldName();", "public String getFieldName();", "String getFieldName();", "java.lang.String getField1401();", "public abstract String[] getRequiredAttributeNames();", "private String[] getNameParts() {\n return field.getName().split(\"_\");\n }", "public String[] getFieldNameMapping() {\r\n return null;\r\n }", "java.lang.String getField1043();", "private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}", "java.lang.String getField1527();", "public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }", "java.lang.String getField1406();", "java.lang.String getField1552();", "java.lang.String getField1727();", "java.lang.String getField1217();", "java.lang.String getField1752();", "java.lang.String getField1740();", "java.lang.String getField1078();", "java.lang.String getField1711();", "java.lang.String getField1792();", "java.lang.String getField1875();", "java.lang.String getField1764();", "java.lang.String getField1835();", "java.lang.String getField1031();", "java.lang.String getField1235();", "java.lang.String getField1066();", "java.lang.String getField1543();", "java.lang.String getField1056();", "java.lang.String getField1784();", "java.lang.String getField1517();", "java.lang.String getField1725();", "java.lang.String getField1869();", "java.lang.String getField1734();", "java.lang.String getField1721();", "java.lang.String getField1573();", "java.lang.String getField1584();", "java.lang.String getField1427();", "java.lang.String getField1787();", "java.lang.String getField1435();", "java.lang.String getField1417();", "java.lang.String getField1728();", "java.lang.String getField1738();", "@SuppressWarnings(\"rawtypes\")\n\tpublic List getFields(){\n\t\treturn targetClass.fields;\n\t}", "java.lang.String getField1769();", "public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }", "java.lang.String getField1218();", "java.lang.String getField1741();", "java.lang.String getField1735();", "java.lang.String getField1772();", "java.lang.String getField1246();", "java.lang.String getField1718();", "java.lang.String getField1592();", "java.lang.String getField1715();", "java.lang.String getField1535();", "java.lang.String getField1746();", "java.lang.String getField1852();", "List<Field> getFields();", "java.lang.String getField1352();", "java.lang.String getField1731();", "java.lang.String getField1452();", "java.lang.String getField1529();", "java.lang.String getField1719();", "java.lang.String getField1335();", "java.lang.String getField1569();", "java.lang.String getField1779();", "java.lang.String getField1720();", "java.lang.String getField1773();", "java.lang.String getField1730();", "java.lang.String getField1269();", "java.lang.String getField1025();", "java.lang.String getField1587();", "java.lang.String getField1528();", "java.lang.String getField1729();", "java.lang.String getField1582();", "java.lang.String getField1714();", "java.lang.String getField1774();", "java.lang.String getField1336();", "java.lang.String getField1418();", "java.lang.String getField1782();", "java.lang.String getField1702();", "java.lang.String getField1227();", "java.lang.String getField1243();", "java.lang.String getField1429();", "java.lang.String getField1273();", "java.lang.String getField1817();", "java.lang.String getField1751();", "java.lang.String getField1872();", "java.lang.String getField1241();" ]
[ "0.7415642", "0.7290516", "0.6999511", "0.6749653", "0.6723129", "0.6595743", "0.6519522", "0.6423667", "0.6356358", "0.6316061", "0.63006264", "0.626647", "0.62341505", "0.62099504", "0.62048894", "0.6192083", "0.615439", "0.61529243", "0.61446154", "0.6141285", "0.61238134", "0.61167705", "0.61149216", "0.61023676", "0.6086175", "0.60859907", "0.60608935", "0.605892", "0.60548306", "0.6054605", "0.6053691", "0.6052984", "0.605152", "0.6047765", "0.6046346", "0.6044499", "0.60417765", "0.60374045", "0.60373044", "0.6032973", "0.6028903", "0.6028385", "0.6025885", "0.6023892", "0.6021476", "0.6021349", "0.6021325", "0.6021078", "0.60170335", "0.6015452", "0.6015314", "0.6013767", "0.6012909", "0.6011985", "0.6011768", "0.60110605", "0.60094404", "0.60079056", "0.6006182", "0.60050803", "0.59996545", "0.5999219", "0.59989446", "0.59972376", "0.5996682", "0.59946865", "0.59931606", "0.5992532", "0.5991112", "0.59906334", "0.5989262", "0.59880495", "0.59860504", "0.5982439", "0.5981512", "0.5980498", "0.597934", "0.59773964", "0.59773487", "0.59769064", "0.59762764", "0.5976216", "0.5975916", "0.5973648", "0.5971083", "0.59686583", "0.59669775", "0.5965464", "0.5964772", "0.596436", "0.59639597", "0.59606457", "0.5960542", "0.59600884", "0.59598976", "0.5959481", "0.59586847", "0.59586555", "0.59582394", "0.59564793" ]
0.62223226
13
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Usuario)) { return false; } Usuario other = (Usuario) object; if ((this.usu_codigo == null && other.usu_codigo != null) || (this.usu_codigo != null && !this.usu_codigo.equals(other.usu_codigo))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "protected abstract String getId();", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getID() {return id;}", "public int getID() {return id;}", "@Override\n public int getField(int id) {\n return 0;\n }", "public int getId ()\r\n {\r\n return id;\r\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "public int getID(){\n return id;\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6895054", "0.68374", "0.6704317", "0.6640388", "0.6640388", "0.6591309", "0.65775865", "0.65775865", "0.6573139", "0.6573139", "0.6573139", "0.6573139", "0.6573139", "0.6573139", "0.65607315", "0.65607315", "0.6543184", "0.65233654", "0.6514126", "0.6486639", "0.6476104", "0.6425083", "0.6417945", "0.64155436", "0.6401117", "0.6365784", "0.6353813", "0.6350901", "0.6346276", "0.63230515", "0.63178957", "0.6300151", "0.62925845", "0.62925845", "0.62828994", "0.62691253", "0.626534", "0.626377", "0.626042", "0.6258256", "0.625457", "0.62494874", "0.6246241", "0.6246241", "0.6243762", "0.6237063", "0.6237063", "0.62315995", "0.62230533", "0.62196", "0.6218788", "0.62108403", "0.6208459", "0.6199806", "0.6198686", "0.61913145", "0.6188708", "0.6188708", "0.6188708", "0.618836", "0.618836", "0.6185492", "0.618302", "0.6173222", "0.6172136", "0.61670196", "0.6164574", "0.6161836", "0.61555654", "0.61555654", "0.61555654", "0.61555654", "0.61555654", "0.61555654", "0.61555654", "0.61543274", "0.61543274", "0.61417395", "0.6132315", "0.6126532", "0.61263895", "0.61050344", "0.61024666", "0.61024666", "0.6101565", "0.6101017", "0.6100358", "0.60995364", "0.6098027", "0.60939413", "0.60920423", "0.60920423", "0.60916567", "0.608893", "0.608861", "0.607555", "0.607143", "0.6069373", "0.60690147", "0.6068866", "0.6068518" ]
0.0
-1
Service that provides peer information internally. Usually provides a cache of already retrieved peer information from the peer manager.
public interface PeerInfoService extends PeerInfoCallback { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IPeerManager\r\n{\r\n /**\r\n * Add a new PeerEndpoint to the list of peers\r\n * \r\n * @param peer\r\n */\r\n void addPeerEndpoint(PeerEndpoint peer);\r\n\r\n /**\r\n * Returns a current snapshot of all known peers\r\n * \r\n * @return An iterable list of all the peers\r\n */\r\n Set<String> getPeerSnapshot();\r\n\r\n /**\r\n * Returns the PeerEnpoint matching the key\r\n * \r\n * @param key\r\n * @return the requested PeerEndpoint\r\n */\r\n PeerEndpoint getPeerEndpoint(String key);\r\n\r\n /**\r\n * Deletes the PeerEndpoint matching the provided key\r\n * \r\n * @param key\r\n */\r\n void removePeerEndpoint(String key);\r\n\r\n /**\r\n * Returns the number of currentlyn known peers\r\n * \r\n * @return number of currently known peers\r\n */\r\n int getPeerCount();\r\n}", "public Peer getPeer();", "private ResolverService(Peer peer, EndpointService epService)\n {\n super(peer, RESSERVICE_NAME);\n\n // init fields\n initFields();\n \n \n this.epService = epService;\n epService.addListener(serviceName, this); //adding listener to end\n // point service\n\n cache = Cache.createInstance(); //creating cache\n cache.addResource(peer);\n \n\n // get SeedPeerList\n EndpointAddress[] seedPeerList = getSeedURIs();\n \n if (seedPeerList != null && seedPeerList.length > 0)\n {\n int seedListSize = (neighbors > seedPeerList.length ? seedPeerList.length : neighbors);\n seedURI = new EndpointAddress[seedListSize][1];\n for (int i = 0; i < seedListSize; i++)\n {\n seedURI[i][0] = seedPeerList[i];\n }\n }\n// try\n// {\n// mcastURI = new EndpointAddress(null, null, 0);\n// } catch (Exception e)\n// {\n// e.printStackTrace();\n// }\n\n// myPeer = peer;\n peerId = peer.getID().toString(); //TBD kuldeep - Is this needed?\n// peername = myPeer.getName();\n }", "PeerConnectionInformation peerConnectionInformation();", "public NewsletterPeer getPeer()\n {\n return peer;\n }", "@JsonGetter(\"peer\")\r\n public PeerModel getPeer ( ) { \r\n return this.peer;\r\n }", "public PeerInfo (PeerID peerID, ByteBuffer key, InetAddress address, int port, long uploaded, long downloaded, long remaining) {\n\n\t\tthis.peerID = peerID;\n\t\tthis.key = key;\n\t\tthis.address = address;\n\t\tthis.port = port;\n\t\tthis.uploaded = uploaded;\n\t\tthis.downloaded = downloaded;\n\t\tthis.remaining = remaining;\n\t\tthis.complete = false;\n\t\tthis.lastUpdated = System.currentTimeMillis();\n\n\t}", "public List<PeerResult> getPeerInfo() throws Exception{\n\t\tRpcRequest postData = getPostData(RpcMethod.GET_PEER_INFO);\n\t\tString result = HttpUtil.httpPostBody(getUrl(), postData.toJsonString());\n\t\tif (StringUtil.isNotEmpty(result)) {\n\t\t\tJSONObject parseObject = JSONObject.parseObject(result);\n\t\t\tif (messageValidate(parseObject))\n\t\t\t\treturn null;\n\t\t\tJSONObject resultJson = parseObject.getJSONObject(\"result\");\n\t\t\tJSONArray jsonArray = resultJson.getJSONArray(\"peers\");\n\t\t\tList<PeerResult> peerList = new ArrayList<>();\n\t\t\tfor (int i = 0; i < jsonArray.size(); i++) {\n\t\t\t\tJSONObject peerJson = jsonArray.getJSONObject(i);\n\t\t\t\tPeerResult peer = JSONObject.toJavaObject(peerJson, PeerResult.class);\n\t\t\t\tpeerList.add(peer);\n\t\t\t}\n\t\t\treturn peerList;\n\t\t}\n\t\treturn null;\n\t}", "public java.util.Map<java.lang.String, java.lang.String> getPeersMap() {\n return internalGetPeers().getMap();\n }", "public java.util.Map<java.lang.String, java.lang.String> getPeersMap() {\n return internalGetPeers().getMap();\n }", "public abstract P getPeer() throws DataException;", "lightpay.lnd.grpc.Peer getPeers(int index);", "java.util.List<lightpay.lnd.grpc.Peer> \n getPeersList();", "public abstract P getAsPeer() throws DataException;", "protected Hashtable<String, Set<PeerConnection>> peerRecord() {\n\t\treturn peerRecord;\n\t}", "public Service() {\n if (peers[0] == null) {\n Service.peers[0] = new Peer(clave7);\n Service.peers[1] = new Peer(clave8);\n Service.peers[2] = new Peer(clave9);\n Service.peers[0].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n //Service.peers[0].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[0].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n //Service.peers[1].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n Service.peers[1].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave1, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave2, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave3, HOSTS[0], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave4, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave5, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave6, HOSTS[1], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave7, HOSTS[2], PUERTO));\n Service.peers[2].addPeer(new EntradaTEncam(clave8, HOSTS[2], PUERTO));\n //Service.peers[2].addPeer(new EntradaTEncam(clave9, HOSTS[2], PUERTO));\n }\n }", "public String getPeerAddress() {\n return peerAddress.getHostAddress();\n }", "public String getPeerAddress() {\n return peerAddress.getHostAddress();\n }", "public Vector<String> getPeerList()\n\t{\n\t\treturn this.peerList;\n\t}", "PeerEndpoint getPeerEndpoint(String key);", "public void setPeer(Peer peer);", "public Response getPeer(String address) {\n return connectionMap.get(address);\n }", "public ArrayList<InetAddress> getPeers() {\n\t\treturn new ArrayList<InetAddress>(peers.keySet());\n\t}", "public String getPeerName() {\n return peerAddress.getHostName();\n }", "public String getPeerName() {\n return peerAddress.getHostName();\n }", "protected final LWContainerPeer<?, ?> getContainerPeer() {\n return containerPeer;\n }", "public String peers() throws Exception {\n\n \t\tString apiUrl = \"api/peers.json\";\n \t\t\n \t\tString url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t} else {\n\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t}\n\n\t\treturn response; \n \t}", "lightpay.lnd.grpc.PeerOrBuilder getPeersOrBuilder(\n int index);", "public byte[] getPeerId() {\n\t\treturn _myPeerId;\n\t}", "public RetResult<Peers> Peers() {\n\t\ttry {\n\t\t\tl.acquire();\n\n\t\t\t// Read the file\n\t\t\tRetResult<byte[]> readResult = FileUtils.readFileToByteArray(path);\n\t\t\tbyte[] buf = readResult.result;\n\t\t\terror err = readResult.err;\n\n\t\t\tif (err != null) {\n\t\t\t\treturn new RetResult<Peers>(null, err);\n\t\t\t}\n\n\t\t\t// Check for no peers\n\t\t\tif (buf == null || buf.length == 0) {\n\t\t\t\treturn new RetResult<Peers>(null, null);\n\t\t\t}\n\n\t\t\t// Decode the peers\n\t\t\t// TODO: is the transformation correct?\n\t//\t\tdec := json.NewDecoder(bytes.NewReader(buf));\n\t//\t\terr := dec.Decode(peerSet);\n\t\t\t Peer[] peerSet = JsonUtils.StringToObject(new String(buf), Peer[].class);\n\n\t\t\treturn new RetResult<Peers>(Peers.NewPeersFromSlice(peerSet), null);\n\t\t} catch (InterruptedException e) {\n\t\t\terror err = new error(e.getMessage());\n\t\t\treturn new RetResult<Peers>(null, err);\n\t\t} finally {\n\t\t\tl.release();\n\t\t}\n\t}", "private PeerInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PeerService(int replyTimeout) {\n this.replyTimeout = replyTimeout;\n this.channel = Session.getInstance().getChannel();\n this.channel.putProcessor(\"add_peer\", new Processor<Pdu>() {\n @Override\n public void process(Pdu pdu) { onPeerAdded(pdu); }\n });\n this.channel.putProcessor(\"remove_peer\", new Processor<Pdu>() {\n @Override\n public void process(Pdu pdu) { onPeerRemoved(pdu); }\n });\n this.channel.putProcessor(\"clear_peers\", new Processor<Pdu>() {\n @Override\n public void process(Pdu pdu) { onPeersCleared(); }\n });\n }", "public Set<String> peersAlive() {\n return peerLastHeartbeatTime.keySet();\n }", "private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }", "Uuid getActivePeer() throws RemoteException, NotBoundException;", "public interface IThingPeerData {\r\n\r\n}", "public MailReceivePeer getPeer()\n {\n return peer;\n }", "void getPeerInfo() {\n\n String strcount;// string used to count peers\n\n String str;\n\n int peercount = 0;// to calculate total peers number\n\n int count = 0; //to calculate myrank\n\n myPeerInfo = new Vector<RemotePeerInfo>();//peers' info vector\n\n try {\n\n BufferedReader incount = new BufferedReader(new FileReader(\"PeerInfo.cfg\"));//used to count lines\n\n BufferedReader in = new BufferedReader(new FileReader(\"PeerInfo.cfg\"));\n\n //Calculate lines, i.e peer numbers in the system\n while ((strcount = incount.readLine()) != null) {\n\n peercount++;\n\n }\n\n incount.close();\n\n peercount--;\n\n peer_ip = new String[peercount];\n\n peer_port = new int[peercount];\n\n peer_id = new int[peercount];\n\n num_peers = peercount;\n \n int cnt2 = 1;\n\n while ((str = in.readLine()) != null) {\n\n String[] tokens = str.split(\"\\\\s+\");\n\n myPeerInfo.addElement(new RemotePeerInfo(tokens[0], tokens[1], tokens[2]));\n\n if (this.id != Integer.parseInt(tokens[0])) {// if host id is not equal to id read, collect other peers\n\n peer_id[count] = Integer.parseInt(tokens[0]);\n\n peer_ip[count] = tokens[1];\n\n peer_port[count] = Integer.parseInt(tokens[2]);\n \n peer_ip[count] = host_ip;\n\n count++;\n\n } else {// if host id is equal to the id read, read info\n\n own_file = Integer.parseInt(tokens[3])==1;\n\n port = Integer.parseInt(tokens[2]);\n\n myRank = count;\n\n }\n \n cnt2++;\n\n }\n\n in.close();\n\n } catch (Exception ex) {\n\n }\n\n }", "java.util.List<? extends lightpay.lnd.grpc.PeerOrBuilder> \n getPeersOrBuilderList();", "void addPeerEndpoint(PeerEndpoint peer);", "private List<Identifier> determineAdapters(Message msg, PeerInfo newPeerInfo){\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.size() > MAP_SIZE_LIMIT) peerToAdaptersMappings.clear();\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.containsKey(newPeerInfo)){ //uses just peer id comparison here. \r\n\t\t\t//this is a known recipient\r\n\t\t\t//However, we still need to check if the available list of adapters (routing list) is valid.\r\n\t\t\t\r\n\t\t\tPair<List<Identifier>, PeerInfo> p;\r\n\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\r\n\t\t\tint i = 1;\r\n\t\t\twhile (p == null && i<4) { //this can happen if another thread flushed the entry in the meantime. That same thread should also update the value, though\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(i*20);\r\n\t\t\t\t} catch (InterruptedException ignored) {}\r\n\t\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i >= 4 && p == null){\r\n\t\t\t\t//the other thread obviously did not do the job yet. We will take care of it in the rest of the method.\r\n\t\t\t}else{\r\n\t\t\t\tPeerInfo oldPeerInfo = p.second;\r\n\t\t\t\tif (newPeerInfo.equalsByDeepCoparison(oldPeerInfo)){\r\n\t\t\t\t\treturn p.first; //return the existing list of adapters, since nothing changed in the PeerInfo from last time\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t// if we arrived here it means, either:\r\n\t\t// sending message to this peer for the first time \r\n\t\t// OR\r\n\t\t// the information we have is outdated, so let's update it\r\n\t\t\r\n\r\n\t\tList<Identifier> adapters = adapterMgr.createEndpointForPeer(newPeerInfo); //need not be synced, since invoking createEndpointForPeer multiple times should be fine\r\n\t\tPair<List<Identifier>, PeerInfo> p = new Pair<List<Identifier>, PeerInfo>(adapters, newPeerInfo);\r\n\t\t\r\n\t\tsynchronized(peerToAdaptersMappings){ //just using ConcurrentHashMap is not enough, because we need to save the reference to the map's key in the second object of the Pair, which is the object of the map, and if 2 thread repeat put, the value will get updated, but that value will contain the wrong reference to the key, meaning that subsequently the deep comparison between the old and the new PeerInfo object will not be possible\r\n\t\t\tpeerToAdaptersMappings.remove(newPeerInfo); //in reality, we remove an existing entry, if any. Since the PeerInfo.equals just compares Ids, it should locate the exact entry.\r\n\t\t\tpeerToAdaptersMappings.put(newPeerInfo, p); //we now put in the new value, which is a Pair, whose second element points to the key of the entry in the peerToAdaptersMappings where the Pair value belongs\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Now we have the list of all possible Adapters trough which we can deliver the message to the peer.\r\n\t\t// However, depending on peer's stated delivery policy we may want to restrict this list.\r\n\t\t// For example, in case of DeliveryPolicy.PREFERRED, we will just return the first Adapter.\r\n\t\t// But, in case of either TO_ALL_CHANNELS or AT_LEAST_ONE, we return all adapters, because in either case\r\n\t\t// the policy foresees sending to multiple adapters, but interpreting responses from all/one channel as ultimate success, respectively. \r\n\t\t\r\n\t\t\r\n\t\tif (newPeerInfo.getDeliveryPolicy() == DeliveryPolicy.Peer.PREFERRED){\r\n\t\t\tIdentifier preferred = adapters.get(0);\r\n\t\t\tList<Identifier> prefList = new ArrayList<Identifier>();\r\n\t\t\tprefList.add(preferred);\r\n\t\t\treturn prefList;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn adapters;\r\n\t}", "public abstract String getPeerNameCandidate();", "@JsonSetter(\"peer\")\r\n public void setPeer (PeerModel value) { \r\n this.peer = value;\r\n }", "protected java.util.Set<Node> getPeers() {\n\t\tfinal java.util.Set<Node> peerList = new java.util.HashSet<Node>();\n\t\tpeerList.addAll(peers);\n\t\treturn peerList;\n\t}", "void firePeerDiscovered(TorrentId torrentId, Peer peer);", "protected CacheManagerPeerProvider createManuallyConfiguredCachePeerProvider(Properties properties) {\r\n String urls = PropertyUtil.extractAndLogProperty(JNDI_URLS, properties);\r\n if (urls == null || urls.length() == 0) {\r\n throw new CacheException(JNDI_URLS + \" must be specified when peerDiscovery is manual\");\r\n }\r\n\r\n boolean stashContexts = isStashContexts(properties);\r\n boolean stashRemoteCachePeers = isStashRemoteCachePeers(properties);\r\n\r\n JNDIManualRMICacheManagerPeerProvider jndiPeerProvider = new JNDIManualRMICacheManagerPeerProvider(stashContexts,\r\n stashRemoteCachePeers);\r\n urls = urls.trim();\r\n StringTokenizer stringTokenizer = new StringTokenizer(urls, PayloadUtil.URL_DELIMITER);\r\n while (stringTokenizer.hasMoreTokens()) {\r\n String jndiUrl = stringTokenizer.nextToken();\r\n jndiUrl = jndiUrl.trim();\r\n jndiPeerProvider.registerPeer(jndiUrl);\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Registering peer \" + jndiUrl);\r\n }\r\n }\r\n return jndiPeerProvider;\r\n }", "public PassengerInfos(){\r\n\t\tthis.serial = 0;\r\n\t\tthis.phone = VAL_DEFAULT_STRING;\r\n\t\tthis.name = VAL_DEFAULT_STRING;\r\n\t\tthis.recordDesc = this.name;\r\n\t\tthis.addressInfos = new AddressInfos();\r\n\t\tthis.selected = false;\r\n\t\tthis.bigpackages = 0;\r\n\t}", "public PeeringState peeringState() {\n return this.innerProperties() == null ? null : this.innerProperties().peeringState();\n }", "@Test\n public void testAddPeerDetailsSuccess() {\n participantsConfig.addPeer(newPeer);\n expectLastCall().once();\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n verify(participantsConfig);\n }", "public int getLocalPeerID()\n {\n return localPeerID;\n }", "Peer getLeader() {\n return leader;\n }", "public Object getPeerInfo(int i){\n return capsule.get(i); //return type=Object\r\n }", "public void getAlreadyConnectedPeers() {\n ArrayList<Peer> alreadyConnected = parent.getConnections(name);\n for(Peer p : alreadyConnected) {\n if(p.connected()) {\n addPeer(p.getIP());\n nodeConnection(p.getIP());\n }\n }\n }", "public Document getPeerInfo(Integer id) {\n try {\n this.setTarget(\"CHATS\");\n Document peerInfo = collection.find(eq(\"_id\", id)).first();\n if (peerInfo == null) {\n this.setTarget(\"USERS\");\n peerInfo = collection.find(eq(\"_id\", id)).first();\n }\n return peerInfo;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }", "@Deprecated\n public FontPeer getPeer(){\n\treturn getPeer_NoClientCode();\n }", "abstract PeerType getPeerType();", "public void addPeerToList(WifiP2pDevice peer) {\n stopRefreshActionBar();\n int peer_index = -1;\n if ((peer_index = peers_.indexOf(peer)) != -1) {\n peers_.get(peer_index).deviceName = peer.deviceName;\n peers_.get(peer_index).deviceAddress = peer.deviceAddress;\n peers_.get(peer_index).status = peer.status;\n } else {\n peers_.add(peer);\n }\n displayEmptyView();\n System.out.println(\"Peers found\");\n ((PeersAdapter)adapter_).update();\n listener_.onDiscoveringPeersRequestDone();\n }", "protected XMLDocument getPeerAdvertisementDoc() {\r\n PeerAdvertisement newPadv = null;\r\n\r\n synchronized (this) {\r\n newPadv = group.getPeerAdvertisement();\r\n int newModCount = newPadv.getModCount();\r\n\r\n if ((cachedPeerAdv != newPadv) || (cachedPeerAdvModCount != newModCount)) {\r\n cachedPeerAdv = newPadv;\r\n cachedPeerAdvModCount = newModCount;\r\n } else {\r\n newPadv = null;\r\n }\r\n\r\n if (null != newPadv) {\r\n cachedPeerAdvDoc = (XMLDocument) cachedPeerAdv.getDocument(MimeMediaType.XMLUTF8);\r\n }\r\n }\r\n return cachedPeerAdvDoc;\r\n }", "public PeerID getPeerID() {\n return pid;\n }", "InetSocketAddress peerAddress();", "void addpeer(Node p) {\n\t\tpeers.add(p);\n\t}", "protected int numPeers() {\n\t\treturn peers.size();\n\t}", "int getPeerCount();", "public PeerClient getClient() {\n return client;\n }", "public List<PeerAddress> all() {\n final List<PeerAddress> all = new ArrayList<PeerAddress>();\n for (final Map<Number160, PeerStatistic> map : peerMapVerified) {\n synchronized (map) {\n for (PeerStatistic peerStatistic : map.values()) {\n all.add(peerStatistic.peerAddress());\n }\n }\n }\n return all;\n }", "public static Peers getPeers(String name) {\n\t\tPeers peers = new Peers(name);\n\t\tpeers.put(\"webgui\", \"WebGUI\", \"webgui\");\n\t\treturn peers;\n\t}", "public UniversalId getViewingPeerId() {\n return this.viewingPeerId;\n }", "public ArrayList<Peer> getDownloadablePeers() {\n\t\tArrayList<Peer> leechers = new ArrayList<Peer>();\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tif (p == null)\n\t\t\t\tcontinue;\n\t\t\tif (torrentStatus == STATE_DOWNLOAD_METADATA) {\n\t\t\t\tif (p.getClient().hasExtentionID(UTMetadata.NAME))\n\t\t\t\t\tleechers.add(p);\n\t\t\t} else {\n\t\t\t\tif (p.getClient().getBitfield().hasPieceCount() > 0 && !p.getMyClient().isChoked() && p.getFreeWorkTime() > 0)\n\t\t\t\t\tleechers.add(p);\n\t\t\t}\n\t\t}\n\t\treturn leechers;\n\t}", "java.util.List<java.lang.String>\n getPeerURLsList();", "private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }", "@Override\n\tpublic String getPeerName() {\n\t\treturn null;\n\t}", "@Override\n public ModuleImplAdvertisement getAllPurposePeerGroupImplAdvertisement() {\n JxtaLoader loader = getLoader();\n\n // For now, use the well know NPG naming, it is not identical to the \n // allPurpose PG because we use the class ShadowPeerGroup which \n // initializes the peer config from its parent.\n ModuleImplAdvertisement implAdv = loader.findModuleImplAdvertisement(PeerGroup.refNetPeerGroupSpecID);\n\n return implAdv;\n }", "void accountPeerAdded(String peerId);", "public PeeringGroupPeers peeringGroupPeers() {\n return this.peeringGroupPeers;\n }", "public List<BgpPeer> fabricBgpPeers() {\n return this.innerProperties() == null ? null : this.innerProperties().fabricBgpPeers();\n }", "public PersistentPeer getPeer (Object obj) throws NoPeerException {\n if (obj instanceof PersistentPeer) \n return (PersistentPeer) obj;\n else {\n try {\n Class c = Class.forName (obj.getClass().getName()+\"Peer\");\n return (PersistentPeer) c.newInstance();\n } catch (Exception e) {\n throw new NoPeerException (e.toString());\n }\n }\n }", "@Test(expected = ItemNotFoundException.class)\n public void testAddPeerUknownIp() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(NEW_PEER2_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "public interface RemoteCoordinator extends Remote, Identify {\n /**\n * a method to add a Peer to this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be added\n */\n void addPeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to remove a Peer from this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be removed\n */\n void removePeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to get the Uuid of a live Peer in this Coordinator's list of active Peers,\n * removing any dead Peers encountered along the way from the service\n *\n * @return the Uuid of a live Peer\n */\n Uuid getActivePeer() throws RemoteException, NotBoundException;\n\n /**\n * a method to get the list of active Peers from this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n *\n * @return the list of available Uuids from this RemoteCoordinator\n */\n List<Uuid> getActivePeers() throws RemoteException;\n\n /**\n * a method to set the map of active Peers for this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n */\n void setActivePeers(List<Uuid> activePeers) throws RemoteException;\n\n /**\n * a method to assign a JobId to a JobCoordinator\n * called by a User\n * delegates responsibility to its corresponding Coordinator method\n *\n * @param jobId the JobId of the Job being assigned\n * @return true if the job was successfully assigned, false otherwise\n * @throws RemoteException\n */\n boolean assignJob(JobId jobId) throws RemoteException;\n\n /**\n * a method to get an allocation of TaskManagers\n * called by a JobManager\n *\n * @param numRequested the number of TaskManagers being requested by the JobManager\n * @return a list of Uuids to be used by the calling JobManager as TaskManagers\n * @throws RemoteException\n */\n List<Uuid> getTaskManagers(int numRequested) throws RemoteException;\n}", "public PeerBuilder(final Number160 peerId) {\n\t\tthis.peerId = peerId;\n\t}", "@java.lang.Deprecated\n public java.util.Map<java.lang.String, java.lang.String>\n getMutablePeers() {\n return internalGetMutablePeers().getMutableMap();\n }", "final FontPeer getPeer_NoClientCode() {\n if(peer == null) {\n Toolkit tk = Toolkit.getDefaultToolkit();\n this.peer = tk.getFontPeer(name, style);\n }\n return peer;\n }", "public PeerStatistic getPeerStatistic(final PeerAddress peerAddress) {\n PeerStatistic peerStatistic;\n final int classMember = classMember(peerAddress.peerId());\n if (classMember == -1) {\n // -1 means we searched for ourself and we never are our neighbor\n return null;\n }\n\n // Try to find PeerStatistic in verified Map\n peerStatistic = peerMapVerified().get(classMember).get(peerAddress.peerId());\n\n // If that failed, look in the overflow map\n if (peerStatistic == null) {\n peerStatistic = peerMapOverflow().get(classMember).get(peerAddress.peerId());\n }\n\n return peerStatistic;\n\n }", "public PeerMap(final PeerMapConfiguration peerMapConfiguration) {\n this.self = peerMapConfiguration.self();\n if (self == null || self.isZero()) {\n throw new IllegalArgumentException(\"Zero or null are not a valid IDs\");\n }\n this.bagSizesVerified = peerMapConfiguration.getVerifiedBagSizes();\n this.bagSizesOverflow = peerMapConfiguration.getOverflowBagSizes();\n this.offlineCount = peerMapConfiguration.offlineCount();\n this.peerMapFilters = peerMapConfiguration.peerMapFilters();\n this.peerMapVerified = initMap(bagSizesVerified, false);\n this.peerMapOverflow = initMap(bagSizesOverflow, true);\n // bagSizeVerified * Number160.BITS should be enough\n this.offlineMap = new ConcurrentCacheMap<Number160, PeerAddress>(\n peerMapConfiguration.offlineTimeout(), totalNumberOfVerifiedBags());\n this.shutdownMap = new ConcurrentCacheMap<Number160, PeerAddress>(\n peerMapConfiguration.shutdownTimeout(), totalNumberOfVerifiedBags());\n this.exceptionMap = new ConcurrentCacheMap<Number160, PeerAddress>(\n peerMapConfiguration.exceptionTimeout(), totalNumberOfVerifiedBags());\n this.maintenance = peerMapConfiguration.maintenance().init(peerMapVerified, peerMapOverflow,\n offlineMap, shutdownMap, exceptionMap);\n this.peerVerification = peerMapConfiguration.isPeerVerification();\n this.peerStatisticComparator = peerMapConfiguration.getPeerStatisticComparator();\n\n }", "@Override\n public boolean peerFound(PeerAddress remotePeer, final PeerAddress referrer, final PeerConnection peerConnection, RTT roundTripTime) {\n LOG.debug(\"Peer {} is online. Reporter was {}.\", remotePeer, referrer);\n boolean firstHand = referrer == null;\n //if we got contacted by this peer, but we did not initiate the connection\n boolean secondHand = remotePeer.equals(referrer);\n //if a peer reported about other peers\n boolean thirdHand = !firstHand && !secondHand;\n // always trust first hand information\n if (firstHand) {\n offlineMap.remove(remotePeer.peerId());\n shutdownMap.remove(remotePeer.peerId());\n }\n \n if (secondHand && !peerVerification) {\n \tofflineMap.remove(remotePeer.peerId());\n shutdownMap.remove(remotePeer.peerId());\n }\n \n // don't add nodes with zero node id, do not add myself and do not add\n // nodes marked as bad\n if (remotePeer.peerId().isZero() || self().equals(remotePeer.peerId()) || reject(remotePeer)) {\n \tLOG.debug(\"peer Id is zero, self address, or simply rejected\");\n return false;\n }\n \n //if we have first hand information, that means we send a message to that peer and we received a reply. \n //So its not firewalled. This happens in the discovery phase\n if (remotePeer.unreachable()) {\n \tif(firstHand) {\n \t\tremotePeer = remotePeer.withUnreachable(false);\n \t} else {\n \t\tLOG.debug(\"peer is unreachable, reject\");\n \t\treturn false;\n \t}\n }\n \n final boolean probablyDead = offlineMap.containsKey(remotePeer.peerId()) || \n \t\tshutdownMap.containsKey(remotePeer.peerId()) || \n \t\texceptionMap.containsKey(remotePeer.peerId());\n \n\t\t// don't include secondHand as if we are contacted by an assumed offline\n\t\t// peer and we see the peer is there, assume the peer is not dead.\n\t\tif(thirdHand && probablyDead) {\n \tLOG.debug(\"Most likely offline, reject\");\n \treturn false;\n }\n \n final int classMember = classMember(remotePeer.peerId());\n\n // Update existing PeerStatistic with RTT info and potential new port\n final Pair<PeerStatistic,Boolean> old = updateExistingVerifiedPeerAddress(\n peerMapVerified.get(classMember), remotePeer, firstHand, roundTripTime);\n if (old != null && old.element1()) {\n // we update the peer, so we can exit here and report that we have\n // updated it.\n notifyUpdate(remotePeer, old.element0());\n LOG.debug(\"Update peer information\");\n return true;\n } else if (old != null && !old.element1()) {\n \tLOG.debug(\"Unreliable information, don't update\");\n \t//don't update, as we have second hand information that is not reliabel, we already have it, don't update\n \treturn false;\n }\n else {\n if (firstHand || (secondHand && !peerVerification)) {\n final Map<Number160, PeerStatistic> map = peerMapVerified.get(classMember);\n boolean inserted = false;\n synchronized (map) {\n // check again, now we are synchronized\n if (map.containsKey(remotePeer.peerId())) {\n return peerFound(remotePeer, referrer, peerConnection, roundTripTime);\n }\n if (map.size() < bagSizesVerified[classMember]) {\n final PeerStatistic peerStatistic = new PeerStatistic(remotePeer);\n peerStatistic.successfullyChecked();\n peerStatistic.addRTT(roundTripTime);\n map.put(remotePeer.peerId(), peerStatistic);\n inserted = true;\n }\n }\n\n if (inserted) {\n // if we inserted into the verified map, remove it from the non-verified map\n final Map<Number160, PeerStatistic> mapOverflow = peerMapOverflow.get(classMember);\n synchronized (mapOverflow) {\n mapOverflow.remove(remotePeer.peerId());\n }\n notifyInsert(remotePeer, true);\n LOG.debug(\"Peer inserted\");\n return true;\n }\n }\n }\n LOG.debug(\"Not rejected or inserted, add to overflow map\");\n // if we are here, we did not have this peer, but our verified map was full\n // check if we have it stored in the non verified map.\n final Map<Number160, PeerStatistic> mapOverflow = peerMapOverflow.get(classMember);\n synchronized (mapOverflow) {\n PeerStatistic peerStatistic = mapOverflow.get(remotePeer.peerId());\n if (peerStatistic == null) {\n peerStatistic = new PeerStatistic(remotePeer);\n }\n if (firstHand) {\n peerStatistic.successfullyChecked();\n peerStatistic.addRTT(roundTripTime);\n }\n if (thirdHand && roundTripTime != null) {\n peerStatistic.addRTT(roundTripTime.setEstimated());\n }\n mapOverflow.put(remotePeer.peerId(), peerStatistic);\n }\n\n notifyInsert(remotePeer, false);\n return true;\n }", "public void peerAdded(Response peer, List<String> pendingConnections) {\n String address = peer.getString(\"address\");\n if (peer.getString(\"version\").isEmpty()) {\n if (!pendingConnections.contains(address))\n pendingConnections.add(address);\n return;\n }\n State peerState = State.fromCode(peer.getInt(\"state\"));\n Response mapPeer = connectionMap.get(address);\n if (mapPeer == null) {\n connectionList.add(peer);\n connectionMap.put(address, peer);\n if (peerState == State.CONNECTED)\n activeCount++;\n fireTableRowsInserted(connectionList.size()-1, connectionList.size()-1);\n } else {\n State mapState = State.fromCode(mapPeer.getInt(\"state\"));\n if (mapState == State.CONNECTED && peerState != State.CONNECTED)\n activeCount--;\n else if (mapState != State.CONNECTED && peerState == State.CONNECTED)\n activeCount++;\n int row = connectionList.indexOf(mapPeer);\n connectionList.set(row, peer);\n connectionMap.put(address, peer);\n fireTableRowsUpdated(row, row);\n }\n }", "Set<String> getPeerSnapshot();", "public static ResolverService createInstance(Peer peer, EndpointService epService)\n {\n if (resService == null)\n {\n resService = new ResolverService(peer, epService);\n }\n return resService;\n }", "@Override\n default ManagerPrx ice_connectionCached(boolean newCache)\n {\n return (ManagerPrx)_ice_connectionCached(newCache);\n }", "private void readPeers() {\n\t\tif(peersFile.exists()) {\n\t\t\ttry {\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(peersFile));\n\t\t\t\tString line = reader.readLine();\n\t\t\t\tint lineNumber = 1;\n\t\t\t\twhile(line != null && peers.size() < maximumConnections) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress candidate = InetAddress.getByName(line);\n\t\t\t\t\t\tcheckPeer(candidate);\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\tString logMsg = String.format(\"Invalid host address \\\"%s\\\" in file %s at line number %d\", line, peersFile.getName(), lineNumber);\n\t\t\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t\t\t}\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t\tlineNumber++;\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e1) {\n\t\t\t\tString logMsg = String.format(\"Peer file %s not found\", peersFile.getName());\n\t\t\t\tDecentLogger.write(logMsg);\n\t\t\t} \n\t\t\tcatch (IOException e1) {\n\t\t\t\tDecentLogger.write(\"Unable to read file due to \"+e1.getMessage());\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttry {\n\t\t\t\tpeersFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public ProtocolProviderService getProtocolProvider()\n {\n return providerService;\n }", "public MmeDiameterPeer() {\n super(Epc.NAMESPACE, \"mme-diameter-peer\");\n }", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public String getPeerID() {\n\t\t//return this.localPeer.getPeerID();\n\t\treturn \"\";\n\t}", "private void attachServerPeer(DiameterRequestFacade request) {\n\t\tif (request != null && request.getServerPeer() == null) {\n\t\t\tLocalPeer localPeer = Utils.getClientLocalPeer(request.getHandlerName());\n\t\t\trequest.setServerPeer(localPeer);\n\t\t}\n\t}", "public interface DiscoverPeersListener {\n\n\t/**\n\t * Called when P2P is discovered to not be enabled.\n\t */\n\tvoid onP2pNotEnabled();\n\n\t/**\n\t * Called when discoverPeers() is successful.\n\t */\n\tvoid onDiscoverPeersSuccess();\n\n\t/**\n\t * Called when discoverPeers() has failed.\n\t * @param reasonCode code for failure reason\n\t */\n\tvoid onDiscoverPeersFailure(final int reasonCode);\n}", "public CallPeerAdapter(CallPeer callPeer, CallPeerRenderer renderer)\n {\n this.callPeer = callPeer;\n this.renderer = renderer;\n }", "@Override\n default ManagerPrx ice_oneway()\n {\n return (ManagerPrx)_ice_oneway();\n }", "@Test\n public void testGetPeerAddresses() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n List<IpAddress> expectedAddresses = new ArrayList<>();\n expectedAddresses.add(IpAddress.valueOf(PEER_IP));\n expectedAddresses.add(IpAddress.valueOf(NEW_PEER1_IP));\n Collections.sort(expectedAddresses);\n\n List<IpAddress> actualAddresses =\n peerManager.getPeerAddresses(bgpConfig);\n Collections.sort(actualAddresses);\n\n assertEquals(expectedAddresses, actualAddresses);\n }", "@Override\n public NodeInfo getNodeInfo() {\n NodeInfo nodeInfo = new NodeInfo(this.nodeProbe.isGossipRunning(), this.nodeProbe.isThriftServerRunning(),\n this.nodeProbe.isNativeTransportRunning(), this.nodeProbe.getUptime(),\n this.nodeProbe.getExceptionCount());\n return nodeInfo;\n }", "public ProfileService() {\n \t\tthis(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);\n \t\tinitializeCache(DEFAULT_CACHE_SIZE);\n \t}" ]
[ "0.73273754", "0.67700213", "0.6727092", "0.6378835", "0.6288501", "0.6251302", "0.6225444", "0.61011285", "0.60933864", "0.6079025", "0.60548717", "0.59932965", "0.59038275", "0.5858335", "0.58468235", "0.58022255", "0.58008665", "0.58008665", "0.57141405", "0.56914896", "0.56127524", "0.5596542", "0.5558305", "0.5554379", "0.5554379", "0.55197126", "0.5451741", "0.5427152", "0.5425873", "0.54178786", "0.5406944", "0.5351533", "0.534997", "0.53429943", "0.53299856", "0.53271705", "0.53027225", "0.5297029", "0.5289056", "0.5273813", "0.52489704", "0.52382666", "0.5231381", "0.52261543", "0.52256995", "0.52228844", "0.519948", "0.5195573", "0.5190892", "0.51897687", "0.5188654", "0.5166689", "0.51585364", "0.5156039", "0.5150853", "0.514294", "0.51395386", "0.5138858", "0.51251537", "0.51231354", "0.5122786", "0.51105005", "0.5086455", "0.5075566", "0.5050568", "0.50478673", "0.50437593", "0.5043218", "0.5035282", "0.5026484", "0.5018002", "0.49982694", "0.49963", "0.497835", "0.4939237", "0.4934783", "0.4923036", "0.4916973", "0.49028474", "0.4898907", "0.48983794", "0.48881364", "0.48584935", "0.48557258", "0.48465747", "0.48400444", "0.48369655", "0.4836246", "0.48332733", "0.4831426", "0.48305625", "0.48174956", "0.4814137", "0.48137218", "0.4809016", "0.4802961", "0.4797228", "0.47963744", "0.4789039", "0.47836417" ]
0.6082269
9
Created by JarryLeo on 2017/4/14.
public interface PresenterAPI { @GET(NetConfig.NEWS_LIST) Observable<TestBean> getNewsList(@Query("access_token") String access_token, @Query("catalog") int catalog, @Query("dataType") String dataType, @Query("page") int page, @Query("pageSize") int pageSize); @POST(NetConfig.NEWS_LIST) Observable<TestBean> getPosts(); /* @GET(NetConfig.BASE_URL) Observable<TestBean> requestNewsPicData(@Query("param") int param); @FormUrlEncoded @POST(NetConfig.BASE_URL) Observable<ResponseBody> Test1(@Field("param") String param); @FormUrlEncoded @POST(NetConfig.BASE_URL) Observable<ResponseBody> Test2(@FieldMap HashMap<String, String> params);*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "public final void mo51373a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {}", "@Override\n protected void initialize() \n {\n \n }", "private void init() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo38117a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "public void mo4359a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "Consumable() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n\tpublic void jugar() {}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void initialize() {\n \n }", "Petunia() {\r\n\t\t}" ]
[ "0.5951203", "0.5773243", "0.5709568", "0.56618774", "0.5659796", "0.5659796", "0.55844736", "0.5516783", "0.5504042", "0.54812396", "0.5478956", "0.5477139", "0.5473878", "0.5471511", "0.546679", "0.54613835", "0.5453223", "0.5418436", "0.54168576", "0.5413432", "0.540823", "0.54063517", "0.5398515", "0.53873193", "0.5379913", "0.5375907", "0.5363484", "0.5363484", "0.5363484", "0.5363484", "0.5363484", "0.5360521", "0.5360521", "0.5360521", "0.5360521", "0.5360521", "0.5360521", "0.5334396", "0.53213114", "0.5319906", "0.53063995", "0.52827966", "0.5280206", "0.52741003", "0.5273899", "0.5270187", "0.5270187", "0.5268488", "0.526718", "0.5260737", "0.5260737", "0.52606297", "0.52590364", "0.52590364", "0.52590364", "0.52533036", "0.52533036", "0.5227797", "0.5227569", "0.52238643", "0.5222404", "0.5221715", "0.52083087", "0.52076364", "0.520469", "0.520203", "0.520203", "0.520203", "0.51993036", "0.51993036", "0.51993036", "0.5193732", "0.51927096", "0.51876855", "0.51834893", "0.51764256", "0.5175953", "0.5175938", "0.51751775", "0.51751775", "0.51751775", "0.51602966", "0.51585984", "0.51528263", "0.515211", "0.5151099", "0.515099", "0.5137789", "0.5136681", "0.5126686", "0.5119756", "0.5119721", "0.5119721", "0.5119721", "0.5119721", "0.5119721", "0.5119721", "0.5119721", "0.5117379", "0.51165414", "0.51159877" ]
0.0
-1
Constructor used by UIBinder to create widgets with content.
public IronFlexLayout(String html) { super(IronFlexLayoutElement.TAG, IronFlexLayoutElement.SRC, html); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init()\n {\n buildUI(getContentPane());\n }", "private UI()\n {\n this(null, null);\n }", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public BridgingUI() {\n initComponents();\n initUserActions();\n }", "protected TWidget() {\n children = new ArrayList<TWidget>();\n }", "public Widget() {\r\n\t\t\r\n\t\twidgets = new LinkedHashMap<Component, String>();\r\n\t\t\r\n\t}", "public Ui() { }", "public UiFactoryImpl() {\n\t\tsuper();\n\t}", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "@Override\n\tprotected void initContentView() {\n\t\t\n\t}", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "protected void createControl() {\n\t\tGridLayout layout = new GridLayout(1, true);\n\t\tsetLayout(layout);\n\t\tsetLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\tComposite nameGroup = new Composite(this, SWT.NONE);\n\t\tlayout = new GridLayout();\n\t\tlayout.numColumns = 2;\n\t\tnameGroup.setLayout(layout);\n\t\tnameGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n\t\tLabel label = new Label(nameGroup, SWT.NONE);\n\t\tlabel.setText(PHPServerUIMessages\n\t\t\t\t.getString(\"ServerCompositeFragment.nameLabel\")); //$NON-NLS-1$\n\t\tGridData data = new GridData();\n\t\tlabel.setLayoutData(data);\n\n\t\tname = new Text(nameGroup, SWT.BORDER);\n\t\tdata = new GridData(GridData.FILL_HORIZONTAL);\n\t\tname.setLayoutData(data);\n\t\tname.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (getServer() != null)\n\t\t\t\t\tmodifiedValuesCache.serverName = name.getText();\n\t\t\t\tvalidate();\n\t\t\t}\n\t\t});\n\t\tcreateURLGroup(this);\n\t\tinit();\n\t\tvalidate();\n\n\t\tDialog.applyDialogFont(this);\n\n\t\tname.forceFocus();\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "public Ui() {\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "private void createWidgets() {\n\t\tgrid = new GridPane();\n\t\ttxtNickname = new TextField();\n\t\ttxtPort = new TextField();\n\t\ttxtAdress = new TextField();\n\n\t\tlblNick = new Label(\"Nickname\");\n\t\tlblNickTaken = new Label();\n\t\tlblPort = new Label(\"Port\");\n\t\tlblAdress = new Label(\"Adress\");\n\t\tlblCardDesign = new Label(\"Carddesign\");\n\n\t\tbtnLogin = new Button(\"\");\n\t\timageStart = new Image(BTNSTARTWOOD, 85, 35, true, true);\n\t\timvStart = new ImageView();\n\n\t\tcardDesignOptions = FXCollections.observableArrayList(\n\t\t\t\t\"original design\", \"pirate design\", \"graveyard design\");\n\t\tcomboBoxCardDesign = new ComboBox<String>(cardDesignOptions);\n\n\t\tcomboBoxCardDesign\n\t\t\t\t.setCellFactory(new Callback<ListView<String>, ListCell<String>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic ListCell<String> call(ListView<String> list) {\n\t\t\t\t\t\treturn new ExtCell();\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t}", "public UI() {\n initComponents();\n }", "private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }", "@Override\n\tprotected Control createContents(Composite arg0) {\n\t\treturn null;\n\t}", "protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }", "private void setupUI() \n\t{\n\t\t\n\t\tthis.setLayout( new FormLayout() );\n\t\tmyInterfaceContainer = new Composite( this, SWT.NONE );\n\t\tmyInterfaceContainer.setLayoutData( FormDataMaker.makeFullFormData());\n\t\t\n\t\tsetupInterfaceContainer();\n\t}", "public Widget() {\n /*\n * THIS - You can use the \"this\" keyword as a method too, which will call the appropriate\n * constructor. This lets you reuse the initialization code you have written in a different\n * constructor.\n */\n this(\"Widget\");\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "public MetadataPanel()\n {\n fieldMap = new HashMap<String, Component>();\n initialiseUI();\n }", "private void initUI() {\n }", "protected void buildUi() {\n\t\t\t LatLng cawkerCity = LatLng.newInstance(39.509, -98.434);\n\t\t\n\t\t\t map = new MapWidget(cawkerCity, 2);\n\t\t\t map.setSize(\"100%\", \"100%\");\n\t\t\t // Add some controls for the zoom level\n\t\t\t map.addControl(new LargeMapControl());\n\t\t\n\t\t\t // Add a marker\n\t\t\t map.addOverlay(new Marker(cawkerCity));\n\t\t\n\t\t\t // Add an info window to highlight a point of interest\n\t\t\t map.getInfoWindow().open(map.getCenter(),\n\t\t\t new InfoWindowContent(\"World's Largest Ball of Sisal Twine\"));\n\t\t\n\t\t\t root.addNorth(map, 500);\n\n\t}", "protected CayenneWidgetFactory() {\n super();\n }", "public SearchBookUI()\n { \n \n addComponent(searchBar);\n addComponent(bookTable);\n addComponent(addBookButton);\n addComponent(errorLabel);\n //Set button on listening mode\n setUpSearchBar();\n\n //Textfield\n searchText.setInputPrompt(\"Search\");\n \n //Set all the table attributes\n setUpTable();\n \n //Set up add button\n setUpAddBookButton();\n \n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "private HelloPanel() {\n\n\t\tHTML w = new HTML(BalasResources.INSTANCE.helloPane().getText());\n\t\tinitWidget(w);\n\t}", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "@Override\n\tprotected View initContentView(Context context)\n\t{\n\n\t\tmContainer = new FrameLayout(mContext);\n\t\treturn mContainer;\n\t}", "public UI() \n {\n // initiate attributs\n loadedDictionaryFilename = \"\";\n lexiNodeTrees = new ArrayList<>();\n \n // initiate window component\n initComponents();\n setTitle(\"Dictio\");\n \n // empty lists\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n this.getAllWordsList().setModel( new DefaultListModel() );\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n configureDefaultCommands();\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n setDefaultCommands();\n }", "protected Composite createContent(Composite parent) {\n\t\tComposite c = new Composite(parent, SWT.NONE);\n\t\tc.setLayout(new FillLayout());\n\t\treturn c;\n\t}", "public AdminUI() {\n initComponents();\n wdh=new WebDataHandler();\n initList();\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "public LdBsPublisherBhv() {\r\n }", "public RummyUI(){\n \n //Call method initComponents\n initComponents();\n \n }", "protected void createContents() {\n\n\t}", "private void initUI() {\n\t\tfileInputPanel.setLayout(new GridBagLayout());\n\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\t\tgridBagConstraints.anchor = GridBagConstraints.NORTH;\n\t\tgridBagConstraints.gridwidth = 2;\n\n\t\tJLabel title = new JLabel(\"Welcome to ANNie\");\n\t\ttitle.setFont(new Font(\"Serif\", Font.BOLD, 36));\n\n\t\tfileInputPanel.add(title, gridBagConstraints);\n\n\t\tgridBagConstraints.gridwidth = 1;\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\n\t\tfileInputPanel.setBorder(BorderFactory.createLineBorder(Color.black));\n\n\t\tcreateFileDropdownArea(gridBagConstraints);\n\t\tcreateLabelSelectArea(gridBagConstraints);\n\t\tcreateButtons(gridBagConstraints);\n\t}", "public HealthUI() {\n init();\n }", "@Override\n public void Create() {\n\n initView();\n }", "public Library() {\n\n\t\tsuper(\"Library\");\n\n\t\tsetSize(600, 900);\n\t\tsetLayout(new GridLayout(3,1));\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tcreateWidgets();\n\n\t\tsetVisible(true);\n\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "public UI() {\n initComponents();\n setResizable(false);\n }", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "public Content() {\n\t}", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n }", "public userinterface() {\n initComponents();\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected abstract void createNestedWidgets();", "public Gui() {\n this.baseDir = Utils.getBaseDir(Gui.this);\n try {\n UIManager.setLookAndFeel(prefs.get(\"lookAndFeel\", UIManager.getSystemLookAndFeelClassName()));\n } catch (Exception e) {\n // keep default LAF\n logger.log(Level.WARNING, e.getMessage(), e);\n }\n bundle = ResourceBundle.getBundle(\"net.sourceforge.tessboxeditor.Gui\"); // NOI18N\n initComponents();\n\n boxPages = new ArrayList<TessBoxCollection>();\n\n // DnD support\n new DropTarget(this.jSplitPaneEditor, new FileDropTargetListener(Gui.this, this.jSplitPaneEditor));\n\n this.addWindowListener(\n new WindowAdapter() {\n\n @Override\n public void windowClosing(WindowEvent e) {\n quit();\n }\n\n @Override\n public void windowOpened(WindowEvent e) {\n updateSave(false);\n setExtendedState(prefs.getInt(\"windowState\", Frame.NORMAL));\n populateMRUList();\n }\n });\n\n setSize(\n snap(prefs.getInt(\"frameWidth\", 500), 300, screen.width),\n snap(prefs.getInt(\"frameHeight\", 360), 150, screen.height));\n setLocation(\n snap(\n prefs.getInt(\"frameX\", (screen.width - getWidth()) / 2),\n screen.x, screen.x + screen.width - getWidth()),\n snap(\n prefs.getInt(\"frameY\", screen.y + (screen.height - getHeight()) / 3),\n screen.y, screen.y + screen.height - getHeight()));\n\n KeyEventDispatcher dispatcher = new KeyEventDispatcher() {\n\n @Override\n public boolean dispatchKeyEvent(KeyEvent e) {\n if (e.getID() == KeyEvent.KEY_PRESSED) {\n if (e.getKeyCode() == KeyEvent.VK_F3) {\n jButtonFind.doClick();\n }\n }\n return false;\n }\n };\n DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(dispatcher);\n }", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "public UI() {\r\n\t\tsetPreferredSize(new Dimension(1100, 720));\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(chatPanel(), BorderLayout.CENTER);\r\n\t\tadd(serverPanel(), BorderLayout.EAST);\r\n\t\taddListeners();\r\n\t}", "public WidgetPanel() {\n\n // setup the master panel\n HorizontalPanel outer = new HorizontalPanel();\n HorizontalPanel border = new HorizontalPanel();\n border.setStyleName(\"WidgetPanelBorder\");\n border.setHeight(\"100%\");\n outer.add(border);\n\n // setup the widgets panel\n widgets.setStyleName(\"WidgetPanel\");\n widgets.setHeight(\"100%\");\n outer.add(widgets);\n \n // init the outer panel\n initWidget(outer);\n }", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}", "protected abstract void initContentView(View view);", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "private void createUIComponents() {\n editor = createEditor(project, document);\n splitter = new JBSplitter(0.4f);\n ((JBSplitter) splitter).setFirstComponent(editor.getComponent());\n// ((JBSplitter) splitter).setSecondComponent();\n }", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "public TodoGUI() {\r\n todoChooserGui();\r\n }", "public void init() {\r\n this.getChildren().clear();\r\n \r\n setAlignment(Pos.TOP_CENTER);\r\n setVgap(10);\r\n setHgap(10);\r\n setPadding(new Insets(25, 25, 25, 25));\r\n \r\n descriptionField.setMaxWidth(250);\r\n \r\n add(titleLabel, 0, 0);\r\n add(titleField, 1, 0);\r\n \r\n add(descLabel, 0, 1);\r\n add(descriptionField, 1, 1);\r\n \r\n add(urlLabel, 0, 2);\r\n add(urlField, 1, 2);\r\n \r\n add(addLabel, 0, 3);\r\n add(addIntensityBox, 1, 3);\r\n \r\n add(moviesLabel, 0, 4);\r\n add(includesMoviesBox, 1, 4);\r\n \r\n add(showsLabel, 0, 5);\r\n add(includesShowsBox, 1, 5);\r\n \r\n add(loginLabel, 0, 6);\r\n add(requiresLoginBox, 1, 6);\r\n \r\n \r\n add(addMovieSiteButton, 1, 7);\r\n \r\n addMovieSiteButton.setOnAction(e -> {\r\n String name = titleField.getText();\r\n String desc = descriptionField.getText();\r\n String url = urlField.getText();\r\n \r\n String addText = addIntensityBox.getText();\r\n \r\n int addIntensity = Integer.parseInt(addText.isEmpty() ? \"0\" : addText );\r\n boolean movies = includesMoviesBox.isSelected();\r\n boolean shows = includesShowsBox.isSelected();\r\n boolean login = requiresLoginBox.isSelected();\r\n \r\n if (name.matches(\"(\\\\p{L}){4,}\") && url.matches(\"www\\\\.[a-z0-9A-Z]{2,}\\\\.[a-z]+\")) {\r\n new MovieSite(name, desc, url, addIntensity, movies, shows, login);\r\n \r\n controller.getMainAppView().onMovieSitesClick(new ActionEvent());\r\n } else {\r\n \r\n controller.alert(\"Chyba\", \"\", \"Vyplňte alespoň název (alespoň 4 znaky a bez mezer) a url stránky (ve tvaru www.[jméno].[doména]!\");\r\n }\r\n \r\n \r\n \r\n \r\n });\r\n }", "@Override\n public void initView() {\n }", "public Ui() {\n this.sc = sc;\n }", "private void createWidgets() {\n\n\t\tJPanel filmPanel = createFilmPanel();\n\t\tJPanel musicPanel = createMusicPanel();\n\t\tJPanel unclassPanel = createUnclassifiedPanel();\n\n\t\tthis.add(filmPanel);\n\t\tthis.add(musicPanel);\n\t\tthis.add(unclassPanel);\n\t}", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "private void init() {\n\t\tcreateSubjectField();\n\t\tcreateTextField();\n\t\tcreateButton();\n\t\tsetupSubjectPanel();\n\t\tsetupToDoPanel();\n\n\t\tsetBorder(BorderFactory.createTitledBorder(\"To Do List\"));\n\t\tsetLayout(new BorderLayout());\n\t\tadd(pnlSubject, BorderLayout.NORTH);\n\t\tadd(scroll, BorderLayout.CENTER);\n\t\tadd(pnlButton, BorderLayout.SOUTH);\n\t}", "public WidgetRenderer() {\r\n super(\"\");\r\n setUIID(\"ListRenderer\");\r\n }", "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "protected void setupUI() {\r\n this.setLayout(new GridLayout((this.needDefaultValue) ? 3 : 2, 2));\r\n\r\n this.nameLabel = new JLabel(this.nameLabelText);\r\n this.add(this.nameLabel);\r\n this.add(this.nameTextField);\r\n\r\n this.typeLabel = new JLabel(this.typeLabelText);\r\n this.add(this.typeLabel);\r\n this.add(this.typeDropDown);\r\n\r\n if (this.needDefaultValue) {\r\n this.defValLabel = new JLabel(this.defValLabelText);\r\n this.add(this.defValLabel);\r\n this.add(this.defValueTextField);\r\n }\r\n }", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "public MainWindow() {\n\t\t\tthis.initUI();\n\t\t\t\n\t\t}", "public WidgetManager()\n {\n fEditingMode = null;\n fPickingEngine = null;\n fPickingRenderer = null;\n fPickingRenderingEngine = null;\n fRenderer = new WidgetJOGLRenderer(new SimpleJOGLRenderer());\n fRenderingEngine = null;\n fScene = null;\n fWidgets = new HashMap<EditingMode, Widget>();\n fWidgetScene = null;\n }", "private void initUI() {\n tvQuote = (TextView) findViewById(R.id.tvQuote);\n tvBeginButton = (TextView) findViewById(R.id.tvBeginButton);\n\n tvBeginButton.setOnClickListener(this);\n\n loadBackground();\n }", "public ItemsControl() {\t\t\t\t\n\t\tlistListener = new SourceListChangeListener();\n\n\t\tBoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);\n\t\tsetLayout(boxLayout);\t\t\t\t\n\t\tif (Beans.isDesignTime()) {\t\t\t\n\t\t\tJLabel designTimeCaptionLbl = new JLabel(\"<ItemsControl>\");\t\t\t\t\t\t\n\t\t\tthis.add(designTimeCaptionLbl);\n\t\t}\n\t}", "public TextFieldPage() {\n initView();\n }", "private UIManager() {\n tableUI = new TableUI();\n snifferUI = new SnifferUI();\n }", "public NavigationPanel()\n\t{\n\t\tmakeContent();\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n content.setLayout(new BorderLayout(0, 0));\n content.setMinimumSize(new Dimension(1024, 576));\n content.setPreferredSize(new Dimension(1024, 576));\n panel1.setLayout(new BorderLayout(0, 0));\n content.add(panel1, BorderLayout.SOUTH);\n panel1.setBorder(BorderFactory.createTitledBorder(null, \"\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n dwadawdTextField = new JTextField();\n dwadawdTextField.setText(\"dwadawd\");\n panel1.add(dwadawdTextField, BorderLayout.CENTER);\n button1 = new JButton();\n button1.setText(\"Button\");\n panel1.add(button1, BorderLayout.EAST);\n panel2 = new JPanel();\n panel2.setLayout(new BorderLayout(0, 0));\n content.add(panel2, BorderLayout.CENTER);\n final JScrollPane scrollPane1 = new JScrollPane();\n panel2.add(scrollPane1, BorderLayout.CENTER);\n textPane1 = new JTextPane();\n scrollPane1.setViewportView(textPane1);\n }", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}", "private void createUIComponents() {\n }" ]
[ "0.6833463", "0.64252293", "0.6385592", "0.63160866", "0.6310404", "0.6279561", "0.62508816", "0.6249361", "0.6245879", "0.6184259", "0.6161801", "0.61551535", "0.61451125", "0.6138221", "0.6125455", "0.61223596", "0.6115946", "0.6102598", "0.60831493", "0.6069266", "0.6026441", "0.6001882", "0.5962057", "0.5956192", "0.5952326", "0.59451836", "0.59446925", "0.594185", "0.5939885", "0.59245944", "0.5922048", "0.59142876", "0.5907299", "0.5894809", "0.58681345", "0.5860989", "0.5852567", "0.5839435", "0.58387804", "0.5837585", "0.5836262", "0.5835331", "0.5823257", "0.5822502", "0.58192354", "0.5817211", "0.57933146", "0.5786843", "0.5783556", "0.5783546", "0.57817537", "0.5773614", "0.5768234", "0.57641125", "0.57641125", "0.5763418", "0.5760817", "0.5760817", "0.57598984", "0.5755737", "0.57534415", "0.57472265", "0.57456267", "0.5745022", "0.57449555", "0.5736373", "0.57363284", "0.5733964", "0.5733053", "0.57325536", "0.57281655", "0.57244766", "0.5724069", "0.5716131", "0.5708291", "0.57022274", "0.57009524", "0.57004553", "0.57001966", "0.56960094", "0.56926405", "0.5688588", "0.56817466", "0.5681622", "0.56737024", "0.5672737", "0.5670846", "0.5670425", "0.5666925", "0.56646305", "0.5658824", "0.5656303", "0.5652955", "0.5652226", "0.564978", "0.56494427", "0.56483245", "0.56467974", "0.56467974", "0.56464446", "0.5644507" ]
0.0
-1
Gets a handle to the Polymer object's underlying DOM element.
public IronFlexLayoutElement getPolymerElement() { return (IronFlexLayoutElement) getElement(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native Element getEl() /*-{\r\n\t\tvar proxy = [email protected]::getJsObj()();\r\n\t\tvar el = proxy.getEl();\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(el);\r\n\t}-*/;", "public DomElement getDomElement() {\r\n\t\treturn domElement;\r\n\t}", "public PaperInputElement getPolymerElement() {\n return (PaperInputElement) getElement();\n }", "@Override\n\tpublic final Element getDocumentElement() {\n\t\treturn LocalDom.nodeFor(getDocumentElement0());\n\t}", "@DISPID(1001)\n @PropGet\n ms.html.IHTMLElement element();", "@Property Element getDocumentElement();", "public Element getElement() {\n return super.getElement();\n }", "public Element getElement() {\n if (view != null) {\n return view.getElement();\n }\n return editor.getDocument().getDefaultRootElement();\n }", "public Element getHTMLElement() {\n\t\treturn this.mHTMLElement;\n\t}", "public org.w3c.dom.Element getElement() {\n return element;\n }", "public WebElement getElement() {\n\t\treturn null;\r\n\t}", "final public Element getElement() {\n return element;\n }", "public Object getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "public Object getElement()\r\n\t\t{ return element; }", "public final native Element getDiv() /*-{\n return this.getDiv();\n }-*/;", "Object getComponent(WebElement element);", "Element getElement();", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "public Element getElement() {\r\n\t\treturn element;\r\n\t}", "@Property DOMImplementation getImplementation();", "public I_Element getElement() {\n\t\treturn element;\n\t}", "public T getElement() {\n\t\treturn element;\n\t}", "public Object getElement();", "public T getElement() {\n return element;\n }", "public Element element() {\n\t\treturn _element;\n\t}", "public Element getElement()\n {\n return m_Element;\n }", "public E getElement() {\r\n return element;\r\n }", "public E getElement() { return element; }", "W getRootElement();", "public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}", "public DOMImplementation getDOMImplementation() {\n\t\treturn DOMImplementationImpl.getDOMImplementation();\n\t}", "@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}", "DiagramElement getDiagramElement();", "@Override\r\n\tpublic Widget getWidget() {\n\t\treturn asWidget();\r\n\t}", "public String getElement() { return element; }", "Elem getElem();", "public T getElement()\n {\n\n return element;\n }", "Object element();", "Object element();", "@Override\n\t\tpublic WebElementFacade getUniqueElementInPage() {\n\t\t\treturn null;\n\t\t}", "public SVGElement getUsedFromElement()\n {\n int elementHandle = _getUsedFromElement(\n getNativeSVGProxyHandle(),\n getHandle());\n if (M2GObject.checkHandle(elementHandle))\n {\n return M2GSVGElement.buildElement(elementHandle, iDocument);\n }\n return null;\n }", "public FlowElement getElement() {\n return element;\n }", "public Element getElement() {\n/* 78 */ return this.e;\n/* */ }", "public PresentationNotesElement getOdfElement() {\n\t\treturn maNoteElement;\n\t}", "Element getGenericElement();", "public String getElementReferenceIdentifier() {\n return this.toString();\n }", "Element asElement();", "public String getElementId() {\n return elementId;\n }", "@DISPID(-2147418104)\n @PropGet\n ms.html.IHTMLElement parentElement();", "HTMLElement createHTMLElement();", "ViewElement getViewElement();", "@DISPID(1033)\n @PropGet\n ms.html.ISVGSVGElement ownerSVGElement();", "Element getElement() {\n\t\tElement result = element.clone();\n\t\tresult.setName(table.getName());\n\t\treturn result;\n\t}", "public native ExtElement getGhost() /*-{\r\n\t\tvar proxy = [email protected]::getJsObj()();\r\n\t\tvar ghost = proxy.getGhost();\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(ghost);\r\n\t}-*/;", "UmlElement getUmlElement();", "public String getEl() {\r\n\t\treturn el;\r\n\t}", "Elem getPointedElem();", "@DISPID(-2147417084)\n @PropGet\n java.lang.String outerHTML();", "public T getElement();", "public final int getElementId() {\n return elementId;\n }", "public final Element getContainer() {\n\t\treturn impl.getContainer();\n }", "public Elemento getElemento() {\n\t\treturn elemento;\n\t}", "public Object element() { return e; }", "public T get() {\n return element;\n }", "public GraphElement getElement() {\n return this.element;\n }", "public Element getElement() {\n return table;\n }", "public Object getElement()\n {return data;}", "public final native Element node()/*-{\n\t\treturn this.node();\n\t}-*/;", "public ElementId getElementId() {\n\t\treturn elementId;\n\t}", "public Element getDocument() {\n\t\t\n\t\tElement retval = getRoot();\n\t\t\n\t\tList<Element> children;\n\t\t\n\t\tif ( retval.getName().equals(\"ROOT\") && (children = retval.getAllChildren()).size() > 0 )\n\t\t\tretval = children.get(0);\n\t\t\n\t\treturn retval;\n\n\t}", "@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}", "public Element getRootElement() {\r\n \r\n assert iRootElement!=null;\r\n \r\n return iRootElement;//here you go\r\n \r\n }", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "public ResourceReferenceDt getAttachmentElement() { \n\t\tif (myAttachment == null) {\n\t\t\tmyAttachment = new ResourceReferenceDt();\n\t\t}\n\t\treturn myAttachment;\n\t}", "@Override\r\n\tpublic WebElement getRootElement() {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic E element() {\n\t\treturn null;\r\n\t}", "public T getRootElement();", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;", "@JsProperty\n Element getParentElement();", "public String elementName() {\n return _element;\n }", "public String elementName() {\n return _element;\n }", "public static SVGElement buildElement(int aElementHandle, M2GDocument aDocument)\n {\n // Check native handle\n if (!M2GObject.checkHandle(aElementHandle) || (aDocument == null))\n {\n return null;\n }\n\n // Check if the element already exists\n SVGElement svgElement = aDocument.findLiveElement(new Integer(aElementHandle));\n if (svgElement != null)\n {\n return svgElement;\n }\n\n String typeName = M2GSVGElement.getElementTypeName(aElementHandle, aDocument);\n\n if (M2GSVGConstants.isRootElement(typeName))\n {\n svgElement = M2GSVGSVGElement.buildRootElement(aDocument);\n }\n else if (M2GSVGConstants.isLocatableElement(typeName))\n {\n svgElement = new M2GSVGLocatableElement(aElementHandle, aDocument);\n }\n else if (M2GSVGConstants.isAnimatableElement(typeName))\n {\n svgElement = new M2GSVGAnimationElement(aElementHandle, aDocument);\n }\n else\n {\n\n String id = M2GSVGElement._getStringTrait(\n M2GManager.getInstance().getSVGProxyHandle(),\n aElementHandle,\n M2GSVGConstants.AT_ID);\n if ((id != null) && id.equals(\"text_use_svg_default_font\"))\n {\n return buildElement(\n M2GSVGElement._getNextElementSibling(\n aDocument.getNativeSVGProxyHandle(), aElementHandle),\n aDocument);\n }\n else\n {\n svgElement = new M2GSVGElement(aElementHandle, aDocument);\n }\n }\n aDocument.registerLiveElement(svgElement, new Integer(aElementHandle));\n return svgElement;\n }", "JComponent getImpl();", "public JComponent getWidget() {\n return itsComp;\n }", "EObject getDiagrammableElement();", "String getElement();", "private Element getElement(String elementName) {\n if (getModel() == null) {\n return null;\n }\n return getModel().getActiveRange().getElement(elementName);\n }", "public String getElementId();", "static DocumentRemote get() {\n\t\tif (GWT.isScript()) {\n\t\t\treturn nativeGet();\n\t\t}\n\t\t// No need to be MT-safe. Single-threaded JS code.\n\t\tif (doc == null) {\n\t\t\tdoc = nativeGet();\n\t\t}\n\t\treturn doc;\n\t}", "private Element get() {\n return new MockElement();\n }", "public Widget asWidget();", "public E element();", "@Override\n\t\tpublic E getElement() throws IllegalStateException {\n\t\t\treturn element;\n\t\t}", "public AbstractDNode getOriginalElement() {\n return element;\n }", "public String getElementName()\n {\n return ELEMENT_NAME;\n }", "public String getTagName() {\n return \"element\";\n }", "public WebElement getWeb() {\n\t\treturn Utils.waitForElementPresence(driver, By.name(\"uri\"), 10);\n\t}", "String getElem();" ]
[ "0.706357", "0.67579204", "0.67422116", "0.65623987", "0.65209085", "0.6290928", "0.6263811", "0.62590784", "0.62307453", "0.6195329", "0.61947477", "0.61862516", "0.6174165", "0.6173108", "0.6173108", "0.61471957", "0.60902166", "0.60778683", "0.6070275", "0.6064968", "0.6045154", "0.5978186", "0.5976862", "0.5955524", "0.59338063", "0.5926045", "0.5919648", "0.5865652", "0.5852597", "0.58335733", "0.5819126", "0.5811292", "0.5800227", "0.57935715", "0.57658535", "0.5757773", "0.57515556", "0.5726947", "0.57219404", "0.5707663", "0.5707663", "0.5668441", "0.5652263", "0.56249344", "0.5614268", "0.5605812", "0.5583601", "0.5578214", "0.5562947", "0.55443126", "0.551614", "0.55091834", "0.5503019", "0.5498154", "0.54911846", "0.5461188", "0.54561913", "0.5451522", "0.5446974", "0.5443705", "0.54338825", "0.5412965", "0.54041624", "0.53870004", "0.5379201", "0.5377797", "0.5323884", "0.5286379", "0.52792233", "0.52311456", "0.5228439", "0.52178335", "0.5213948", "0.5213246", "0.5210138", "0.52040374", "0.51979315", "0.51972896", "0.51901406", "0.5189978", "0.51871103", "0.51739985", "0.51739985", "0.5164201", "0.5159508", "0.51561403", "0.5146885", "0.5126014", "0.5112433", "0.5110198", "0.51046574", "0.5101962", "0.50938684", "0.50886124", "0.50873846", "0.507461", "0.5067188", "0.5056405", "0.50532097", "0.5049326" ]
0.66277695
3
TODO Autogenerated method stub
@Override public byte[] reqByteFormat() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public ZsPkgSearchReply respFormat(String result) throws Exception { ZsPkgSearchReply resp = null; try { if (StringUtils.isNotEmpty(result)) { result="{"+"\""+"list"+"\""+":"+result+"}"; resp = JsonUtils.toBean(result, ZsPkgSearchReply.class); } } catch (Throwable e) { LOGGER.error("{} {} parse response data error(Exception),msg:{}", this.getClass().getName(), this.getHashCode(), e.getMessage(), e); } finally { this.setResponse(resp); } return this.getResponse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public ZsPkgSearchReply respFormat(byte[] result) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO need to think carefully.
public static void setResult(String resultInfo) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}", "private void poetries() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private void m50366E() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void getExras() {\n }", "private void test() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n void init() {\n }", "@Override public int describeContents() { return 0; }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void level7() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "public abstract void mo56925d();", "private static void iterator() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}" ]
[ "0.57703096", "0.5762554", "0.57180905", "0.56387115", "0.5631901", "0.56239694", "0.5608468", "0.5591494", "0.55568373", "0.5516744", "0.55115014", "0.5476239", "0.5474872", "0.5443704", "0.54134774", "0.5411382", "0.5376788", "0.5366143", "0.5357775", "0.53562546", "0.53558826", "0.5341925", "0.5333131", "0.5329193", "0.5329193", "0.5315194", "0.5312269", "0.5312269", "0.5311994", "0.53083605", "0.53083605", "0.53083605", "0.53083605", "0.53083605", "0.53083605", "0.5302242", "0.53014255", "0.52962506", "0.52904314", "0.52748203", "0.5269421", "0.5269421", "0.5269421", "0.5269421", "0.5269421", "0.5260373", "0.52553254", "0.52472574", "0.5245723", "0.524258", "0.5234469", "0.522516", "0.5217658", "0.5214714", "0.52113456", "0.5209357", "0.51956564", "0.5195124", "0.51924574", "0.5192087", "0.51888365", "0.5186658", "0.51858354", "0.51811564", "0.5172684", "0.51694524", "0.51584804", "0.51584804", "0.51584804", "0.5157178", "0.51558226", "0.51494765", "0.5145127", "0.51363605", "0.5135914", "0.5134584", "0.51329577", "0.51287603", "0.51287603", "0.51287603", "0.51255745", "0.51255745", "0.5123666", "0.51206255", "0.51206255", "0.51206255", "0.51181877", "0.5102822", "0.51019204", "0.50997967", "0.5098924", "0.50951797", "0.5090941", "0.5090795", "0.5090795", "0.50906026", "0.5088902", "0.5085381", "0.5085052", "0.50844646", "0.5082643" ]
0.0
-1
inflate item_hisotry xml and return the new holder.
@NonNull @Override public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { Context context = parent.getContext(); LayoutInflater inflater = LayoutInflater.from(context); //Inflate the custom layout View historyView = inflater.inflate(R.layout.item_history, parent, false); ViewHolder viewHolder = new ViewHolder(historyView); return viewHolder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inflateViewForItem(Item item) {\n\n //Inflate Layout\n ItemCardBinding binding = ItemCardBinding.inflate(getLayoutInflater());\n\n //Bind Data\n binding.imageView.setImageBitmap(item.bitmap);\n binding.title.setText(item.label);\n binding.title.setBackgroundColor(item.color);\n\n //Add it to the list\n b.list.addView(binding.getRoot());\n }", "ILitePackItem getFirstChild();", "public TileItem(Game game, XMLStreamReader in) throws XMLStreamException {\n super(game, in);\n }", "public Object getItem(Node itemNode) throws XmlRecipeException;", "public interface IItemTypeHandler {\n\n\t/**\n\t * Get the item for this type of handler for the given node element, can just be a text node.\n\t * @param itemNode The node containing info about this item, for example\n\t * \"&lt;item&gt;evilcraft:darkGem&lt;/item&gt;\"\n\t * @return An item stack for this item or a string representing an ore dict id.\n\t * @throws XmlRecipeException If an error occured\n\t */\n\tpublic Object getItem(Node itemNode) throws XmlRecipeException;\n\t\n}", "public ViewHolder(View itemView) {\n super(itemView);\n tvNature = (TextView)itemView.findViewById(R.id.item_name);\n tvAmountNature = (TextView)itemView.findViewById(R.id.item_amount);\n }", "@Override\r\n\tpublic ItemInfo createItemInfo() {\n\t\treturn new HpInfo();\r\n\t}", "@Override\n\tprotected BaseViewHolder<JSONObject> getHolderView(View layout) {\n\t\treturn new HolidayMealsViewHolder(layout);\n\t}", "private void onLoad(Item item) {\n ImageView view = new ImageView(item.getIcon());\n addDragEventHandlers(view, DRAGGABLE_TYPE.ITEM, unequippedInventory, equippedItems);\n addEntity(item, view);\n unequippedInventory.getChildren().add(view);\n System.out.println(\"Get new Item \" + item.getName() + \" in Inventory\");\n }", "@NotNull\r\n @Contract(pure = true)\r\n public static GuiItem loadItem(@NotNull Object instance, @NotNull Element element, @NotNull Plugin plugin) {\r\n String id = element.getAttribute(\"id\");\r\n Material material = Material.matchMaterial(id.toUpperCase(Locale.getDefault()));\r\n\r\n if (material == null) {\r\n throw new XMLLoadException(\"Can't find material for '\" + id + \"'\");\r\n }\r\n\r\n boolean hasAmount = element.hasAttribute(\"amount\");\r\n boolean hasDamage = element.hasAttribute(\"damage\");\r\n int amount = hasAmount ? Integer.parseInt(element.getAttribute(\"amount\")) : 1;\r\n short damage = hasDamage ? Short.parseShort(element.getAttribute(\"damage\")) : 0;\r\n\r\n //noinspection deprecation\r\n ItemStack itemStack = new ItemStack(material, amount, damage);\r\n\r\n List<Object> properties = new ArrayList<>();\r\n\r\n if (element.hasChildNodes()) {\r\n NodeList childNodes = element.getChildNodes();\r\n\r\n for (int i = 0; i < childNodes.getLength(); i++) {\r\n Node item = childNodes.item(i);\r\n\r\n if (item.getNodeType() != Node.ELEMENT_NODE)\r\n continue;\r\n\r\n Element elementItem = (Element) item;\r\n\r\n String nodeName = item.getNodeName();\r\n\r\n if (nodeName.equals(\"properties\") || nodeName.equals(\"lore\") || nodeName.equals(\"enchantments\")) {\r\n Element innerElement = (Element) item;\r\n NodeList innerChildNodes = innerElement.getChildNodes();\r\n\r\n for (int j = 0; j < innerChildNodes.getLength(); j++) {\r\n Node innerNode = innerChildNodes.item(j);\r\n\r\n if (innerNode.getNodeType() != Node.ELEMENT_NODE)\r\n continue;\r\n\r\n Element innerElementChild = (Element) innerNode;\r\n ItemMeta itemMeta = Objects.requireNonNull(itemStack.getItemMeta());\r\n\r\n switch (nodeName) {\r\n case \"properties\":\r\n if (!innerNode.getNodeName().equals(\"property\"))\r\n continue;\r\n\r\n String propertyType = innerElementChild.hasAttribute(\"type\")\r\n ? innerElementChild.getAttribute(\"type\")\r\n : \"string\";\r\n\r\n properties.add(PROPERTY_MAPPINGS.get(propertyType).apply(innerElementChild\r\n .getTextContent()));\r\n break;\r\n case \"lore\":\r\n if (!innerNode.getNodeName().equals(\"line\"))\r\n continue;\r\n\r\n TextHolder.deserialize(innerNode.getTextContent())\r\n .asItemLoreAtEnd(itemMeta);\r\n itemStack.setItemMeta(itemMeta);\r\n break;\r\n case \"enchantments\":\r\n if (!innerNode.getNodeName().equals(\"enchantment\"))\r\n continue;\r\n\r\n Enchantment enchantment = Enchantment.getByKey(NamespacedKey.minecraft(\r\n innerElementChild.getAttribute(\"id\").toUpperCase(Locale.getDefault())\r\n ));\r\n\r\n if (enchantment == null) {\r\n throw new XMLLoadException(\"Enchantment cannot be found\");\r\n }\r\n\r\n int level = Integer.parseInt(innerElementChild.getAttribute(\"level\"));\r\n\r\n itemMeta.addEnchant(enchantment, level, true);\r\n itemStack.setItemMeta(itemMeta);\r\n break;\r\n }\r\n }\r\n } else if (nodeName.equals(\"displayname\")) {\r\n ItemMeta itemMeta = Objects.requireNonNull(itemStack.getItemMeta());\r\n\r\n TextHolder.deserialize(item.getTextContent())\r\n .asItemDisplayName(itemMeta);\r\n\r\n itemStack.setItemMeta(itemMeta);\r\n } else if (nodeName.equals(\"modeldata\")) {\r\n ItemMeta itemMeta = Objects.requireNonNull(itemStack.getItemMeta());\r\n\r\n itemMeta.setCustomModelData(Integer.parseInt(item.getTextContent()));\r\n\r\n itemStack.setItemMeta(itemMeta);\r\n } else if (nodeName.equals(\"skull\") && itemStack.getItemMeta() instanceof SkullMeta) {\r\n SkullMeta skullMeta = (SkullMeta) itemStack.getItemMeta();\r\n\r\n if (elementItem.hasAttribute(\"owner\"))\r\n //noinspection deprecation\r\n skullMeta.setOwner(elementItem.getAttribute(\"owner\"));\r\n else if (elementItem.hasAttribute(\"id\")) {\r\n SkullUtil.setSkull(skullMeta, elementItem.getAttribute(\"id\"));\r\n }\r\n\r\n itemStack.setItemMeta(skullMeta);\r\n }\r\n }\r\n }\r\n\r\n Consumer<InventoryClickEvent> action = null;\r\n\r\n if (element.hasAttribute(\"onClick\")) {\r\n String methodName = element.getAttribute(\"onClick\");\r\n for (Method method : instance.getClass().getMethods()) {\r\n if (!method.getName().equals(methodName))\r\n continue;\r\n\r\n int parameterCount = method.getParameterCount();\r\n Class<?>[] parameterTypes = method.getParameterTypes();\r\n\r\n if (parameterCount == 0)\r\n action = event -> {\r\n try {\r\n //because reflection with lambdas is stupid\r\n method.setAccessible(true);\r\n method.invoke(instance);\r\n } catch (IllegalAccessException | InvocationTargetException exception) {\r\n throw new XMLReflectionException(exception);\r\n }\r\n };\r\n else if (parameterTypes[0].isAssignableFrom(InventoryClickEvent.class)) {\r\n if (parameterCount == 1)\r\n action = event -> {\r\n try {\r\n //because reflection with lambdas is stupid\r\n method.setAccessible(true);\r\n method.invoke(instance, event);\r\n } catch (IllegalAccessException | InvocationTargetException exception) {\r\n throw new XMLReflectionException(exception);\r\n }\r\n };\r\n else if (parameterCount == properties.size() + 1) {\r\n boolean correct = true;\r\n\r\n for (int i = 0; i < properties.size(); i++) {\r\n Object attribute = properties.get(i);\r\n\r\n if (!(parameterTypes[1 + i].isPrimitive() &&\r\n parameterTypes[1 + i].isAssignableFrom(Primitives.unwrap(attribute.getClass()))) &&\r\n !parameterTypes[1 + i].isAssignableFrom(attribute.getClass()))\r\n correct = false;\r\n }\r\n\r\n if (correct) {\r\n action = event -> {\r\n try {\r\n //don't ask me why we need to do this, just roll with it (actually I do know why, but it's stupid)\r\n properties.add(0, event);\r\n\r\n //because reflection with lambdas is stupid\r\n method.setAccessible(true);\r\n method.invoke(instance, properties.toArray(new Object[0]));\r\n\r\n //since we'll append the event to the list next time again, we need to remove it here again\r\n properties.remove(0);\r\n } catch (IllegalAccessException | InvocationTargetException exception) {\r\n throw new XMLReflectionException(exception);\r\n }\r\n };\r\n }\r\n }\r\n }\r\n\r\n break;\r\n }\r\n }\r\n\r\n GuiItem item = new GuiItem(itemStack, action, plugin);\r\n\r\n if (element.hasAttribute(\"field\"))\r\n XMLUtil.loadFieldAttribute(instance, element, item);\r\n\r\n if (element.hasAttribute(\"populate\")) {\r\n XMLUtil.invokeMethod(instance, element.getAttribute(\"populate\"), item, GuiItem.class);\r\n }\r\n\t\t\r\n\t\titem.setProperties(properties);\r\n\r\n return item;\r\n }", "@NonNull\n @Deprecated\n public static LayoutHomeTalukItemBinding inflate(@NonNull LayoutInflater inflater,\n @Nullable Object component) {\n return ViewDataBinding.<LayoutHomeTalukItemBinding>inflateInternal(inflater, R.layout.layout_home_taluk_item, null, false, component);\n }", "public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }", "public List<Item> parseItemHierJSON(String response) {\n\n\t\tJSONObject jsonObj = new JSONObject(response.trim());\n\t\tJSONObject responseJsonObj = jsonObj.getJSONObject(\"response\");\n\t\tJSONObject outputJSON = new JSONObject();\n\t\tJSONObject ancestorOutputJSON = null, parentOutputJson = null, childOutputJSON = null, actionOutputJSON = null, parentJSON = null;\n\t\tItem itemObj = null;\n\t\tList<Item> itemsList = new ArrayList();\n\n\t\ttry {\n\t\t\tfor (Iterator keys = responseJsonObj.keys(); keys.hasNext();) {\n\t\t\t\t// getting the action\n\t\t\t\tString action = (String) keys.next();\n\n\t\t\t\tJSONObject actionJSON = (JSONObject) responseJsonObj\n\t\t\t\t\t\t.getJSONObject(action);\n\n\t\t\t\t// getting the parent\n\t\t\t\tfor (Iterator parents = actionJSON.keys(); parents.hasNext();) {\n\n\t\t\t\t\tString parentId = (String) parents.next();\n\t\t\t\t\tparentJSON = actionJSON.getJSONObject(parentId);\n\n\t\t\t\t\tJSONObject ancestorJSON = parentJSON\n\t\t\t\t\t\t\t.getJSONObject(\"ANCESTORS\");\n\t\t\t\t\tancestorOutputJSON = new JSONObject();\n\t\t\t\t\tchildOutputJSON = new JSONObject();\n\t\t\t\t\tfor (Iterator childKey = ancestorJSON.keys(); childKey\n\t\t\t\t\t\t\t.hasNext();) {\n\t\t\t\t\t\tString childKeyValue = (String) childKey.next();\n\t\t\t\t\t\tJSONObject thisObj = ancestorJSON\n\t\t\t\t\t\t\t\t.getJSONObject(childKeyValue);\n\t\t\t\t\t\titemObj = new Item();\n\t\t\t\t\t\titemObj.setParentId(parentId);\n\n\t\t\t\t\t\titemObj.setItemName(childKeyValue);\n\t\t\t\t\t\titemObj.setStatusLevel(thisObj\n\t\t\t\t\t\t\t\t.getString(\"status_level\"));\n\t\t\t\t\t\titemObj.setStatusMessage(thisObj\n\t\t\t\t\t\t\t\t.getString(\"status_message\"));\n\t\t\t\t\t\titemObj.setItemType(thisObj.getString(\"itemType\"));\n\n\t\t\t\t\t\titemsList.add(itemObj);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// }\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"exception parseItemHierJSON\" + ex.getMessage());\n\t\t\treturn null;\n\t\t} finally {\n\n\t\t}\n\n\t\treturn itemsList;\n\n\t}", "public FXMLTuple inflate()\n {\n FXMLLoader loader = new FXMLLoader(resource);\n try {\n return new FXMLTuple(loader.load(), loader.getController());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n if (viewType == TYPE_ITEM) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_row,parent,false); //Inflating the layout\n\n ViewHolder vhItem = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhItem; // Returning the created object\n\n //inflate your layout and pass it to view holder\n\n } else if (viewType == TYPE_HEADER) {\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.header,parent,false); //Inflating the layout\n\n ViewHolder vhHeader = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhHeader; //returning the object created\n\n\n }\n return null;\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n hospname= itemView.findViewById(R.id.hospname);\n address= itemView.findViewById(R.id.hospaddress);\n rrr= itemView.findViewById(R.id.rrrtext);\n hospimage= itemView.findViewById(R.id.hospital_image);\n callambulance= itemView.findViewById(R.id.bookambulancebutton);\n getroom= itemView.findViewById(R.id.bookroombutton);\n /*price= itemView.findViewById(R.id.bedprice);\n cat= itemView.findViewById(R.id.bedcat);\n bedimage= itemView.findViewById(R.id.bedimage);*/\n\n\n }", "public interface ILitePackItem extends ITreeObject {\n\t\n\t/**\n\t * Returns item ID \n\t * @return item ID \n\t */\n\tString getId();\n\n\t/** \n\t * Returns version string, for Pack ist version, for Pack family - effectively used versions \n\t * @return version string\n\t */\n\tString getVersion();\n\n\t/**\n\t * Returns pack version mode\n\t * @return EVersionMatchMode\n\t */\n\tEVersionMatchMode getVersionMatchMode();\n\n\t/**\n\t * Check is to latest versions of all installed packs \n\t * @return true if the latest versions of packs should be used\n\t */\n\tboolean isUseAllLatestPacks();\n\t\n\t/**\n\t * Adds ICpItem to the item\n\t * @param item ICpItem to add (IcpPack, ICpPackInfo or ICpPackFamily )\n\t */\n\tvoid addCpItem(ICpItem item);\n\n\t/**\n\t * Returns ICpItem associated with this item\n\t * @return ICpItem associated with this item (IcpPack, ICpPackInfo or ICpPackFamily )\n\t */\n\tICpItem getCpItem();\n\n\t\n\t/**\n\t * Returns parent IRtePacktem if any \n\t * @return parent IRtePacktem if any \n\t */\n\tILitePackItem getParent();\t\n\n\t/**\n\t * Checks if the item is explicitly or implicitly selected \n\t * @return true if the item is selected \n\t */\n\tboolean isSelected(); \n\n\t/**\n\t * Checks if the pack item is used in an ICpConfigurationInfo \n\t * @return true if the item is used \n\t */\n\tboolean isUsed(); \n\n\t/**\n\t * Checks if all pack corresponding to this item are installed\n\t * @return true if installed, false if not\n\t */\n\tboolean isInstalled();\n\n\t\n\t/**\n\t * Checks if the pack family is excluded \n\t * @return true if the item is excluded \n\t */\n\tboolean isExcluded();\n\t\n\t/**\n\t * Returns URL associated with the item if any\n\t * @return URL associated with the item\n\t */\n\tString getUrl();\n\t\n\t/** \n\t * Return item description text of the element if any \n\t * @return description or empty string \n\t */\n\tString getDescription();\n\t\n\t/**\n\t * Returns corresponding ICpPack if installed\n\t * @return ICpPack if installed or null \n\t */\n\tICpPack getPack();\n\n\t/**\n\t * Returns corresponding ICpPackInfo if assigned\n\t * @return ICpPack if assigned or null \n\t */\n\tICpPackInfo getPackInfo();\n\t\n\t/**\n\t * Returns pack attributes taken either from underlying pack or ICPackItem \n\t * @returns pack attributes\n\t */\n\tIAttributes getAttributes();\n\n\t/**\n\t * Returns the first child item \n\t * @return the first child IRtePackItem\n\t */\n\tILitePackItem getFirstChild();\n\t\n\t/**\n\t * Returns root pack collection\n\t * @return root IRtePackCollection \n\t */\n\tILitePackCollection getRoot();\n\n\t\n\t/**\n\t * Returns parent pack family if any \n\t * @return IRtePackFamily \n\t */\n\tILitePackFamily getFamily();\n\n\t\n}", "private void itemDecode(Player player) {\n\t\tPlayerInventory inventory = player.getInventory();\n\t\tItemStack heldItem = inventory.getItemInMainHand();\n\n\t\tif(heldItem.getItemMeta() instanceof BookMeta) {\n\t\t\tBookMeta meta = (BookMeta) heldItem.getItemMeta();\n\t\t\tif(meta.hasPages()) {\n\t\t\t\tList<String> data = meta.getPages();\n\t\t\t\tItemStack decode = CryptoSecure.decodeItemStack(data);\n\t\t\t\t\n\t\t\t\tif(decode != null) {\n\t\t\t\t\tinventory.addItem(decode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn;\n\t\t}\n\t}", "public void addItemFromInflater(Setting setting) {\n addSetting(setting);\n }", "private void setupItemView(View view, NewCollectedItem item) {\n if (item != null) {\n TextView nameText = view.findViewById(R.id.collected_name);\n TextView heightText = view.findViewById(R.id.collected_height);\n TextView pointsText = view.findViewById(R.id.collected_points);\n TextView positionText = view.findViewById(R.id.collected_position);\n TextView dateText = view.findViewById(R.id.collected_date);\n\n nameText.setText(item.getName());\n heightText.setText(mContext.getResources().getString(R.string.height_display,\n UIUtils.IntegerConvert(item.getHeight())));\n positionText.setText(mContext.getResources().getString(R.string.position_display,\n item.getLongitude(), item.getLatitude()));\n pointsText.setText(mContext.getResources().getString(R.string.points_display,\n UIUtils.IntegerConvert(item.getPoints())));\n dateText.setText(mContext.getResources().getString(R.string.date_display,\n item.getDate()));\n\n if (item.isTopInCountry()) {\n view.findViewById(R.id.collected_trophy).setVisibility(View.VISIBLE);\n }\n else {\n view.findViewById(R.id.collected_trophy).setVisibility(View.INVISIBLE);\n }\n\n positionText.setVisibility(View.GONE);\n dateText.setVisibility(View.GONE);\n setCountryFlag(view, item.getCountry());\n }\n }", "public static Item parse(javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n Item object = new Item();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"Item\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (Item) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"DepID\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"DepID\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"DepID\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDepID(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"ParDepId\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"ParDepId\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"ParDepId\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setParDepId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"DepName\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"DepName\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"DepName\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setDepName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "public EntrepriseHolder(@NonNull View itemView) {\n super(itemView);\n nom = itemView.findViewById(R.id.afficheNom);\n adresse = itemView.findViewById(R.id.afficheAdresse);\n ville = itemView.findViewById(R.id.afficheVille);\n nature = itemView.findViewById(R.id.afficheNature);\n }", "@Override\n\t\tpublic void convert(ViewHolder holder, JSONObject item) {\n\t\t\tTextView bmTextView = holder.getView(R.id.bm);\n\t\t\tTextView mcTextView = holder.getView(R.id.mc);\n\t\t\tTextView ggTextView = holder.getView(R.id.gg);\n\t\t\tTextView jldwTextView = holder.getView(R.id.jldw);\n\t\t\tTextView numTextView = holder.getView(R.id.num);\n\t\t\tTextView zjTextView = holder.getView(R.id.zj);\n\t\t\tTextView djTextView = holder.getView(R.id.dj);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tString HPBMString = item.getString(\"HPBM\");\n\t\t\t\tbmTextView.setText((HPBMString==null || HPBMString.equals(\"null\"))?\"\":HPBMString);\n\t\t\t\tString HPMCString = item.getString(\"HPMC\");\n\t\t\t\tmcTextView.setText((HPMCString==null || HPMCString.equals(\"null\"))?\"\":HPMCString);\n\t\t\t\tString GGXHString = item.getString(\"GGXH\");\n\t\t\t\tggTextView.setText((GGXHString==null || GGXHString.equals(\"null\"))?\"\":GGXHString);\n\t\t\t\tString JLDWString = item.getString(\"JLDW\");\n\t\t\t\tjldwTextView.setText((JLDWString==null || JLDWString.equals(\"null\"))?\"\":JLDWString);\n\t\t\t\tString slString = item.getString(\"sl\");\n\t\t\t\tnumTextView.setText((slString==null || slString.equals(\"null\"))?\"\":DecimalsHelper.Transfloat(Double.parseDouble(slString.toString()),MyApplication.getInstance().getNumPoint()));\n\t\t\t\tString zjString = item.getString(\"zj\");\n\t\t\t\tzjTextView.setText((zjString==null || zjString.equals(\"null\"))?\"\":DecimalsHelper.Transfloat(Double.parseDouble(zjString.toString()),MyApplication.getInstance().getJePoint()));\n\t\t\t\tString djString = item.getString(\"dj\");\n\t\t\t\tdjTextView.setText((djString==null || djString.equals(\"null\"))?\"\":DecimalsHelper.Transfloat(Double.parseDouble(djString.toString()),MyApplication.getInstance().getJePoint()));\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public ParsedContainer()\r\n {\r\n container = new ItemContainer();\r\n hidden = false;\r\n }", "private final class <init> extends com.ebay.nautilus.kernel.util.t>\n{\n\n final _cls1 this$1;\n\n public com.ebay.nautilus.kernel.util.t> get(String s, String s1, String s2, Attributes attributes)\n throws SAXException\n {\n if (\"http://www.ebay.com/marketplace/mobile/v1/services\".equals(s) && \"roiFactoryResponse\".equals(s1))\n {\n return new com.ebay.nautilus.kernel.util.SaxHandler.TextElement() {\n\n final RoiTrackEventResponse.RootElement.RoiTrackEventResponses this$2;\n\n public void text(String s3)\n throws SAXException\n {\n if (urls == null)\n {\n urls = new ArrayList();\n }\n urls.add(s3);\n }\n\n \n {\n this$2 = RoiTrackEventResponse.RootElement.RoiTrackEventResponses.this;\n super();\n }\n };\n } else\n {\n return super.t>(s, s1, s2, attributes);\n }\n }", "public ViewHolder(View itemView) {\n super(itemView);\n /*imgOverFlow = (ImageView) itemView.findViewById(R.id.overflow);*/\n bookThumbnail = (ImageView) itemView.findViewById(R.id.book_thumbnail);\n// bookAuthor= (TextView) itemView.findViewById(R.id.book_author);\n// bookTitle = (TextView) itemView.findViewById(R.id.book_title);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View itemView = inflater.inflate(R.layout.fragment_weather_5_day, container, false);\n\n unbinder = ButterKnife.bind(this, itemView);\n\n getForecastInfo();\n\n return itemView;\n }", "public PrimeNrHolder(LayoutInflater inflater, ViewGroup parent) {\n super(inflater.inflate(R.layout.list_item_prime_nr, parent, false));\n\n txtPrimeNr = itemView.findViewById(R.id.list_item_prime_nr);\n txtFoundOn = itemView.findViewById(R.id.list_item_date_found);\n }", "protected HomeItem itemReadTx(final HomeItemImpl item)\n\t{\n\t\tString sql = \"SELECT SITE, PUBLISHED, RELEASE_DATE, SOURCE, TITLE, CONTENT, URL, DIMENSIONS, ALT, CREATED_BY, CREATED_ON, MODIFIED_BY, MODIFIED_ON FROM HOME_ITEM WHERE ID=?\";\n\t\tObject[] fields = new Object[1];\n\t\tfields[0] = item.getId();\n\t\tList<HomeItem> rv = sqlService().select(sql, fields, new SqlService.Reader<HomeItem>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic HomeItem read(ResultSet result)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tint i = 1;\n\t\t\t\t\titem.initSite(siteService().wrap(sqlService().readLong(result, i++)));\n\t\t\t\t\titem.initPublished(sqlService().readBoolean(result, i++));\n\t\t\t\t\titem.initReleaseDate(sqlService().readDate(result, i++));\n\t\t\t\t\titem.initSource(HomeItem.Source.fromCode(sqlService().readString(result, i++)));\n\t\t\t\t\titem.initTitle(sqlService().readString(result, i++));\n\t\t\t\t\titem.initContentReferenceId(sqlService().readLong(result, i++));\n\t\t\t\t\titem.initUrl(sqlService().readString(result, i++));\n\t\t\t\t\titem.initDimensions(sqlService().readString(result, i++));\n\t\t\t\t\titem.initAlt(sqlService().readString(result, i++));\n\t\t\t\t\titem.initCreatedBy(userService().wrap(sqlService().readLong(result, i++)));\n\t\t\t\t\titem.initCreatedOn(sqlService().readDate(result, i++));\n\t\t\t\t\titem.initModifiedBy(userService().wrap(sqlService().readLong(result, i++)));\n\t\t\t\t\titem.initModifiedOn(sqlService().readDate(result, i++));\n\t\t\t\t\titem.setLoaded();\n\n\t\t\t\t\treturn item;\n\t\t\t\t}\n\t\t\t\tcatch (SQLException e)\n\t\t\t\t{\n\t\t\t\t\tM_log.warn(\"itemReadTx: \" + e);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (rv.size() > 0)\n\t\t{\n\t\t\treturn item;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic ViewHolder onCreateViewHolder(View itemView) {\n\t\t\t\treturn new MylisViewHoder(itemView);\n\t\t\t}", "ItemStack createItemStack(CompoundTag tag);", "public ItemInfo () {}", "void refineItem(JavaBeanMarshaller marshaller, Item item);", "@Override\n protected void convert(@NonNull BaseViewHolder helper, PartyContentItemBean.ListBean item) {\n try {\n int adapterPosition = helper.getAdapterPosition();\n helper.addOnClickListener(R.id.front_layout);\n helper.addOnClickListener(R.id.delete_layout);\n ImageView pic = helper.getView(R.id.pic);\n if (StringUtil.isNotNullString(item.getCoverPicturePath())) {\n pic.setVisibility(View.VISIBLE);\n GlideUtil.loadImage(mContext, item.getCoverPicturePath(), pic);\n } else {\n pic.setVisibility(View.GONE);\n }\n TextView itemTitle = helper.getView(R.id.item_title);\n itemTitle.setText((item.getTitle()));\n helper.setText(R.id.author, (item.getAuthor()));\n helper.setText(R.id.time, (item.getReleaseTime()));\n SwipeRevealLayout swipeRevealLayout = helper.getView(R.id.swipe_reveal_layout);\n if (adapterPosition != newOpenedPos && swipeRevealLayout.isOpened()) {\n swipeRevealLayout.close(true);\n }\n swipeRevealLayout.setSwipeListener(new SwipeRevealLayout.SimpleSwipeListener() {\n @Override\n public void onOpened(SwipeRevealLayout view) {\n super.onOpened(view);\n oldOpenedPos = newOpenedPos;\n newOpenedPos = adapterPosition;\n notifiItemClose(oldOpenedPos);\n }\n });\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public ListadoHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n //INFLATE A VIEW FROM XML\n View v= LayoutInflater.from(parent.getContext()).inflate(R.layout.listado_card_item,null);\n\n //HOLDER\n ListadoHolder holder=new ListadoHolder(v);\n\n return holder;\n }", "private Item getNewItem(String gtin) throws IOException {\n\n\t\tlog.info(\"Getting Item with Barcode: \" + gtin);\n\t\tGson gson = new Gson();\n\t\tURL url = new URL(\"https://api.outpan.com/v2/products/\" + gtin + \"?apikey=e13a9fb0bda8684d72bc3dba1b16ae1e\");\n\n\t\tStringBuilder temp = new StringBuilder();\n\t\tScanner scanner = new Scanner(url.openStream());\n\n\t\twhile (scanner.hasNext()) {\n\t\t\ttemp.append(scanner.nextLine());\n\t\t}\n\t\tscanner.close();\n\n\t\tItem item = new Item(gson.fromJson(temp.toString(), Item.class));\n\t\t\n\t\tif (item.name != null) {\n\t\t\treturn item;\n\t\t} else {\n\t\t\tthrow new NoNameForProductException();\n\t\t}\n\t}", "public MyHolder(final View itemView) {\n super(itemView);\n Typeface tf = Typeface.createFromAsset(context.getAssets(), \"fonts/segoeui.ttf\");\n event_time = (TextView) itemView.findViewById(vineture.wowhubb.R.id.event_time);\n event_name=(TextView)itemView.findViewById(vineture.wowhubb.R.id.event_name);\n event_who = (TextView) itemView.findViewById(vineture.wowhubb.R.id.event_who);\n event_where=(ImageView) itemView.findViewById(vineture.wowhubb.R.id.event_where);\n\n\n\n event_time.setTypeface(tf);\n event_name.setTypeface(tf);\n event_who.setTypeface(tf);\n\n\n }", "protected void setBalloonData(WeatherItem item, ViewGroup parent) {\n\t\tif (item.getLocation() != null) {\n\t\t\theader.setVisibility(VISIBLE);\n\t\t\theader.setText(item.getLocation());\n\t\t} else {\n\t\t\theader.setText(\"\");\n\t\t\theader.setVisibility(GONE);\n\t\t}\n\n\t\tif (item.getImageDtata() != null) {\n\t\t\timage.setVisibility(VISIBLE);\n\t\t\timage.setImageBitmap(UtilityFunctions.StringToBitMap(item.getImageDtata()));\n\t\t} else {\n\t\t\timage.setVisibility(GONE);\n\t\t}\n\n\n\t\tif (item.getDesrip() != null) {\n\t\t\ttitle1.setVisibility(VISIBLE);\n\t\t\ttitle1.setText(item.getDesrip());\n\t\t} else {\n\t\t\ttitle1.setText(\"\");\n\t\t\ttitle1.setVisibility(GONE);\n\t\t}\n\n\t\tif (item.getDate() != null) {\n\t\t\ttitle2.setVisibility(VISIBLE);\n\t\t\ttitle2.setText(item.getDate());\n\t\t} else {\n\t\t\ttitle2.setText(\"\");\n\t\t\ttitle2.setVisibility(GONE);\n\t\t}\n\n\t\tif (item.getTempMin() != null) {\n\t\t\ttitle3.setVisibility(VISIBLE);\n\t\t\ttitle3.setText(item.getTempMin());\n\t\t} else {\n\t\t\ttitle3.setText(\"\");\n\t\t\ttitle3.setVisibility(GONE);\n\t\t}\n\n\t\tif (item.getTempMax() != null) {\n\t\t\ttitle4.setVisibility(VISIBLE);\n\t\t\ttitle4.setText(item.getTempMax());\n\t\t} else {\n\t\t\ttitle4.setText(\"\");\n\t\t\ttitle4.setVisibility(GONE);\n\t\t}\n\t}", "protected abstract ReadCell<DataType> createItemCell(LayoutInflater inflater, View convertView, ViewGroup parent);", "public ViewHolder(@NonNull View itemView) {\n super(itemView);\n txvNombreMascotaDesparasitante = itemView.findViewById(R.id.txvNombreMascotaDesparasitante);\n txvNombreDesparasitante = itemView.findViewById(R.id.txvNombreDesparasitante);\n txvPesoDesparasitante = itemView.findViewById(R.id.txvPesoDesparasitante);\n txvFechaAplicacionDesparasitante = itemView.findViewById(R.id.txvFechaAplicacionDesparasitante);\n \n }", "public DestinyItemInfo(JsonObject itemInfo, String instanceID, String hash, String ownerId, boolean isEquipped)\n {\n setFromJsonObject(itemInfo);\n this.instanceID = instanceID;\n this.itemHash = hash;\n\n if(ownerId != null) {\n this.itemOwnerId = ownerId;\n }\n }", "public ViewHolder(View itemView) {\n super(itemView);\n\n tvMessageLeft = (TextView) itemView.findViewById(R.id.tvMessageLeft);\n tvMessageRight = (TextView) itemView.findViewById(R.id.tvMessageRight);\n ivUserIcon = (ImageView) itemView.findViewById(R.id.ivProfPicMessageList);\n // tvTime_stamp = (TextView) itemView.findViewById(R.id.tvTime);\n\n\n //llItemListTop = (LinearLayout) itemView.findViewById(R.id.llListItemTop);\n //llItemListMiddle = (LinearLayout) itemView.findViewById(R.id.llListItemMiddle);\n //llItemListBottom = (LinearLayout) itemView.findViewById(R.id.llListItemTop);\n\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n imageView = itemView.findViewById(R.id.ivSomeImage);\n textView = itemView.findViewById(R.id.tvSomeText);\n }", "public DataNode(Item item, ParentNode parent) {\n m_item = item;\n m_parent = parent;\n AnnotatedBase comp = item.getSchemaComponent();\n int comptype = comp.type();\n m_named = (comptype == SchemaBase.ATTRIBUTE_TYPE || comptype == SchemaBase.ELEMENT_TYPE) &&\n ((INamed)comp).getName() != null;\n Item topmost = item.getTopmost();\n boolean optional = topmost.isOptional();\n if (parent != null && ((GroupItem)parent.getItem()).isInline() && !parent.isNamed()) {\n optional = optional || parent.isOptional();\n }\n m_optional = optional;\n m_ignored = item.isIgnored();\n if (m_ignored) {\n m_type = null;\n m_collection = false;\n } else {\n boolean collection = topmost.isCollection();\n if (item instanceof ValueItem) {\n \n // value item will always be a primitive or wrapper value\n JavaType jtype = ((ValueItem)item).getType();\n m_type = jtype.getPrimitiveName();\n if (m_type == null || topmost.isOptional() || topmost.isCollection() || parent.isCollection()) {\n m_type = jtype.getClassName();\n }\n \n } else if (item instanceof ReferenceItem) {\n \n // reference item as value will always be a reference to the definition class\n m_type = ((ReferenceItem)item).getDefinition().getGenerateClass().getFullName();\n \n } else if (item instanceof AnyItem) {\n \n // xs:any handling determines value type\n switch (item.getComponentExtension().getAnyType()) {\n \n case NestingCustomBase.ANY_DISCARD:\n m_type = null;\n collection = false;\n break;\n \n case NestingCustomBase.ANY_DOM:\n m_type = \"org.w3c.dom.Element\";\n break;\n \n case NestingCustomBase.ANY_MAPPED:\n m_type = \"java.lang.Object\";\n break;\n \n default:\n throw new IllegalStateException(\"Internal error - unknown xs:any handling\");\n \n }\n \n } else if (!((GroupItem)item).isInline()) {\n \n // group item as value will always be a reference to the group class\n m_type = ((GroupItem)item).getGenerateClass().getFullName();\n \n }\n m_collection = collection;\n }\n if (parent != null) {\n parent.addChild(this);\n }\n }", "public FindItemFragment() {\n }", "public InventoryTemplate() {\n this.layoutDatabase = null;\n this.layoutItemDatabase = null;\n this.guiButtons = new HashMap<>();\n this.inventoryType = InventoryType.CHEST;\n this.placeholders = new ArrayList<>();\n this.layout = new HashMap<>();\n this.rawLayout = new ArrayList<>();\n }", "protected void readFromXMLImpl(XMLStreamReader in)\n throws XMLStreamException {\n aiObjects.clear();\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name, got: \" + in.getLocalName());\n }\n final String nextIDStr = in.getAttributeValue(null, \"nextID\");\n if (nextIDStr != null) {\n nextID = Integer.parseInt(nextIDStr);\n }\n \n String lastTag = \"\";\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n final String tagName = in.getLocalName();\n final String oid = in.getAttributeValue(null, ID_ATTRIBUTE);\n try {\n if (oid != null && aiObjects.containsKey(oid)) {\n getAIObject(oid).readFromXML(in);\n } else if (tagName.equals(AIUnit.getXMLElementTagName())) {\n new AIUnit(this, in);\n } else if (tagName.equals(AIPlayer.getXMLElementTagName())) {\n Player p = (Player) getGame().getFreeColGameObject(oid);\n if (p != null) {\n if (p.isIndian()) {\n new NativeAIPlayer(this, in);\n } else if (p.isREF()) {\n new REFAIPlayer(this, in);\n } else if (p.isEuropean()) {\n new EuropeanAIPlayer(this, in);\n } else {\n logger.warning(\"Bogus AIPlayer: \" + p);\n in.nextTag();\n }\n }\n } else if (tagName.equals(\"colonialAIPlayer\")) {\n // TODO: remove 0.10.1 compatibility code\n new EuropeanAIPlayer(this, in);\n // end TODO\n } else if (tagName.equals(AIColony.getXMLElementTagName())) {\n new AIColony(this, in);\n } else if (tagName.equals(AIGoods.getXMLElementTagName())) {\n new AIGoods(this, in);\n } else if (tagName.equals(WorkerWish.getXMLElementTagName())) {\n new WorkerWish(this, in);\n } else if (tagName.equals(GoodsWish.getXMLElementTagName())) {\n new GoodsWish(this, in);\n } else if (tagName.equals(TileImprovementPlan.getXMLElementTagName())) {\n new TileImprovementPlan(this, in);\n } else {\n logger.warning(\"Unknown AI-object read: \" + tagName + \"(\" + lastTag + \")\");\n }\n lastTag = in.getLocalName();\n } catch (Exception e) {\n StringWriter sw = new StringWriter();\n e.printStackTrace(new PrintWriter(sw));\n logger.warning(\"Exception while reading an AIObject(\" + tagName\n + \", \" + oid + \"): \" + sw.toString());\n while (!in.getLocalName().equals(tagName) && !in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n if (!in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n }\n }\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name (2), got: \" + in.getLocalName());\n }\n \n // This should not be necessary - but just in case:\n findNewObjects(false);\n }", "protected ItemWrapper(Item item) throws ServiceLocalException {\n\t\tEwsUtilities\n\t\t\t\t.EwsAssert(item != null, \"ItemWrapper.ctor\", \"item is null\");\n\t\tEwsUtilities.EwsAssert(!item.isNew(), \"ItemWrapper.ctor\",\n\t\t\t\t\"item does not have an Id\");\n\t\tthis.item = item;\n\t}", "public Holder getHolder() {\r\n\t\tif(!holder.isSupremeHolder())\r\n\t\t\treturn ((Item)holder).getHolder();\r\n\t\telse return holder;\r\n\t}", "void updateItem(E itemElementView);", "@Override\n public YFCDocument invoke(YFCDocument inXml) {\n \n YFCElement inEle = inXml.getDocumentElement();\n YFCIterable<YFCElement> yfsItrator = inEle.getChildren(XMLLiterals.ITEM);\n for(YFCElement itemEle : yfsItrator) {\n YFCDocument itemListDoc = YFCDocument.createDocument(XMLLiterals.ITEM_LIST);\n YFCElement itemListEle = itemListDoc.getDocumentElement();\n itemEle.setAttribute(XMLLiterals.ORGANIZATION_CODE, INDIGO_CA);\n itemEle.setAttribute(XMLLiterals.UNIT_OF_MEASURE, EACH);\n itemListEle.importNode(itemEle);\n invokeYantraService(ITEM_LOAD_Q, itemListDoc);\n }\n return inXml;\n }", "public ViewHolder(View itemView) {\n tvGrupo = (TextView) itemView.findViewById(R.id.tvGrupo);\n tvNCD = (TextView) itemView.findViewById(R.id.tvNCD);\n tvACD = (TextView) itemView.findViewById(R.id.tvACD);\n ivCD = (ImageView) itemView.findViewById(R.id.ivCD);\n }", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "@Override\n public NewsFeedViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n LayoutInflater inflater = LayoutInflater.from(activity) ;\n// LayoutInflater inflater = activity.getLayoutInflater() ;\n // inflate your layout into view by layout inflater\n View itemView = inflater.inflate(R.layout.news_feed_item , parent , false) ;\n // finally u can make your object from your view holder\n NewsFeedViewHolder newsFeedViewHolder = new NewsFeedViewHolder(itemView) ;\n // dont forget to change nuull with view holder object\n return newsFeedViewHolder;\n }", "@NonNull\n @Deprecated\n public static LayoutHomeTalukItemBinding inflate(@NonNull LayoutInflater inflater,\n @Nullable ViewGroup root, boolean attachToRoot, @Nullable Object component) {\n return ViewDataBinding.<LayoutHomeTalukItemBinding>inflateInternal(inflater, R.layout.layout_home_taluk_item, root, attachToRoot, component);\n }", "public HolidayHolder(@NonNull View itemView) {\n super(itemView);\n ButterKnife.bind(this,itemView);\n }", "public MapHolder(LayoutInflater inflater, ViewGroup parent) {\n super(inflater.inflate(R.layout.area_cell, parent, false));\n itemView.setOnClickListener(this);\n //sets the recycler views highet at runtime, divide that by the number of cells that can fit\n int size = parent.getMeasuredHeight() / GameData.ROW + 1;\n ViewGroup.LayoutParams lp = itemView.getLayoutParams();\n lp.width = size;\n lp.height = size;\n image1 = (ImageView)itemView.findViewById(R.id.imagetopleft);\n\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n productDetails = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_product_details);\n price = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_MRP);\n sp = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_SP);\n //qty = (Spinner) itemView.findViewById(R.id.category_item_layout_for_view_product_qty);\n productImage = (ImageView) itemView.findViewById(R.id.category_item_layout_for_view_product_image);\n addToCart = (TextView) itemView.findViewById(R.id.category_item_layout_for_view_product_addToCart);\n }", "protected void setBalloonData(Item item, ViewGroup parent) {\n if (item.getTitle() != null) {\n title.setVisibility(VISIBLE);\n title.setText(item.getTitle());\n } else {\n title.setText(\"\");\n title.setVisibility(GONE);\n }\n if (item.getSnippet() != null) {\n snippet.setVisibility(VISIBLE);\n snippet.setText(item.getSnippet());\n } else {\n snippet.setText(\"\");\n snippet.setVisibility(GONE);\n }\n Bitmap bmp = FGActivity.getPictureThumb(\n Enum.valueOf(MARKER_TYPE.class, item.getUid()), item.getID());\n image.setImageBitmap(bmp);\n if (bmp == null) {\n image.setVisibility(GONE);\n } else {\n image.setVisibility(VISIBLE);\n }\n }", "public FoodHolder(@NonNull View itemView) {\n super(itemView);\n name = itemView.findViewById(R.id.textview_food_name);\n sugars = itemView.findViewById(R.id.textview_food_grams_sugar);\n foodType = itemView.findViewById(R.id.textview_food_foodtype);\n viewBackground = itemView.findViewById(R.id.layout_single_food_background);\n viewForeground = itemView.findViewById(R.id.layout_single_food_foreground);\n }", "public SeqItemset createExtendedWith(SeqItem it){\n\t\tSeqItemset newSet = new SeqItemset(m_itemset.length+1);\n\t\tSystem.arraycopy(m_itemset,0,newSet.m_itemset, 0, m_itemset.length);\n\t\tnewSet.m_itemset[m_itemset.length] = it;\n\t\treturn newSet;\n\t}", "@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n // <document>\n if (localName.equals(\"document\")) {\n curArticle = new ArticleSmallOpinion();\n curTagiot = new ArrayList<Tagit>();\n\n // add values\n if (atts.getValue(\"doc_id\") != null) curArticle.setDoc_id(atts.getValue(\"doc_id\"));\n if (atts.getValue(\"title\") != null) curArticle.setTitle(atts.getValue(\"title\"));\n if (atts.getValue(\"sub_title\") != null) curArticle.setSubTitle(atts.getValue(\"sub_title\"));\n if (atts.getValue(\"f7\") != null) curArticle.setF7(atts.getValue(\"f7\"));\n String author = atts.getValue(\"author_icon\");\n author = extractImageUrl(author);\n if (atts.getValue(\"author_icon\") != null) curArticle.setAuthorImgURL(author);\n if (atts.getValue(\"Created_On\") != null) curArticle.setCreatedOn(atts.getValue(\"Created_On\"));\n\n }\n // <f2>\n else if (localName.equals(\"f2\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF2(atts.getValue(\"src\"));\n\n // currently not holding image photographer via \"title=\"\n }\n // <f3>\n if (localName.equals(\"f3\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF3(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <f4>\n else if (localName.equals(\"f4\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF4(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <tagit>\n else if (localName.equals(\"tagit\")) {\n Tagit tagit = new Tagit(atts.getValue(\"id\"), atts.getValue(\"simplified\"), \"\");\n curTagiot.add(tagit);\n }\n\n }", "public ItemHolder(@NonNull View itemView) {\n super(itemView);\n /*tvNombre=itemView.findViewById(R.id.tvNombre);\n tvCiudad=itemView.findViewById(R.id.etCiudad);\n btBorrar=itemView.findViewById(R.id.btBorrar);\n btEditar=itemView.findViewById(R.id.btEditar);\n cl = itemView.findViewById(R.id.cl);\n ivImagen = itemView.findViewById(R.id.ivImagen);*/\n }", "@Override \n\t public void startDocument() throws SAXException {\n\t\t _data = new ArrayList<AlarmItemContent>();\n\t\t position = -1;\n\t }", "public static ByteArrayInputStream getItemJson(Identifier identifier) {\n JsonObject file = new JsonObject();\n file.addProperty(\"forge_marker\", 1);\n file.addProperty(\"parent\", \"item/generated\");\n JsonObject texture = new JsonObject();\n texture.addProperty(\"layer0\", identifier.getNamespace() + \":items/\" + identifier.getPath());\n file.add(\"textures\", texture);\n return new ByteArrayInputStream(file.toString().getBytes());\n }", "@Override \n\t public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { \n\t \n\t\t //String val = atts.getValue(\"val\");\n\t\t //Log.d(\"startElement\", localName + \" : \" + val);\n\t\t \n\t\t if(localName.equalsIgnoreCase(AlarmItemContent.TAG)){\n\t\t\t\n\t\t\t AlarmItemContent vo = new AlarmItemContent();\n\t\t\t \n\t\t\t //if(atts.getValue(AlarmItemContent.prtPosition) != null)\n\t\t\t\t vo.setPosition( ++position ); // atts.getValue(AlarmItemContent.prtPosition)\n\t\t\t vo.setState(atts.getValue(AlarmItemContent.prtState)); // ALARMSTATETYPE_E_ON\n\t\t\t vo.setTime(atts.getValue(AlarmItemContent.prtTime));\n\t\t\t vo.setUri(atts.getValue(AlarmItemContent.prtURI));\n\t\t\t vo.setMetaData(atts.getValue(AlarmItemContent.prtMetaData));\n\t\t\t vo.setVolume(Integer.parseInt(atts.getValue(AlarmItemContent.prtVolume)));\n\t\t\t vo.setFreaquency(atts.getValue(AlarmItemContent.prtFrequency)); // ALARMFREQUENCYTYPE_E_ONCE\n\t\t\t \n\t\t\t _data.add(vo);\n\t\t\t \n\t\t } \n\t\t \n\t }", "@Override\r\n\tpublic ItemInstance createItemInstance() {\n\t\treturn new HpInstance();\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_keranjang, container, false);\n\n lv_item_keranjang = view.findViewById(R.id.lv_keranjang);\n\n tv_harga_total = view.findViewById(R.id.tv_harga_total);\n\n setItem();\n\n return view;\n }", "public void inflate(){\n\t\tInflateTextContent();\n\t\tif(tempData.get(\"Media_Type\").equals(\"1\")){\n\t\t\tgenerateMediaView();\n\t\t}else if(tempData.get(\"Media_Type\").equals(\"2\")){\n\t\t\tprocessURL(2);\n\t\t}else if(tempData.get(\"Media_Type\").equals(\"3\")){\n\t\t\tprocessURL(3);\n\t\t}\t\n\t}", "public void loadIngredients(){\n llingerdientDetails.removeAllViews();\n for(int i = 0; i < llDishes.getChildCount();i++) {\n\n ((LinearLayout) llDishes.getChildAt(i).findViewById(R.id.llborderColor)).setBackgroundColor(Color.parseColor(\"#00800000\"));\n\n }\n //llborderColor_ingredients.setBackgroundColor(Color.parseColor(\"#800000\"));\n for(Dish dish: dinnerModel.getDishes()){\n\n for (Ingredient ing : dish.getIngredients()) {\n\n View ingtredientsItemView = layoutInflater.inflate(R.layout.ingredients_item_view,null);\n TextView txtingredientName = (TextView)ingtredientsItemView.findViewById(R.id.txtIngredientName);\n TextView txtingredientUnit = (TextView)ingtredientsItemView.findViewById(R.id.txtIngredientUnit);\n TextView txtingredientqty = (TextView)ingtredientsItemView.findViewById(R.id.txtIngredientqty);\n txtingredientName.setText(ing.getName());\n txtingredientqty.setText(Double.toString(Double.parseDouble(ing.getQuantity()) * dinnerModel.getNumberOfGuests()));\n txtingredientUnit.setText(ing.getUnit());\n llingerdientDetails.addView(ingtredientsItemView);\n }\n }\n }", "protected void findAndCacheViews(View view) {\n\t SpeakerItemViews views = new SpeakerItemViews();\n\t views.headerView = view.findViewById(R.id.header);\n\t views.headerTextView = (TextView) view.findViewById(R.id.header_text);\n\t views.dividerView = view.findViewById(R.id.session_divider);\n\t views.nameView = (TextView) view.findViewById(R.id.speaker_name);\n\t views.companyView = (TextView) view.findViewById(R.id.speaker_company);\n\t views.starButton = (CheckBox) view.findViewById(R.id.star_button);\n\t view.setTag(views);\n\t }", "public static Snippet getFromXMLElement(Element item, Language lang) {\n // Get the name, data and description from their individual tags\n String name = item.getElementsByTagName(\"name\").item(0).getTextContent();\n String data = item.getElementsByTagName(\"data\").item(0).getTextContent().trim();\n String description = item.getElementsByTagName(\"description\").item(0).getTextContent();\n\n // The keywords are comma separated. Split them and add them to a set\n String[] keywordsString = item.getElementsByTagName(\"keywords\").item(0).getTextContent().split(\",\");\n for (int i = 0; i < keywordsString.length; i++) {\n keywordsString[i] = keywordsString[i].trim().toLowerCase();\n }\n Set<String> keywords = new HashSet<String>(Arrays.asList(keywordsString));\n // Return this snippet from the data collected from the xml element\n return new Snippet(name, data, description, keywords, lang);\n }", "public HashMap<String, Item> loadItems() {\n HashMap<String, Item> items = null;\n Gson gson = new Gson();\n try {\n BufferedReader reader = new BufferedReader(new FileReader(DEPOSITED_PATH));\n Type type = new TypeToken<HashMap<String, Item>>() {\n }.getType();\n items = gson.fromJson(reader, type);\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe);\n }\n return items;\n }", "private Object readResolve() {\n\t\titemsArray = new ItemDefinition[256];\n\t\tfor (ItemDefinition def : itemsList) {\n\t\t\titemsArray[def.getId()] = def;\n\t\t}\n\t\treturn this;\n\t}", "@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent) {\n //inflate(XmlPullParser parser, ViewGroup root, boolean attachToRoot)\n //Inflate a new view hierarchy from the specified XML node\n return LayoutInflater.from(context).inflate(R.layout.list_item, parent, false);\n }", "public XMLEntry(Recordable parent) {\r\n this.parent = parent;\r\n this.atributes = new HashMap<String, String>();\r\n this.children = new ArrayList<XMLEntry>();\r\n}", "@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View item = LayoutInflater.from(parent.getContext()).inflate(R.layout.item, parent, false);\n// Pasar la vista (item.xml) al ViewHolder\n ViewHolder viewHolder = new ViewHolder(item);\n return viewHolder;\n }", "private IItem getJSonStreamAsItem() {\n final IItem item = JSonItemReader.parseItem(getInputStream(), api.getItemDefinition());\n\n ValidatorEngine.validate(item, false);\n\n return item;\n }", "public EntityHierarchyItem() {\n }", "public Object process(Izvod izvod) throws JAXBException, IOException,\r\n\t\t\tSAXException, Exception {\n\t\treturn processor.process(izvod);\r\n\t}", "ItemStack getItem();", "@Override\r\n\t\tpublic Item getItem() {\n\t\t\treturn null;\r\n\t\t}", "private static void processItem(XMLTree item, SimpleWriter out) {\n assert item != null : \"Violation of: item is not null\";\n assert out != null : \"Violation of: out is not null\";\n assert item.isTag() && item.label().equals(\"item\") : \"\"\n + \"Violation of: the label root of item is an <item> tag\";\n assert out.isOpen() : \"Violation of: out.is_open\";\n \t\n // catch indexes of all the specific elements we'll need to clean up code\n int pubDateIndex = getChildElement(item, \"pubDate\");\n int sourceIndex = getChildElement(item, \"source\");\n int titleIndex = getChildElement(item, \"title\");\n int linkIndex = getChildElement(item, \"link\");\n int descriptionIndex = getChildElement(item, \"description\");\n \n \tout.println(\"<tr>\");\n \t\n \t// check the publication date, if we have it print if it not tell user\n \tif(pubDateIndex == -1) \n \t{\n \t\tout.println(\"<td>No date available</td>\");\n \t}\n \telse\n \t{\n \t\tout.println(\"<td>\" + item.child(pubDateIndex).child(0) + \"</td>\");\n \t}\n\t\t\n \tif(sourceIndex == -1)\n \t{\n \t\tout.println(\"<td>No source available</td>\");\n \t}\n \telse\n \t{\n \t\tout.println(\"<td><a href = \\\"\" + item.child(sourceIndex).attributeValue(\"url\") + \"\\\">\" + item.child(sourceIndex) + \"</a></td>\");\n \t}\n\t\t\n \tif(titleIndex == -1 || item.child(titleIndex).toString() == \"\")\n \t{\n \t\tif(descriptionIndex == -1 || item.child(descriptionIndex).child(descriptionIndex).toString() == \"\")\n \t\t{\n \t\t\tout.println(\"<td>No title available</td>\");\n \t\t}\n \t\telse\n \t\t{\n \t\t\tout.println(\"<td>\" + item.child(descriptionIndex).child(0) + \"</td>\");\n \t\t}\n \t}\n \telse\n \t{\n \t\tout.println(\"<td><a href = \\\"\" + item.child(linkIndex).child(0) + \"\\\">\" + item.child(titleIndex).child(0) + \"</a></td>\");\n \t}\n\t\t\n\t\tout.println(\"</tr>\");\n }", "public static ItemIngredient of(Block input) {\n\t\treturn of(ItemBlock.getItemFromBlock(input));\n\t}", "public static GetItemData parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n GetItemData object = new GetItemData();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"GetItemData\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (GetItemData) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"request\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"request\").equals(\r\n reader.getName())) {\r\n object.setRequest(Request.Factory.parse(reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder viewHolder = null;\r\n\t\tWUserItem ptEntity = yzEntities.get(position);\r\n\t\tif (convertView != null) {\r\n\t\t\tif (convertView.getTag() != null) {\r\n\t\t\t\tviewHolder = (ViewHolder) convertView.getTag();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLinearLayout layout = (LinearLayout) inflater.inflate(\r\n\t\t\t\t\tR.layout.w_user_search_item, null);\r\n\t\t\tTextView tv_yhbm = (TextView) layout\r\n\t\t\t\t\t.findViewById(R.id.tv_yhbm);\r\n\t\t\tTextView tv_xm = (TextView) layout\r\n\t\t\t\t\t.findViewById(R.id.tv_xm);\r\n\t\t\tTextView tv_dh = (TextView) layout.findViewById(R.id.tv_dh);\r\n\t\t\t\r\n\t\t\tTextView tv_dz = (TextView) layout.findViewById(R.id.tv_dz);\r\n\t\t\tTextView tv_syzd = (TextView) layout.findViewById(R.id.tv_syzd);\r\n\t\t\tTextView tv_byzd = (TextView) layout.findViewById(R.id.tv_byzd);\r\n\t\t\tTextView tv_sl = (TextView) layout.findViewById(R.id.tv_sl);\r\n\t\t\t\r\n\t\t\tviewHolder = new ViewHolder();\r\n\t\t\tviewHolder.setTv_byzd(tv_byzd);\r\n\t\t\tviewHolder.setTv_dh(tv_dh);\r\n\t\t\tviewHolder.setTv_dz(tv_dz);\r\n\t\t\tviewHolder.setTv_sl(tv_sl);\r\n\t\t\tviewHolder.setTv_syzd(tv_syzd);\r\n\t\t\tviewHolder.setTv_xm(tv_xm);\r\n\t\t\tviewHolder.setTv_yhbm(tv_yhbm);\r\n\t\t\tconvertView = layout;\r\n\t\t\tconvertView.setTag(viewHolder);\r\n\t\t}\r\n\t\tviewHolder.getTv_byzd().setText(String.valueOf(ptEntity.getByzd()));\r\n\t\tviewHolder.getTv_dh().setText(ptEntity.getDh());\r\n\t\tviewHolder.getTv_dz().setText(ptEntity.getDz());\r\n\t\tviewHolder.getTv_sl().setText(String.valueOf(ptEntity.getSl()));\r\n\t\tviewHolder.getTv_syzd().setText(String.valueOf(ptEntity.getSyzd()));\r\n\t\tviewHolder.getTv_xm().setText(ptEntity.getXm());\r\n\t\tviewHolder.getTv_yhbm().setText(ptEntity.getYhbm());\r\n\t\t\r\n\t\treturn convertView;\r\n\t}", "protected View inflateRow(ViewHolder holder){\n View row = null;\n switch (type)\n {\n case TYPE_TEXT_USER:\n row = inflater.inflate(textUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_TEXT_FRIEND:\n\n row = inflater.inflate(textFriendRowResId, null);\n\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_IMAGE_USER:\n row = inflater.inflate(imageUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_IMAGE_FRIEND:\n row = inflater.inflate(imageFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n break;\n\n case TYPE_LOCATION_USER:\n row = inflater.inflate(locationUserResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_LOCATION_FRIEND:\n row = inflater.inflate(locationFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n }\n\n return row;\n }", "public ElementFactory getItemElementFactory() {\n \t\treturn this.itemElementFactory;\n \t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n final EgitimKatilimci dItem = (EgitimKatilimci) this.faaliyet_detay_tablo_list.get(position);\n final EgitimKatilimciAdapter.DetayBilgiOzetItemHolder drawerHolder;\n view = convertView;\n\n\n if (view == null) {\n LayoutInflater inflater = ((Activity) context).getLayoutInflater();\n drawerHolder = new EgitimKatilimciAdapter.DetayBilgiOzetItemHolder();\n\n view = inflater.inflate(layoutResID, parent, false);\n drawerHolder.birinci_item = (TextView) view.findViewById(R.id.birinci_item);\n drawerHolder.ikinci_item = (TextView) view.findViewById(R.id.ikinci_item);\n drawerHolder.ucuncu_item = (TextView) view.findViewById(R.id.ucuncu_item);\n \n view.setTag(drawerHolder);\n\n } else {\n drawerHolder = (EgitimKatilimciAdapter.DetayBilgiOzetItemHolder) view.getTag();\n }\n\n\n if (dItem.getBirimAdi() != null)\n drawerHolder.birinci_item.setText(dItem.getBirimAdi().toString());\n else\n drawerHolder.birinci_item.setText(\"\");\n\n\n if (dItem.getEgitimTanim() != null)\n drawerHolder.ikinci_item.setText(dItem.getEgitimTanim().toString());\n else\n drawerHolder.ikinci_item.setText(\"\");\n\n\n if (dItem.getKatilimciAdi() != null)\n drawerHolder.ucuncu_item.setText(dItem.getKatilimciAdi().toString());\n else\n drawerHolder.ucuncu_item.setText(\"\");\n\n\n\n return view;\n }", "protected abstract void loadItemsInternal();", "public InputStream getItemAsInputStream() {\r\n\t\treturn item;\r\n\t}", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n breweryImage = (ImageView) itemView.findViewById(R.id.brewery_image);\n breweryName = (TextView) itemView.findViewById(R.id.brewery_name);\n }", "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n /* designation_txt = (TextView) itemView.findViewById(R.id.designation_txt);\n name_txt = (TextView) itemView.findViewById(R.id.name_txt);\n number_txt = (TextView) itemView.findViewById(R.id.number_txt);*/\n\n }", "public OrderItemHolder(MyAdapter myAdapter) {\n super(myAdapter, R.layout.delivered_order_item);\n ButterKnife.bind(this, itemView);\n }", "public static ItemStack createStackFromTileEntity (TileEntity tile) {\n \n final ItemStack stack = new ItemStack(tile.getBlockType(), 1, tile.getBlockMetadata());\n prepareDataTag(stack);\n final NBTTagCompound tileTag = tile.writeToNBT(new NBTTagCompound());\n stack.getTagCompound().setTag(\"TileData\", tileTag);\n return stack;\n }", "@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }", "public ItemInfo infoForChild(View view) {\n for (int i = 0; i < this.mItems.size(); i++) {\n ItemInfo itemInfo = this.mItems.get(i);\n if (this.mAdapter.isViewFromObject(view, itemInfo.object)) {\n return itemInfo;\n }\n }\n return null;\n }", "public static LR0Item freshItem(Rule rule) {\n\t\treturn new LR0Item(rule.getLhs(), rule.getRhs(), 0);\n\t}", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "@Override\r\n\tprotected View getPopupView(final PoiItem item) {\n\r\n\t\tView view = mInflater.inflate(ResUtil.getInstance(context).getLayout(\"ct_traffic__popup\"), null);\r\n\t\tWindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\r\n\t\tDisplayMetrics dm = new DisplayMetrics();\r\n\t\twm.getDefaultDisplay().getMetrics(dm);\r\n\r\n\t\tTextView nameTextView = (TextView) view.findViewById(ResUtil.getInstance(context).getId(\"PoiName\"));\r\n\t\tnameTextView.setMaxWidth((int) (dm.widthPixels * 0.6));\r\n\t\tTextView addressTextView = (TextView) view.findViewById(ResUtil.getInstance(context).getId(\"PoiAddress\"));\r\n\t\tnameTextView.setText(item.getTitle());\r\n\t\tString address = item.getSnippet();\r\n\t\tif (address == null || address.length() == 0) {\r\n\t\t\taddress = \"\";\r\n\t\t}\r\n\t\taddressTextView.setText(address);\r\n\t\tImageView feedback = (ImageView) view.findViewById(ResUtil.getInstance(context).getId(\"feedback\"));\r\n\t\tfeedback.setOnClickListener(new View.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(context, PoiInfoActivity.class);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tintent.putExtra(\"poi\", item);\r\n\t\t\t\tif (poiIds != null && !poiIds.isEmpty())\r\n\t\t\t\t\tintent.putExtra(\"poiId\", poiIds.get(number));\r\n\t\t\t\tcontext.startActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\t\tLinearLayout layout = (LinearLayout) view.findViewById(ResUtil.getInstance(context).getId(\"LinearLayoutPopup\"));\r\n\t\tlayout.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(context, RouteActivity.class);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(\"name\", item.getTitle());\r\n\t\t\t\tbundle.putParcelable(\"geo\", item.getPoint());\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tcontext.startActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn view;\r\n\t}" ]
[ "0.5331364", "0.52491814", "0.5102193", "0.5083103", "0.50059515", "0.49998832", "0.49471372", "0.49323314", "0.4907272", "0.48643348", "0.4863014", "0.48338178", "0.48144308", "0.47880128", "0.47739205", "0.47678745", "0.47613734", "0.47349998", "0.4722105", "0.47072777", "0.4705337", "0.47004092", "0.46905273", "0.46766338", "0.4673897", "0.4623025", "0.4607897", "0.46062207", "0.45927903", "0.45836663", "0.45721763", "0.45663932", "0.4564308", "0.45502254", "0.45458505", "0.4537288", "0.4537122", "0.4514297", "0.45136315", "0.450464", "0.4502188", "0.4501651", "0.44999486", "0.44913292", "0.44841072", "0.4462413", "0.4460555", "0.4457681", "0.4446185", "0.44451055", "0.4429544", "0.4429543", "0.44294062", "0.442779", "0.44274175", "0.44263044", "0.4416799", "0.44115812", "0.4385427", "0.4382121", "0.43816122", "0.4380336", "0.43755454", "0.4364552", "0.43530104", "0.43519047", "0.43514517", "0.43400264", "0.4339749", "0.43281442", "0.43234575", "0.43215436", "0.43086314", "0.43047377", "0.42919478", "0.42860818", "0.42791393", "0.42609754", "0.4260848", "0.42486444", "0.42483345", "0.42455217", "0.4240469", "0.42383134", "0.4234039", "0.42277205", "0.422564", "0.42245573", "0.42233595", "0.42215848", "0.42212823", "0.42208153", "0.42207375", "0.4218491", "0.4218033", "0.42126054", "0.42112783", "0.42090902", "0.42067704", "0.4204454", "0.4200556" ]
0.0
-1
populate data into item through holder.
@Override public void onBindViewHolder(@NonNull ViewHolder holder, int position) { History history = listHistories.get(position); holder.txtDateTime.setText(history.getDateTime()); holder.txtTypeTran.setText(history.getTypeTran()); holder.txtNumTran.setText(String.valueOf(history.getNumTran())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void populate() {\n populate(this.mCurItem);\n }", "private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }", "protected abstract void fillData(View itemView, T data);", "@Override\n protected void fillData(GoodsAdapter.ViewHolder holder, GoodsPageModel model) {\n holder.tvTitle.setText(model.getGoodsName());\n }", "@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n holder.mItem = mValues.get(position);\n holder.mIdView.setText(mValues.get(position).mHangoutID);\n holder.mContentView.setText(mValues.get(position).mPrice);\n }", "public static void populateViewHolder(StatisticsViewHolder holder, Object siteStat)\n {\n }", "private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }", "public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}", "protected void populateItem(ListItem<T> item) {\n }", "@Override protected void populateViewHolder(ViewHolderProduct viewHolder, Product model,\n int position) {\n viewHolder.initProduct(model, getContext());\n }", "protected void onBindData(Context context, int position, T item, int itemLayoutId, ViewHelper2 helper){\n\n }", "private void setupItemView(View view, NewCollectedItem item) {\n if (item != null) {\n TextView nameText = view.findViewById(R.id.collected_name);\n TextView heightText = view.findViewById(R.id.collected_height);\n TextView pointsText = view.findViewById(R.id.collected_points);\n TextView positionText = view.findViewById(R.id.collected_position);\n TextView dateText = view.findViewById(R.id.collected_date);\n\n nameText.setText(item.getName());\n heightText.setText(mContext.getResources().getString(R.string.height_display,\n UIUtils.IntegerConvert(item.getHeight())));\n positionText.setText(mContext.getResources().getString(R.string.position_display,\n item.getLongitude(), item.getLatitude()));\n pointsText.setText(mContext.getResources().getString(R.string.points_display,\n UIUtils.IntegerConvert(item.getPoints())));\n dateText.setText(mContext.getResources().getString(R.string.date_display,\n item.getDate()));\n\n if (item.isTopInCountry()) {\n view.findViewById(R.id.collected_trophy).setVisibility(View.VISIBLE);\n }\n else {\n view.findViewById(R.id.collected_trophy).setVisibility(View.INVISIBLE);\n }\n\n positionText.setVisibility(View.GONE);\n dateText.setVisibility(View.GONE);\n setCountryFlag(view, item.getCountry());\n }\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n holder.currentPosition = position;\n holder.bindData(mCaloriesEntryList.get(position));\n }", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "@Override\n public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n DetailedResponse detailedResponse = getItem(position);\n\n // - replace the contents of the view with that element\n // holder.title.setText(sampleBook.getFkBookInfoModel());\n holder.bind(detailedResponse);\n\n }", "@Override\n public void onBindViewHolder(WashIronRecyclerViewHolders holder, int position) {\n data.Detail.Item item=items.get(position);\n holder.bind(item);\n\n holder.dryitem.setText(items.get(position).getItemName());\n holder.drycount.setText(String.valueOf(items.get(position).getItemcount()));\n holder.dryamount.setText(String.valueOf(items.get(position).getTotal()));\n\n }", "private void initData(View view) {\n /*\n * the array of item which need to show in gridview\n * it contains string and a picture\n * */\n ArrayList<HashMap<String, Object>> mList = new ArrayList<HashMap<String, Object>>();\n\n\n /**\n * download info from local database\n * */\n ContentResolver contentResolver = mContext.getContentResolver();\n Uri uri = Uri.parse(\"content://com.example.root.libapp_v1.SQLiteModule.Bookpage.BookpageProvider/bookpage\");\n Cursor cursor = contentResolver.query(uri, null, null, null, null);\n if (cursor != null) {\n while (cursor.moveToNext()) {\n HashMap<String, Object> map = new HashMap<String, Object>();\n String bookname = cursor.getString(cursor.getColumnIndex(\"name\"));\n map.put(\"image\", mImgUrl+\"bookimg_\"+bookname+\".png\");\n map.put(\"text\", bookname);\n mList.add(map);\n }\n /**\n * use the new data to show in gridview\n * */\n initGridView(view, mList);\n }\n cursor.close();\n }", "@Override\r\n\tpublic void init() {\n\t\tint numOfItems = loader.getNumOfItems();\r\n\t\tsetStoreSize(numOfItems);\r\n\r\n\t\tfor (int i = 0; i < numOfItems; i++) {\r\n DrinksStoreItem item = (DrinksStoreItem) loader.getItem(i);\r\n\t\t\tStoreObject brand = item.getContent();\r\n\t\t\tStoreObject existingBrand = findObject(brand.getName());\r\n\t\t\tif (existingBrand != null) {\r\n\t\t\t item.setContent(existingBrand);\r\n\t\t\t}\r\n\t\t\taddItem(i, item);\t\r\n\t\t}\r\n\t}", "public ViewHolder(View itemView) {\n super(itemView);\n tvNature = (TextView)itemView.findViewById(R.id.item_name);\n tvAmountNature = (TextView)itemView.findViewById(R.id.item_amount);\n }", "void populateData();", "@Override\n public void onBindViewHolder(FlagViewHolder holder, int position) {\n holder.bindTo(this.getItem(position));\n }", "PersistentDataHolder getDataHolder();", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mname.setText(mDataset.get(position).getCode());\n holder.mprice.setText(mDataset.get(position).getStock_name());\n }", "private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }", "public void setData(GenericItemType data) {\n this.data = data;\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n // Individually handles each Contact in the contactList\n LeaderEntry currentEntry = leaderList.get(position);\n\n // Extracts the name of the Contact\n TextView name = holder.mTextViewName.findViewById(R.id.textView_Name);\n name.setText(currentEntry.getLeaderName());\n\n // Extracts the phone number of the Contact\n TextView number = holder.mTextViewName.findViewById(R.id.textView_Score);\n number.setText(currentEntry.getHighScore());\n\n }", "private void bindData(ViewHolder vh, int position) {\n\n }", "public ViewHolder(View itemView) {\n super(itemView);\n hospname= itemView.findViewById(R.id.hospname);\n address= itemView.findViewById(R.id.hospaddress);\n rrr= itemView.findViewById(R.id.rrrtext);\n hospimage= itemView.findViewById(R.id.hospital_image);\n callambulance= itemView.findViewById(R.id.bookambulancebutton);\n getroom= itemView.findViewById(R.id.bookroombutton);\n /*price= itemView.findViewById(R.id.bedprice);\n cat= itemView.findViewById(R.id.bedcat);\n bedimage= itemView.findViewById(R.id.bedimage);*/\n\n\n }", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}", "@Override\n public void onBindViewHolder(LyricItemViewHolder holder, int position) {\n holder.bind(position, lyric.getList().get(position));\n\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.teamAbbreviation.setText(mDataset.get(position).getTeamAbbrevation());\n holder.numPlayers.setText(String.valueOf(mDataset.get(position).getNumPlayers()));\n holder.totalSalary.setText(String.valueOf(mDataset.get(position).getTotalSalary()));\n holder.itemView.setTag(mDataset.get(position).getPlayerList());\n }", "@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n MyPlace place = mDataset.get(position);\n\n holder.bind(activity,place,itemClicked,position);\n //https://www.google.com/maps/place/?q=place_id:\n }", "@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDataset[position]); //informacion es el dato que nos entrega el arreglo\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "@Override\n public void onBindViewHolder(CategoriViewHolder holder, int position) {\n CategoriItem categoriItem = categoriItemList.get(position);\n holder.setData(categoriItem);\n\n }", "@Override\n public void onBindViewHolder(PlaceAdapter.ViewHolder holder, int position) {\n // Get current place.\n Place currentPlace = mPlacesData.get(position);\n\n // Populate the textviews with data.\n holder.bindTo(currentPlace);\n }", "@Override\n\t\t\tpublic void convert(BaseViewHolder holder, String itemData,\n\t\t\t\t\tint realPosition) {\n\n\t\t\t}", "void convert(ViewHolder holder, T item, int position);", "public static void populateData() {\n\n }", "@Override\n public Object getItem(int position) {\n return data;\n }", "public DataHolder postProcess( DataHolder holder );", "@Override\n public void onBindViewHolder(@NonNull HolderRecord holder, int position) {\n\n ModelArtistRecord modelArtistRecord = recordsList.get(position);\n String piece_name = modelArtistRecord.getName();\n String piece_image = modelArtistRecord.getImage();\n\n //set data to views\n\n holder.ivPiece_image.setImageURI(Uri.parse(piece_image));\n holder.tvPiece_name.setText(piece_name);\n\n\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mTextViewSongName.setText(mDataset.get(position).trackName);\n holder.mTextViewAlbumName.setText(mDataset.get(position).albumName);\n Picasso.with(mContext).\n load(mDataset.get(position).imageURL).\n into(holder.mImageView);\n\n }", "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }", "@Override\n public void onBindViewHolder(ReviewsAdapter.ReviewDataViewHolder holder, int position) {\n // Involves populating letsdecode.com.popularmovies.data into the item through holder\n // Get the letsdecode.com.popularmovies.data model based on position\n ReviewData reviewData = reviewDataList.get(position);\n int sequence = position + 1;\n holder.numberTextView.setText(sequence + \".\");\n holder.authorNameTextView.setText(\"Author: \" + reviewData.getAuthorName());\n holder.contentTextView.setText(reviewData.getContent());\n\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n PhoneInfoModel phoneInfo = mPhoneInfoModels.get(position);\n\n // bind the model to the holder\n holder.bindPhoneInfo(phoneInfo);\n }", "@Override\n public void onBindViewHolder(ItemAdapter.ViewHolder holder, int position) {\n // Grab the item at the position\n // Get the data model based on position\n String item = items.get(position);\n // Bind the item at the specified view holder\n holder.bind(item);\n holder.removeItem();\n holder.attachActivity();\n }", "public void populateView() {\r\n populateHead();\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new AccDetailItem(\"Loan Amount\", this.account.totLoanAmt, MiscUtils.getColor(getResources(), this.account.totLoanAmt)));\r\n arrayList.add(new AccDetailItem(\"Interest Rate\", this.account.interestRate));\r\n arrayList.add(new AccDetailItem(\"Repayment Amount\", this.account.repaymentAmt, MiscUtils.getColor(getResources(), this.account.repaymentAmt)));\r\n arrayList.add(new AccDetailItem(\"Start Date\", this.account.startDt));\r\n arrayList.add(new AccDetailItem(\"End Date\", this.account.endDt));\r\n arrayList.add(new AccDetailItem(\"Status\", this.account.loanStatus));\r\n ArrayList arrayList2 = new ArrayList();\r\n arrayList2.add(new AccDetailItem(\"Outstanding Amount\", this.account.formattedOutstandingAmount, ContextCompat.getColor(getContext(), R.color.primary_red)));\r\n arrayList2.add(new AccDetailItem(\"Overdue Amount\", String.valueOf(this.account.overdueAmount), MiscUtils.getColor(getResources(), (double) this.account.overdueAmount)));\r\n arrayList2.add(new AccDetailItem(\"No. of Repayments Overdue\", this.account.overdueCount));\r\n this.list.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList));\r\n this.list2.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList2));\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list);\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list2);\r\n }", "@Override\n protected void populateViewHolder(Upcoming_Events.EventViewHolder viewHolder, Event_accept model, int position) {\n }", "@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n holder.mIdView.setText(mValues.get(position).getTitle());\n holder.mContentView.setText(mValues.get(position).getDate());\n holder.itemView.setTag(mValues.get(position));\n holder.itemView.setOnClickListener(mOnClickListener);\n }", "@Override\n //updates view items in recycler view\n public final void onBindViewHolder(ViewHolder holder, int position) {\n Book book = bookList.get(position);\n\n holder.authorName.setText(book.getAuthor());\n holder.bookTitle.setText(book.getTitle());\n\n //takes updated image url to load image inside imageview\n Glide.with(context).load(book.getImageURL()).into(holder.cover);\n\n }", "private void loadRecyclerViewItem() {\n for (int i = 0; i < mySongs.size(); i++) {\n Song song = new Song(\n mySongs.get(i),\n mySongs.get(i).getName(),\n getTimeSong(mySongs.get(i))\n );\n songsList.add(song);\n }\n songAdapter = new TheAdapter(songsList,this);\n recyclerView.setAdapter(songAdapter);\n songAdapter.notifyDataSetChanged();\n\n }", "@Override\n public void onBindViewHolder(ArticleViewHolder holder, int position) {\n Article article = articles.get(position); // find article to bind\n holder.bind(article); // bind article to holder\n }", "public void setItem(BudgetItemModel item) { model= item;}", "@Override\n public void onBindViewHolder(GamesViewHolder holder, int position) {\n //Get the current sport\n Game currentGame = mGameData.get(position);\n\n //Bind the data to the views\n holder.bindTo(currentGame);\n }", "public void setupAdaptedItemView() {\r\n ArrayList<Profile> requesterList = new ArrayList<>();\r\n requesterList.add(requester);\r\n setupAdaptedItemView(requesterList);\r\n }", "protected abstract void loadItemsInternal();", "public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }", "private void loadData() {\n if (mItem != null) {\n Picasso.with(getActivity()).load(mItem.getPictureFile()).\n placeholder(R.drawable.loading)\n .error(R.drawable.error)\n .fit() //\n .into(((ImageView) getView().findViewById(R.id.detailImageView)));\n ((EditText) getView().findViewById(R.id.visitstextView))\n .setText(\"\" + mItem.getVisits());\n\n ((TextView) getView().findViewById(R.id.detailTextView))\n .setText(\"\" + mItem.getTitle());\n ((RatingBar) getView().findViewById(R.id.detailsratingBar)).setRating((float) mItem.getRating());\n\n ReviewModelAdapter mReviewAdapter = new ReviewModelAdapter(getActivity(), R.id.txt_line1);\n try {\n mReviewAdapter.addAll(mItem.getReviews(getActivity()).all().toList());\n } catch (Exception e) {\n\n }\n ((ListView) getView().findViewById(R.id.detailsreviewlistview)).setAdapter(mReviewAdapter);\n\n\n }\n }", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n ModsItem item = mItemList.get(position);\n\n if (item != null) {\n holder.mTitle.setText(item.title);\n\n String subTitle = item.subTitle;\n if (!item.partName.isEmpty()) {\n subTitle = item.partName + \"; \" + subTitle;\n }\n if (!item.partNumber.isEmpty()) {\n subTitle = item.partNumber + \"; \" + subTitle;\n }\n holder.mSub.setText(subTitle);\n\n String authorString = \"\";\n Iterator<String> it = item.authors.iterator();\n while (it.hasNext()) {\n String author = it.next();\n authorString += author;\n\n if (it.hasNext()) {\n authorString += \", \";\n }\n }\n holder.mAuthor.setText(authorString);\n\n if (item.issuedDate != null) {\n holder.mPublication.setText(item.issuedDate);\n }\n\n Resources res = mContext.getResources();\n holder.mImage.setImageResource(res.getIdentifier(\"mediaicon_\" + item.mediaType.toLowerCase(Locale.GERMANY), \"drawable\", mContext.getPackageName()));\n }\n }", "@Override\n public void onBindViewHolder(final ViewHolder holder, final int position) {\n // - get element from data set at this position\n // - replace the contents of the view with that element\n\n final Food food = getFood(position);\n holder.name.setText(food.name);\n holder.info.setText(String.valueOf(food.info));\n holder.img.setImageResource(food.resId);\n holder.layout.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n img.setImageResource(food.resId);\n info.setText(food.info);\n\n // gets the recycler position\n currItem = holder.getAdapterPosition();\n\n // intent passes the value of currItem to the activities\n Intent intent = new Intent(\"pass-food\");\n intent.putExtra(\"food\",currItem);\n LocalBroadcastManager.getInstance(context).sendBroadcast(intent);\n }\n });\n }", "public interface Item {\n void fill(RecyclerView.ViewHolder viewHolder);\n\n int getType();\n\n}", "@Override\n public void onBindViewHolder(ViewHolderImage holder, int position) {\n String image = home_url.get(position);\n holder.setDetails(context, image);\n }", "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }", "private void loadItemList() {\n this.presenter.initialize();\n }", "@Override\n public Item getItem(int position) {\n return data.get(position);\n }", "protected void setBalloonData(Item item, ViewGroup parent) {\n if (item.getTitle() != null) {\n title.setVisibility(VISIBLE);\n title.setText(item.getTitle());\n } else {\n title.setText(\"\");\n title.setVisibility(GONE);\n }\n if (item.getSnippet() != null) {\n snippet.setVisibility(VISIBLE);\n snippet.setText(item.getSnippet());\n } else {\n snippet.setText(\"\");\n snippet.setVisibility(GONE);\n }\n Bitmap bmp = FGActivity.getPictureThumb(\n Enum.valueOf(MARKER_TYPE.class, item.getUid()), item.getID());\n image.setImageBitmap(bmp);\n if (bmp == null) {\n image.setVisibility(GONE);\n } else {\n image.setVisibility(VISIBLE);\n }\n }", "private void populateItem(HashMap<String, String> comment) {\r\n\r\n\t\tString userId = comment.get(\"userId\");\r\n\t\tString name = comment.get(\"userName\");\r\n\t\tString message = comment.get(\"message\");\r\n\t\tString dateTime = comment.get(\"dateTime\");\r\n\t\t\r\n\t\tballoonbody.setText(message);\r\n\r\n\t\ttry {\r\n\r\n\t\t\tmCalendar.setTime(mDateFormat.parse(dateTime));\r\n\r\n\t\t\tint year = mCalendar.get(Calendar.YEAR);\r\n\t\t\tint day = mCalendar.get(Calendar.DAY_OF_MONTH);\r\n\t\t\tint hour = mCalendar.get(Calendar.HOUR_OF_DAY);\r\n\t\t\tint minute = mCalendar.get(Calendar.MINUTE);\r\n\r\n\t\t\tString month = String.format(\"%tb\", mCalendar);\r\n\r\n\t\t\ttime.setText(new StringBuilder().append(pad(day))\r\n\t\t\t\t\t.append(\" \").append(month).append(\" \").append(pad(year))\r\n\t\t\t\t\t.append(\" \").append(pad(hour)).append(\":\").append(minute));\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// try {\r\n\t\t// String image = mImages.get(userId);\r\n\t\t// byte[] temp = Base64.decode(image);\r\n\t\t// Bitmap bmpImage = BitmapFactory.decodeByteArray(temp, 0,\r\n\t\t// temp.length);\r\n\t\t// holder.image.setImageBitmap(bmpImage);\r\n\t\t// } catch (Exception e) {\r\n\t\t// // TODO: handle exception\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\r\n\t}", "public void setData(Post item) {\n a.setText(points + \" points\");\n this.dataItem = item;\n title.setText(item.getTitle());\n desc.setText(item.getDesc());\n upvoted.setEnabled(!item.isUpvoted());\n downvoted.setEnabled(!item.isDownvoted());\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n\n\n\n }", "@Override\n // Replace the contents of a view (invoked by the layout manager)\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n holder.bind(getItem(position));\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n Book tmp = mDataset.get(position);\n\n if (tmp != null) {\n\n holder.mTextView.setText(tmp.getTitle());\n holder.mDescView.setText(tmp.getDescription());\n holder.bookId.setText(tmp.getIsbn() + \"-\" + tmp.getOwner());\n\n\n if (tmp.getCover() != null) {\n\n Bitmap cover = decodeBase64(tmp.getCover());\n holder.coverBook.setImageBitmap(cover);\n\n } else {\n holder.coverBook.setImageResource(R.drawable.icon_book);\n }\n\n }\n\n }", "@Override\n public void bindView(ViewHolder viewHolder, List payloads) {\n //call super so the selection is already handled for you\n super.bindView(viewHolder, payloads);\n\n //bind our data\n //set the text for the name\n //viewHolder.name.setText(name);\n //set the text for the description or hide\n //viewHolder.description.setText(description);\n Picasso.get().load(getUserProfile()).into(viewHolder.userProfile);\n viewHolder.userName.setText(getUserName());\n viewHolder.userLocation.setText(getUserlocation());\n viewHolder.userNumber.setText(getUserNumber());\n viewHolder.userBType.setText(getUserBloodType());\n\n\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n //get the data according to mposition\n Tweet tweet=mTweets.get(position);\n\n //populate the views according to this data\n holder.tvUsername.setText(tweet.user.name);\n holder.tvBody.setText(tweet.body);\n\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n String imageUrl = mData.get(position).getImageUrl();\n String badgeName = mData.get(position).getBadgeName();\n String companyName = mData.get(position).getCompanyName();\n String dateOfIssue = mData.get(position).getDateOfIssue();\n\n Picasso.get().load(imageUrl).into(holder.imgBadge);\n holder.txtBadgeName.setText(badgeName);\n holder.txtCompanyName.setText(companyName);\n holder.txtDateOfIssue.setText(dateOfIssue);\n }", "@Override\n public void onBindViewHolder(CustomAdapter.CustomViewHolder holder, int position) {\n //11. and now the ViewHolder data\n ListItem currentItem = listOfData.get(position);\n\n holder.coloredCircle.setImageResource(\n currentItem.getColorResource()\n );\n\n holder.message.setText(\n currentItem.getMessage()\n );\n\n holder.dateAndTime.setText(\n currentItem.getDateAndTime()\n );\n\n holder.loading.setVisibility(View.INVISIBLE);\n }", "@Override\n public void onBindViewHolder(ItemViewHolder holder, int position)\n {\n Item item = itemList.get(position);\n holder.bindItem(item);\n }", "@Override\n public Object getItem(int position) {\n return data.get(position);\n }", "private void initData() {\n contents.clear();\n images.clear();\n contents.add(\"荣誉殿堂\");\n contents.add(getResources().getString(R.string.mine_item1));\n contents.add(getResources().getString(R.string.mine_item2));\n contents.add(getResources().getString(R.string.mine_item4));\n contents.add(getResources().getString(R.string.mine_item3));\n\n String sex = SPHelper.getDetailMsg(getActivity(), Cons.USER_INFO, getString(R.string.appsex_man));\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n images.add(BGHelper.setButtonNotify(getActivity(), sex));\n images.add(BGHelper.setButtonReport(getActivity(), sex));\n images.add(sex.equals(\"M\") ? R.drawable.ioc_mine_que_blue : R.drawable.ioc_mine_que_red);\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n\n\n adapter = new MineAdapter(getActivity(), contents, images, this);\n lv_mine.setAdapter(adapter);\n }", "private void populateRecipeInfo() {\n\t\tString title = currentRecipe.getTitle();\n\t\tString directions = currentRecipe.getDirections();\n\t\tString description = currentRecipe.getDescription();\n\n\t\tfillTextViews(title, description, directions);\n\t\tpopulateIngredientView();\n\t}", "public abstract void bindViewHolder(VH holder, Context context, Cursor cursor);", "private void addMarkData(MarkData markData, MobileResponse mobileResponse) {\n //markData.saySomethingTextArea.getValue()\n ItemHolder itemHolder = mobileResponse.getItemHolder();\n GWT.log(\"adding itemholder \" + itemHolder.getId());\n if (markData.replyItemHolder != null) {\n markData.replyItemHolder.getChildrenItemHolders().add(itemHolder);\n } else {\n if (markData.expandData.locationResult.getItemHolders() == null) {\n markData.expandData.locationResult.setItemHolders(new ArrayList<ItemHolder>());\n }\n markData.expandData.locationResult.getItemHolders().add(itemHolder);\n }\n }", "@Override\n public void onBindViewHolder(MyViewHolder myViewHolder, int position) {\n PlanningObject planning = list.get(position);\n myViewHolder.bind(planning);\n }", "private void setItem(){\n item = new String[4];\n item[0] = title;\n item[1] = DueDate;\n item[2] = Description;\n item[3] = \"incomplete\";\n }", "@Override\n public void onBindViewHolder(TaskViewHolder holder, int position) {\n int idIndex = mCursor.getColumnIndex(ContractClass.TodoEntry._ID);\n int descriptionIndex = mCursor.getColumnIndex(ContractClass.TodoEntry.COLUMN_DESCRIPTION);\n\n mCursor.moveToPosition(position); // get to the right location in the cursor\n\n // Determine the values of the wanted data\n final int id = mCursor.getInt(idIndex);\n String description = mCursor.getString(descriptionIndex);\n\n\n //Set values\n holder.itemView.setTag(id);\n holder.taskDescriptionView.setText(description);\n\n\n }", "public void setDataAndRefresh(List<T> data) {\n this.data = data;\n// views = new ArrayList<>(data.size());\n// // builder data set of all item view\n// for (int i = 0; i < data.size(); i++) {\n// int itemLayoutId = getItemLayoutId();\n// LayoutInflater inflater = LayoutInflater.from(getContext());\n// View itemView = inflater.inflate(itemLayoutId, null);\n// fillData(itemView, data.get(i));\n// // add item titleView\n// views.add(itemView);\n// }\n notifyDataSetChanged();\n }", "public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}", "@Override\n public void onBindViewHolder(AddFriendAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Friends thisFriend = addFriendList.get(position);\n String thisName = thisFriend.getFirstName() + \" \" + thisFriend.getLastName();\n holder.FriendName.setText(thisName);\n holder.ButtonText.setText(\"Add\");\n }", "@Override\n public void onBindViewHolder(ExportOrderAdapter.ViewHolder holder, int position) {\n MenuData item = mData.get(position);\n\n holder.tv_order_name.setText(item.getName());\n holder.tv_order_price.setText(\"$ \" + Float.toString(item.getPrice()));\n\n holder.itemView.setTag(position);\n }", "@Override\n\t\t\tpublic void setDates(RecyclerViewHolder holder, String data) {\n\t\t\t\tTextView tv= holder.getView(R.id.item_tv);\n\t\t\t\ttv.setText(data);\n\t\t\t}", "@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\n Log.d(TAG, \"Element \" + position + \" set.\");\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n //viewHolder.getTextView().setText(mDataSet[position]);\n TextDrawable drawable = TextDrawable.builder().buildRound(\"AB\", Color.RED);\n viewHolder.getIconView().setImageDrawable(drawable);\n viewHolder.getNameView().setText(items.get(position).getName());\n viewHolder.getEmailView().setText(items.get(position).getEmail());\n viewHolder.getJobTitleView().setText(items.get(position).getJobTitle());\n viewHolder.getLocationView().setText(items.get(position).getLocation());\n viewHolder.getExtView().setText(items.get(position).getExt());\n }", "@Override\n public void onBindViewHolder(LikeHolder holder, int position) {\n if(position == this.getItemCount() - 1 && this.next != null) {\n this.read();\n }\n\n User user = this.mList.get(position);\n holder.set(user);\n\n }", "private void prepareAlbums() {\n\n Album a;\n\n for(HashMap.Entry<String,ArrayList<String>> entry : Test.subcatList.get(name).entrySet()){\n key = entry.getKey();\n value = entry.getValue();\n a = new Album(key , value.get(2));\n albumList.add(a);\n System.out.println(\"dddd : \" + key + \" \" + value.get(2));\n }\n\n adapter.notifyDataSetChanged();\n\n }", "private void fillData() {\n\t\tmCursor = dbHelper.getResultsByTime();\n\t\tstartManagingCursor(mCursor);\n\n\t\tdataListAdapter = new SimpleCursorAdapter(this, R.layout.row, mCursor,\n\t\t\t\tFROM, TO);\n\t\tmConversationView.setAdapter(dataListAdapter);\n\t}", "@Override\n protected void populateViewHolder(CartListHolder viewHolder, CartListGetData model, final int position) {\n itemid.add(model.getItemid());\n itemname.add(model.getItemname());\n itemprice.add(model.getItemprice());\n itmeimage.add(model.getImageid());\n viewHolder.setTitleName(model.getItemname());\n viewHolder.setPrice(model.getItemprice());\n //viewHolder.setPrice(model.getPrice());\n viewHolder.setImage(getApplicationContext(), model.getImageid());\n total = total + Float.parseFloat(model.getItemprice());\n tax = (total/100)*10;\n taxtext.setText(tax+\"\");\n pricetext.setText(total+\"\");\n totalcarttext.setText(String.valueOf(tax+total));\n System.out.println(\"count : \"+count++);\n }", "public MyHolder(View itemView) {\n super(itemView);\n item = itemView.findViewById(R.id.item);\n noofpices = itemView.findViewById(R.id.noofpices);\n cost = itemView.findViewById(R.id.cost);\n amount = itemView.findViewById(R.id.total);\n plus = itemView.findViewById(R.id.plus);\n// minus = (ImageButton)itemView.findViewById(R.id.minus);\n delete = itemView.findViewById(R.id.del);\n\n // id= (TextView)itemView.findViewById(R.id.id);\n }", "private void setRecyclerViewData() {\n }", "@Override\n public void onBindViewHolder(final MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.cred_key.setText(mData.get(position).getCred_key());\n holder.cred_value.setText(mData.get(position).getCred_value());\n\n }", "@Override\n public void onBindViewHolder(final ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n if(values != null) {\n final Genres genre = values.get(position);\n holder.txtHeader.setText(genre.getName());\n holder.txtFooter.setText(\"Type : \" + genre.getType());\n\n Picasso.get().load(img_url).resize(170,180).into(holder.img);\n\n }else if(animevalues != null){\n final Anime anime = animevalues.get(position);\n holder.txtHeader.setText(anime.getTitle());\n /*holder.txtHeader.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });*/\n holder.txtFooter.setText(\"Type : \" + anime.getType());\n\n Picasso.get().load(anime.getImage_url()).resize(150,180).into(holder.img);\n }\n }", "private void inflateViewForItem(Item item) {\n\n //Inflate Layout\n ItemCardBinding binding = ItemCardBinding.inflate(getLayoutInflater());\n\n //Bind Data\n binding.imageView.setImageBitmap(item.bitmap);\n binding.title.setText(item.label);\n binding.title.setBackgroundColor(item.color);\n\n //Add it to the list\n b.list.addView(binding.getRoot());\n }", "private void additems() {\n MaVolleyRequest.getInstance(getApplicationContext()).GetMethodRequest(getLink(), null, new VolleyRequestOnResultListener() {\n @Override\n public void onSucces(String result) {\n Log.d(\"qwerty\", getLink());\n ResearchResultBeanz item = (new Gson()).fromJson((new Gson()).fromJson(result, JsonObject.class).getAsJsonObject(\"data\"), ResearchResultBeanz.class);\n if (adapter == null) {\n adapter = new GridViewAdapter2(ImageGridViewActivity.this, Utils.fromArrayToList(item.items));\n gridView.setAdapter(adapter);\n } else {\n adapter.appendData (Utils.fromArrayToList(item.items));\n }\n flag_loading = false;\n }\n @Override\n public void onFailure(String error) {\n makeToast(\"Loading failure\");\n flag_loading = false;\n }\n });\n }" ]
[ "0.68893945", "0.685642", "0.66505337", "0.6377157", "0.6113387", "0.606064", "0.60326064", "0.5974779", "0.59461665", "0.59257114", "0.58733875", "0.5871662", "0.58308154", "0.58251756", "0.58201474", "0.58116007", "0.58115417", "0.5799371", "0.5787889", "0.5777924", "0.57594824", "0.5725934", "0.571851", "0.5708881", "0.57087904", "0.57071316", "0.57014334", "0.56911117", "0.56907225", "0.56841457", "0.5682846", "0.5682833", "0.56797713", "0.5658127", "0.56548995", "0.56539154", "0.56538093", "0.5647926", "0.5639293", "0.5633881", "0.5630613", "0.5620047", "0.56194556", "0.5619016", "0.56046736", "0.5604098", "0.56029123", "0.5578036", "0.5576641", "0.55751216", "0.5570064", "0.55514604", "0.55500805", "0.55332595", "0.553164", "0.5526848", "0.55188507", "0.5517892", "0.5517092", "0.55078906", "0.55078435", "0.54980755", "0.54958296", "0.54958034", "0.54955703", "0.54882246", "0.54874927", "0.54795194", "0.5476541", "0.54763645", "0.547259", "0.54698396", "0.54696417", "0.5463701", "0.5461237", "0.5459424", "0.5457378", "0.5456973", "0.5454225", "0.5452531", "0.5451994", "0.5451295", "0.54512346", "0.54510725", "0.54478055", "0.5447679", "0.5447661", "0.5441741", "0.5441489", "0.54381305", "0.54378295", "0.54366", "0.5433835", "0.54270965", "0.5425923", "0.5425199", "0.5424558", "0.542236", "0.5410071", "0.54020363", "0.5395442" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String s1 = "第一個字串"; String s2 = "第二個\t字串"; //字串中可以用跳脫序列 System.out.println(s1); System.out.println(s2); System.out.println(s1 + '\n' + s2);//字串也可以和字元相加 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by SilenceDut on 2018/1/15 .
@Dao public interface WeatherDao { @Insert(onConflict = REPLACE) void saveWeather(Weather weather); @Query("DELETE FROM weather WHERE cityId LIKE :cityId") void deleteWeather(String cityId); @Query("SELECT * FROM weather WHERE cityId LIKE :cityId") Weather fetchWeather(String cityId); @Query("SELECT * FROM weather") List<Weather> fetchFollowedWeather(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public void mo55254a() {\n }", "@Override\n void init() {\n }", "Petunia() {\r\n\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private void init() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo12930a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "private TMCourse() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void init() {\n }", "protected void mo6255a() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo9848a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}" ]
[ "0.59400916", "0.5762429", "0.56549865", "0.5638274", "0.56303585", "0.56303585", "0.55963916", "0.55558264", "0.55319226", "0.5518576", "0.5494803", "0.5475744", "0.5459753", "0.5446247", "0.54115766", "0.5403902", "0.5375271", "0.5355323", "0.5354126", "0.53541034", "0.5338154", "0.5329993", "0.53210294", "0.53132015", "0.53132015", "0.53132015", "0.53132015", "0.53132015", "0.53132015", "0.53132015", "0.5308974", "0.5304998", "0.52812266", "0.52421945", "0.5241381", "0.5240826", "0.52263814", "0.5217779", "0.5216602", "0.5214446", "0.52050525", "0.5202057", "0.51956445", "0.5188305", "0.5179982", "0.5179604", "0.5179604", "0.5179604", "0.5179604", "0.5179604", "0.5162915", "0.5157858", "0.5156364", "0.5150546", "0.5143944", "0.51412654", "0.51399326", "0.5138745", "0.513753", "0.51345265", "0.51345265", "0.51345265", "0.51345265", "0.51345265", "0.51345265", "0.51343113", "0.5133341", "0.51322997", "0.51269823", "0.51194525", "0.5118665", "0.51109123", "0.5104287", "0.51039124", "0.5100886", "0.5099181", "0.5092866", "0.5092405", "0.5087628", "0.50857323", "0.50821275", "0.50821275", "0.50821275", "0.5080968", "0.5080968", "0.5078716", "0.5078716", "0.5078716", "0.50750154", "0.5073876", "0.5069648", "0.5067289", "0.5063863", "0.50599515", "0.5055534", "0.505546", "0.505546", "0.50487274", "0.5048549", "0.5040044", "0.5037623" ]
0.0
-1
Awful trick to get the app internal folder (here we are in a lib without context, I did not find another ay to get the path... my bad).
private static void loadSoFromInternalStorage(String fileName) throws UnsatisfiedLinkError { String path = System.getProperties().get("java.io.tmpdir").toString().replace("/cache", "/files/" + fileName); File file = new File(path); SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkLink(file.getAbsolutePath()); } System.load(file.getAbsolutePath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static File getAppDir(String app) {\n return Minecraft.a(app);\n }", "java.io.File getBaseDir();", "public String getAppPathname();", "public String getPath(Context ctx)\n {\n return Environment.getExternalStorageDirectory() + \"/\" + ctx.getApplicationInfo().packageName.replaceAll(\"\\\\.\", \"\") + \"/\";\n }", "abstract public String getTopResourcesDir();", "String getApplicationContextPath();", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public static File getAppDir()\n {\n return fAppDir;\n }", "FsPath baseDir();", "String getDir();", "public static String getAppPath(Context context) {\n File dir = new File(android.os.Environment.getExternalStorageDirectory()\n + File.separator\n + context.getResources().getString(R.string.app_name)\n + File.separator);\n return dir.getPath() + File.separator;\n }", "@Override\n protected Path calculateAppPath(Path image) throws Exception {\n return image.resolve(\"usr\").resolve(\"lib\").resolve(\"APPDIR\");\n }", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "String getContextPath();", "String getContextPath();", "String getContextPath();", "public String getDir();", "private static String m19532b(Context context) {\n String str = null;\n try {\n ApplicationInfo applicationInfo = context.getApplicationInfo();\n if (applicationInfo == null) {\n return null;\n }\n str = applicationInfo.sourceDir;\n return str;\n } catch (Throwable unused) {\n }\n }", "abstract public String getRingResourcesDir();", "Object getDir();", "public IPath getRuntimeBaseDirectory(TomcatServer server);", "public String getPathToJarFolder(){\n Class cls = ReadWriteFiles.class;\r\n ProtectionDomain domain = cls.getProtectionDomain();\r\n CodeSource source = domain.getCodeSource();\r\n URL url = source.getLocation();\r\n try {\r\n URI uri = url.toURI();\r\n path = uri.getPath();\r\n \r\n // get path without the jar\r\n String[] pathSplitArray = path.split(\"/\");\r\n path = \"\";\r\n for(int i = 0; i < pathSplitArray.length-1;i++){\r\n path += pathSplitArray[i] + \"/\";\r\n }\r\n \r\n return path;\r\n \r\n } catch (URISyntaxException ex) {\r\n LoggingAspect.afterThrown(ex);\r\n return null;\r\n }\r\n }", "private String getAbsoluteFilesPath() {\n\n //sdcard/Android/data/cucumber.cukeulator\n //File directory = getTargetContext().getExternalFilesDir(null);\n //return new File(directory,\"reports\").getAbsolutePath();\n return null;\n }", "Path getBaseInputDir();", "public static String getRootPath(Activity activity) {\n String path;\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n path = activity.getExternalFilesDir(null).getAbsolutePath()\n + File.separator + \"Autonomes Fahrzeug\" + File.separator;\n } else {\n path = Environment.getExternalStorageDirectory() + File.separator\n + \"Autonomes Fahrzeug\" + File.separator;\n }\n return path;\n }", "String getInstallRoot();", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "public static String m19636c(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getFilesDir().getAbsolutePath();\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public static String GetvDefaultBilibiliSavePath(Context ctx){\n return GetAppDataPathExternal(ctx);\n }", "java.lang.String getDirName();", "private String getDicDir() {\n\t\tString wDir = null;\n\n\t\tif (System.getProperties().containsKey(\"root\")) {\n\t\t\twDir = System.getProperty(\"root\");\n\t\t}\n\n\t\tif ((wDir == null || wDir.isEmpty()) && CPlatform.isMacOs())\n\t\t\twDir = new File(CPlatform.getUserHome(), \"Library/Spelling\")\n\t\t\t\t\t.getAbsolutePath();\n\n\t\tif (wDir == null || wDir.isEmpty())\n\t\t\twDir = \"/home/ff/projects/hunspell\";\n\t\treturn wDir;\n\t}", "String rootPath();", "public static File getAppsDirectory() {\n\t\treturn APPS_DIRECTORY;\n\t}", "private static File getExternalCacheDir(Context context) {\n // TODO: This needs to be moved to a background thread to ensure no disk access on the\n // main/UI thread as unfortunately getExternalCacheDir() calls mkdirs() for us (even\n // though the Volley library will later try and call mkdirs() as well from a background\n // thread).\n return context.getExternalCacheDir();\n }", "private static String m119220d() {\n File externalFilesDir = C6399b.m19921a().getExternalFilesDir(null);\n if (externalFilesDir == null) {\n return null;\n }\n C7276d.m22805a(externalFilesDir);\n return externalFilesDir.getAbsolutePath();\n }", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "Path getRootPath();", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "@Override\n public String getSystemDir() {\n return null;\n }", "public String getAbsoluteApplicationPath()\r\n {\r\n String res = null;\r\n\r\n if (_windows)\r\n {\r\n RegQuery r = new RegQuery();\r\n res = r.getAbsoluteApplicationPath(_execName);\r\n if (res != null)\r\n {\r\n return res;\r\n }\r\n String progFiles = System.getenv(\"ProgramFiles\");\r\n String dirs[] = { \"\\\\Mozilla\\\\ Firefox\\\\\", \"\\\\Mozilla\", \"\\\\Firefox\", \"\\\\SeaMonkey\",\r\n \"\\\\mozilla.org\\\\SeaMonkey\" };\r\n\r\n for (int i = 0; i < dirs.length; i++)\r\n {\r\n File f = new File(progFiles + dirs[i]);\r\n if (f.exists())\r\n {\r\n return progFiles + dirs[i];\r\n }\r\n }\r\n }\r\n\r\n else if (_linux)\r\n {\r\n try\r\n {\r\n File f;\r\n Properties env = new Properties();\r\n env.load(Runtime.getRuntime().exec(\"env\").getInputStream());\r\n String userPath = (String) env.get(\"PATH\");\r\n String[] pathDirs = userPath.split(\":\");\r\n\r\n for (int i = 0; i < pathDirs.length; i++)\r\n {\r\n f = new File(pathDirs[i] + File.separator + _execName);\r\n\r\n if (f.exists())\r\n {\r\n return f.getCanonicalPath().substring(0,\r\n f.getCanonicalPath().length() - _execName.length());\r\n }\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n return res;\r\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "String getDirectoryPath();", "File getOsmdroidPath();", "@Override\n\tpublic String getDirName() {\n\t\treturn StringUtils.substringBeforeLast(getLocation(), \"/\");\n\t}", "public static String getMangaFolder(Context context) {\n if (Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED) {\n return context.getExternalFilesDir(null) + File.separator\n + Constants.INSTANCE.getMANGAFOLDER();\n } else {\n return context.getFilesDir() + File.separator\n + Constants.INSTANCE.getMANGAFOLDER();\n }\n }", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "private String getDataPath()\n {\n Location location = Platform.getInstanceLocation();\n if (location == null) {\n return \"@none\";\n } else {\n return location.getURL().getPath();\n }\n }", "public static File getExternalCacheDir(Context context) {\n\t\t// if (hasExternalCacheDir()) {\n\t\t// return context.getExternalCacheDir();\n\t\t// }\n\t\t// Before Froyo we need to construct the external cache dir ourselves\n\t\tfinal String cacheDir = FileUtils.sdPath + \"/pic_cache/\";\n\t\treturn new File(cacheDir);\n\t}", "public static String m19637d(Context context) {\n String str;\n String str2 = \"\";\n try {\n str = context.getApplicationInfo().sourceDir;\n } catch (Throwable unused) {\n str = str2;\n }\n return str == null ? str2 : str.trim();\n }", "public String getDirectoryPath() {\n return EXTERNAL_PATH;\n }", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "void getCurrentCourseLocalPathRoot(String phoneGapCallback, GetCourseLocalPathRootCompleted callback);", "public String getAbsPath();", "private String getFullPath()\n\t{\n\t\tif (libraryName.equals(\"\"))\n\t\t{\n\t\t\treturn fileName;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn libraryName + \"/\" + fileName;\n\t\t}\n\t}", "public String getBundleDir()\n {\n if ( bundleDir != null )\n {\n bundleDir = cleanBundleDir( bundleDir );\n }\n return bundleDir;\n }", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public static String getAppFolder(String file_name) {\n return Environment.getExternalStorageDirectory().getAbsolutePath() + \"/Chitchato/\";\n }", "FileObject getBaseFolder();", "abstract public String getDataResourcesDir();", "public static Path locateHarvesterLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n return locateHarvesterLogosDir(servletContext,\n context.getApplicationContext(), context.getAppPath());\n }", "public Path getDataDirectory();", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "public URI getAbsoluteLobFolder();", "public static Path locateLogosDir(ServiceContext context) {\n ServletContext servletContext = null;\n \n if(context == null) {\n context = ServiceContext.get();\n }\n \n if(context == null) {\n throw new RuntimeException(\"Null Context found!!!!\");\n } else if (context.getServlet() != null) {\n servletContext = context.getServlet().getServletContext();\n }\n\n return locateLogosDir(servletContext, context.getApplicationContext(),\n context.getAppPath());\n }", "abstract public String getImageResourcesDir();", "String folderPath();", "String getRealPath(String path);", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "String getExternalPath(String path);", "private String getAndroidResourcePathFromSystemProperty() {\n String resourcePath = System.getProperty(\"android.sdk.path\");\n if (resourcePath != null) {\n return new File(resourcePath, getAndroidResourceSubPath()).toString();\n }\n return null;\n }", "public File getStoreDir();", "public static String getWorkingDirectory(Context context) {\n String res;\n if (isSDCardMounted()) {\n String directory = \"For Happy\";\n res = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + directory;\n } else {\n res = context.getFilesDir().getAbsolutePath() + \"/\";\n }\n if (!res.endsWith(\"/\")) {\n res += \"/\";\n }\n File f = new File(res);\n if (!f.exists()) {\n boolean success = f.mkdirs();\n if (!success) {\n LogUtil.e(\"FileUtils create file failed\");\n }\n }\n return res;\n }", "public String getDocumentBase() {\n return getServerBase() + getContextPath() + \"/\";\n }", "public static String getToolchainRootPath(MakeConfiguration conf) {\n String rootPath = getToolchainExecPath(conf);\n\n int i = rootPath.length() - 2; // Last entry is '/', so skip it.\n while(i >= 0 && '/' != rootPath.charAt(i)) {\n --i;\n }\n\n return rootPath.substring(0, i+1);\n }", "public String getSharedLoader(IPath baseDir);", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "public static String getPathWithinApplication(HttpServletRequest request) {\n String contextPath = getContextPath(request);\n String requestUri = getRequestUri(request);\n if (StringUtils2.startsWith(requestUri, contextPath, true)) {\n // Normal case: URI contains context path.\n String path = requestUri.substring(contextPath.length());\n return (StringUtils2.hasText(path) ? path : \"/\");\n } else {\n // Special case: rather unusual.\n return requestUri;\n }\n }", "String basePath();", "public String getRelativePath();", "public String getWebappPathPrefix() {\n return webSiteProps.getWebappPathPrefix();\n }", "public String getLocationPath();", "public static Path locateResourcesDir(ServiceContext context) {\n if (context.getServlet() != null) {\n return locateResourcesDir(context.getServlet().getServletContext(), context.getApplicationContext());\n }\n\n return context.getBean(GeonetworkDataDirectory.class).getResourcesDir();\n }", "public String appBaseUrl() {\n int amtToTrim = request.getServletPath().length() + request.getPathInfo().length();\n String appBase = requestURL.substring(0, requestURL.length()-amtToTrim);\n return appBase;\n }", "protected String getRootPath() {\n\t\treturn \"/WEB-INF\";\n\t}", "protected File getFlexHomeDirectory()\n\t{\n\t\tif (!m_initializedFlexHomeDirectory)\n\t\t{\n\t\t\tm_initializedFlexHomeDirectory = true;\n\t\t\tm_flexHomeDirectory = new File(\".\"); // default in case the following logic fails //$NON-NLS-1$\n\t\t\tString flexHome = System.getProperty(\"application.home\"); //$NON-NLS-1$\n\t\t\tif (flexHome != null && flexHome.length() > 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_flexHomeDirectory = new File(flexHome).getCanonicalFile();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn m_flexHomeDirectory;\n\t}", "protected String getSahiFolder() {\n String packageName = \"/sahi\";\n Path sahHomeFolder = resolveResource(AbstractSakuliTest.class, packageName);\n if (Files.exists(sahHomeFolder)) {\n return sahHomeFolder.normalize().toAbsolutePath().toString();\n }\n throw new SakuliRuntimeException(\"Cannot load SAHI_HOME folder! Should be normally under 'target/classes/\" + packageName + \"'\");\n }", "public String getResourcePath() {\n return appPathField.getText().trim();\n }", "String getAbsolutePathWithinSlingHome(String relativePath);", "public static String sActivePath() \r\n\t{\r\n\t\tString activePath = null;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tactivePath = new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn activePath;\r\n\t}", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public File getCommonDir()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n }", "public String resolvePath();", "protected Path getBasePathForUser(User owner) {\n return getDirectories().getDevicesPath().resolve(owner.getName());\n }", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }" ]
[ "0.73977417", "0.69279915", "0.6920204", "0.69008476", "0.687148", "0.6781479", "0.6773274", "0.6703514", "0.6680388", "0.6675505", "0.66542274", "0.6604419", "0.66038924", "0.65760714", "0.65672016", "0.65672016", "0.65672016", "0.65426755", "0.6537744", "0.65171576", "0.6484255", "0.6477384", "0.6449976", "0.64263225", "0.63835925", "0.6379221", "0.63678974", "0.6334309", "0.63135564", "0.6292549", "0.6259713", "0.6247544", "0.6214499", "0.6199707", "0.6198484", "0.6198028", "0.6183872", "0.61780345", "0.6172845", "0.6165684", "0.61535585", "0.6128854", "0.6104045", "0.60749567", "0.60736096", "0.6058154", "0.6053032", "0.6040247", "0.60322815", "0.6026447", "0.60218537", "0.6017036", "0.60155827", "0.60125947", "0.60007", "0.59950954", "0.59950954", "0.5974522", "0.5970117", "0.59634644", "0.596188", "0.59494925", "0.59494644", "0.5947683", "0.594181", "0.5939887", "0.5925482", "0.59115756", "0.5897561", "0.5894995", "0.58923495", "0.58873534", "0.588418", "0.5882598", "0.58630323", "0.58487123", "0.58432543", "0.5842382", "0.58418834", "0.58379054", "0.5833869", "0.5831684", "0.58298236", "0.5811446", "0.5808287", "0.5807454", "0.5800273", "0.5796148", "0.5795296", "0.5792636", "0.5788642", "0.57836187", "0.5782576", "0.577895", "0.5777872", "0.57762307", "0.5773369", "0.57718444", "0.5770371", "0.5766087", "0.5760225" ]
0.0
-1
Returns a heuristic function based on straight line distance computation.
public static ToDoubleFunction<Node<String, MoveToAction>> createSLDHeuristicFunction(String goal, Map map) { return node -> getSLD(node.getState(), goal, map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void lineGetDistanceTest() {\n\t\tDouble distanceOfFirstLine = Math.sqrt((10 - 0) * (10 - 0) + (10 - 0) * (10 - 0));\n\n\t\tassertEquals(distanceOfFirstLine, firstLine.getDistance(), .0001d);\n\t\tassertNotEquals(Math.sqrt(2 * distanceOfFirstLine),\n\t\t\t\tfirstLine.getDistance(), .0001d);\n\t}", "Execution getClosestDistance();", "public Point2d getNearestPointOnLine(final Point2d p){\n\n Vector2d orth = MathUtil.getOrthogonalDirection(direction);\n Line other = new Line (p, orth);\n\n Point2d cut = this.cut(other);\n\n if( cut == null){\n System.out.println(\"Line.getNearestPointOnLine failed!!\");\n System.out.println(\"big fail: line is\" + this.point + \"lambda*\" + this.direction + \"; point is: \"+p);\n }\n\n return cut;\n }", "double getDistance();", "public boolean line(float x0, float y0, float x1, float y1)\r\n/* 355: */ {\r\n/* 356:412 */ float dx = Math.abs(x1 - x0);\r\n/* 357:413 */ float dy = Math.abs(y1 - y0);\r\n/* 358: */ int sx;\r\n/* 359: */ int sx;\r\n/* 360:416 */ if (x0 < x1) {\r\n/* 361:418 */ sx = 1;\r\n/* 362: */ } else {\r\n/* 363:421 */ sx = -1;\r\n/* 364: */ }\r\n/* 365: */ int sy;\r\n/* 366: */ int sy;\r\n/* 367:423 */ if (y0 < y1) {\r\n/* 368:425 */ sy = 1;\r\n/* 369: */ } else {\r\n/* 370:429 */ sy = -1;\r\n/* 371: */ }\r\n/* 372:431 */ float err = dx - dy;\r\n/* 373:432 */ boolean line = true;\r\n/* 374:433 */ while (line)\r\n/* 375: */ {\r\n/* 376:435 */ float e2 = 2.0F * err;\r\n/* 377:437 */ if (e2 > -dy)\r\n/* 378: */ {\r\n/* 379:439 */ err -= dy;\r\n/* 380:440 */ x0 += sx;\r\n/* 381: */ }\r\n/* 382:442 */ if (e2 < dx)\r\n/* 383: */ {\r\n/* 384:444 */ err += dx;\r\n/* 385:445 */ y0 += sy;\r\n/* 386: */ }\r\n/* 387:448 */ line = tileWalkable(x0, y0);\r\n/* 388:451 */ if ((x0 == x1) && (y0 == y1)) {\r\n/* 389: */ break;\r\n/* 390: */ }\r\n/* 391:457 */ if (getAgentOnTile(x0, y0) != null) {\r\n/* 392:459 */ line = false;\r\n/* 393: */ }\r\n/* 394: */ }\r\n/* 395:465 */ return line;\r\n/* 396: */ }", "Execution getFarthestDistance();", "private Double distanceToLine(Vector v, PointD p)\r\n\t{\r\n\t\tPointD nearestPoint = getNearestPointOnLine(v,p);\t\t\r\n\t\t\r\n\t\tdouble x1 = nearestPoint.getX();\r\n\t\tdouble y1 = nearestPoint.getY();\r\n\t\t\r\n\t\tdouble t;\r\n\t\tif(v.getX()>v.getY())//if one component is close to zero, use other one\r\n\t\t\tt = (x1 - v.getTail().getX()) / v.getX();\r\n\t\telse\r\n\t\t\tt = (y1 - v.getTail().getY()) / v.getY();\r\n\t\t\r\n\t\tif(t < 0 || t > 1)//then calculated point is not in line segment\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn Math.sqrt((p.getX() - x1)*(p.getX() - x1) + (p.getY() - y1)*(p.getY() - y1));\r\n\t}", "public abstract double distanceFrom(double x, double y);", "private double closestDistanceFromPointToEndlessLine(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Generate a line out of two points.\n\t\tRay3D gerade = geradeAusPunkten(startSegment, endSegment);\n\t\tVector direction = gerade.getDirection();\n\t\tdouble directionNorm = direction.getNorm();\n\t\t// d(PunktA, (line[B, directionU]) = (B-A) cross directionU durch norm u\n\t\tVector b = gerade.getPoint();\n\t\tVector ba = b.subtract(point);\n\t\tdouble factor = 1.0 / directionNorm; // Geteilt durch geraden länge\n\t\tVector distance = ba.cross(direction).multiply(factor);\n\t\tdouble distanceToGerade = distance.getNorm();\n\t\treturn distanceToGerade;\n\t}", "double getDistance(Point p);", "public abstract double GetDistance();", "private double[] getGoalPointAtLookaheadDistance(\n double[] initialPointOfLine, double[] finalPointOfLine, double[] nearestPoint) {\n\n // TODO: use lookahead distance proportional to robot max speed -> 0.5 * getRobotMaxSpeed()\n return Geometry.getPointAtDistance(\n initialPointOfLine, finalPointOfLine, nearestPoint, lookaheadDistance);\n }", "public float getDistance();", "double estimatedDistanceToGoal(Vertex s, Vertex goal);", "private double heuristicCost(Point p) {\n\t\treturn distance(p, goal);\n\t}", "protected double h(Point point) {\r\n Point goalPoint=getGoalNode().getPoint();\r\n return getHeuristicFunction().computeHeuristic(point.getCoordinate(),\r\n goalPoint.getCoordinate());\r\n }", "public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);", "double getDistanceInMiles();", "double distance (double px, double py);", "@Override\n\t\t\tpublic void onLine(String line) {\n\t\t\t\tPoint p = Point.parse(line);\n\t\t\t\tNearestPointStats stats = p.getNearestPoint(centers);\n\t\t\t\tsum.set(0, sum.get(0) + stats.distance);\n\t\t\t}", "public double distance(double x, double y);", "double distanceSq (double px, double py);", "double getSquareDistance();", "private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }", "public abstract double getHeuristic(State state);", "public void setDistanceFunction(DistanceFunction distanceFunction);", "public double getDistance(final Point2d p){\n Point2d nearest = getNearestPointOnLine(p);\n return nearest.distance(p);\n }", "private Point getF(Point x) throws OptimizerException, Exception\n {\n Point r = opt.getF(x);\n r.setComment(\"Linesearch.\");\n opt.report(r, Optimizer.SUBITERATION);\n return r;\n }", "public double shortestPathDist(int src, int dest);", "private double heuristic(Node a, Node b){\n\n // absolute value of the differences in floors\n return Math.abs(a.getFloor() - b.getFloor());\n }", "private PointD getNearestPointOnLine(Vector v, PointD p)\r\n\t{\r\n\t\t//for line of form ax + by + c = 0 and point (x0, y0)\r\n\t\tdouble a = -1*v.getY();\r\n\t\tdouble b = v.getX();\r\n\t\tdouble c = v.getY()*v.getTail().getX() - v.getX()*v.getTail().getY();\r\n\r\n\t\tdouble x0 = p.getX();\r\n\t\tdouble y0 = p.getY();\r\n\t\t\r\n\t\t//nearest point on line is (x1,y1)\r\n\t\tdouble x1 = (b*(b*x0 - a*y0) - a*c )/(a*a + b*b);\r\n\t\tdouble y1 = (a*(-b*x0 + a*y0) - b*c )/(a*a + b*b);\r\n\t\t\r\n\t\treturn new PointD(x1,y1);\r\n\t}", "public static float getDistance(float x1, float y1, float x2, float y2)\r\n\t{\r\n\t\treturn (float) Math.sqrt(getSquareDistance(x1, y1, x2, y2));\r\n\t}", "protected Double getSlope(Line2D line) {\n\t\tdouble x1, y1, x2, y2;\n\t\tif (line.getX1() < line.getX2()) {\n\t\t\tx1 = line.getX1();\n\t\t\tx2 = line.getX2();\n\t\t\ty1 = line.getY1();\n\t\t\ty2 = line.getY2();\n\t\t} else {\n\t\t\tx1 = line.getX2();\n\t\t\tx2 = line.getX1();\n\t\t\ty1 = line.getY2();\n\t\t\ty2 = line.getY1();\n\t\t}\n\t\tif (x1 == x2)\n\t\t\treturn Double.POSITIVE_INFINITY;\n\t\tif (y1 == y2)\n\t\t\treturn new Double(0);\n\t\telse\n\t\t\treturn (y2 - y1) / (x2 - x1);\n\t}", "public static double getDistance(int x1, int y1, int x2, int y2)\n {\n double dx = x2 - x1;\n double dy = y2 - y1;\n\n // return Math.hypot(x2 - x1, y2 - y1); // Extremely slow\n // return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); // 20 times faster than hypot\n return Math.sqrt(dx * dx + dy * dy); // 10 times faster then previous line\n }", "public float getFallDistance ( ) {\n\t\treturn extract ( handle -> handle.getFallDistance ( ) );\n\t}", "private double getHeuristic(MapLocation current, MapLocation goal) {\n\t\treturn Math.max(Math.abs(current.x - goal.x), Math.abs(current.y - goal.y));\n\t}", "public void testClosestApprochDist() {\r\n System.out.println(\"closestApprochDist\");\r\n\r\n ParametricLine2d other = new ParametricLine2d(new Point2d(), new Vector2d(0.0, 1.0));;\r\n ParametricLine2d instance = new ParametricLine2d();\r\n\r\n double expResult = 0.0;\r\n double result = instance.closestApprochDist(other);\r\n assertEquals(expResult, result);\r\n }", "private int heuristic(int x, int y, MapLocation goal) {\n return Math.max(Math.abs(x - goal.x), Math.abs(y - goal.y));\n }", "@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}", "public static double chebyshev(Rectangle2D rect, double px, double py) {\n if (rect.contains(px, py)) {\n return -1;\n }\n // determine the distance between the point and the point projected\n // onto the rectangle, or clamped into it, so to say\n return chebyshev(px, py, clamp(px, rect.getMinX(), rect.getMaxX()),\n clamp(py, rect.getMinY(), rect.getMaxY()));\n }", "boolean hasDistance();", "public Vector3d computeLineIntersection(\r\n\t\tCSGRay\t\t\tpOtherLine\r\n\t,\tVector3d\t\tpResult\r\n\t,\tdouble\t\t\tpTolerance\r\n\t,\tCSGTempVars\t\tpTempVars\r\n\t,\tCSGEnvironment\tpEnvironment\r\n\t) {\r\n\t\t//x = x1 + a1*t = x2 + b1*s\r\n\t\t//y = y1 + a2*t = y2 + b2*s\r\n\t\t//z = z1 + a3*t = z2 + b3*s\r\n\t\tVector3d lineOrigin = pOtherLine.getOrigin(); \r\n\t\tVector3d lineDirection = pOtherLine.getDirection();\r\n\t\t\t\t\r\n\t\tdouble t;\r\n\t\tif ( Math.abs( mDirection.y*lineDirection.x - mDirection.x*lineDirection.y ) > pTolerance ) {\r\n\t\t\tt = (-mOrigin.y*lineDirection.x\r\n\t\t\t\t\t+ lineOrigin.y*lineDirection.x\r\n\t\t\t\t\t+ lineDirection.y*mOrigin.x\r\n\t\t\t\t\t- lineDirection.y*lineOrigin.x) \r\n\t\t\t\t/ (mDirection.y*lineDirection.x - mDirection.x*lineDirection.y);\r\n\t\t\t\r\n\t\t} else if ( Math.abs( -mDirection.x*lineDirection.z + mDirection.z*lineDirection.x) > pTolerance ) {\r\n\t\t\tt = -(-lineDirection.z*mOrigin.x\r\n\t\t\t\t\t+ lineDirection.z*lineOrigin.x\r\n\t\t\t\t\t+ lineDirection.x*mOrigin.z\r\n\t\t\t\t\t- lineDirection.x*lineOrigin.z)\r\n\t\t\t\t/ (-mDirection.x*lineDirection.z + mDirection.z*lineDirection.x);\r\n\t\t\t\r\n\t\t} else if ( Math.abs( -mDirection.z*lineDirection.y + mDirection.y*lineDirection.z) > pTolerance ) {\r\n\t\t\tt = (mOrigin.z*lineDirection.y\r\n\t\t\t\t\t- lineOrigin.z*lineDirection.y\r\n\t\t\t\t\t- lineDirection.z*mOrigin.y\r\n\t\t\t\t\t+ lineDirection.z*lineOrigin.y)\r\n\t\t\t\t/ (-mDirection.z*lineDirection.y + mDirection.y*lineDirection.z);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t// Nothing we can figure out\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Construct a new position based on what we know \r\n\t\tpResult = mDirection.mult( t, pResult );\r\n\t\tpResult.addLocal( mOrigin );\r\n\t\t\r\n\t\tif ( pEnvironment.mRationalizeValues ) {\r\n\t\t\t// Confirm that the magnitudes of the resultant point are rational\r\n\t\t\tCSGEnvironment.rationalizeVector( pResult, pEnvironment.mEpsilonMagnitudeRange );\r\n\t\t}\r\n\t\treturn( pResult );\r\n\t}", "Integer distance(PathFindingNode a, PathFindingNode b);", "static double distToLine(PointDouble p, PointDouble a, PointDouble b, PointDouble c) {\n // formula: c = a + u * ab\n Vec ap = vector(a, p), ab = vector(a, b);\n double u = dot(ap, ab) / squaredNorm(ab);\n c = translate(a, scale(ab, u)); // translate a to c\n return dist(p, c);\n }", "@Override\n public float distanceAdjacent(int x1, int y1, int x2, int y2) {\n float duration = 0;\n\n if (x1 == x2 || y1 == y2) {\n MapTile.Instance fromTile = getTileData(x1, y1);\n MapTile.Instance toTile = getTileData(x2, y2);\n assert fromTile != null && toTile != null;\n\n Direction move = Direction.get(x2 - x1, y2 - y1);\n\n int fromHeight = fromTile.heightOf(move);\n int toHeight = toTile.heightOf(move.inverse());\n\n // steepness\n float t1inc = (fromHeight - fromTile.getHeight()) / (TILE_SIZE / 2);\n float t2inc = (toHeight - toTile.getHeight()) / (TILE_SIZE / 2);\n\n // actual duration of walking\n float walkSpeedT1 = (1f / hypoLength(t1inc)) * walkSpeed;\n float walkSpeedT2 = (1f / hypoLength(t2inc)) * walkSpeed;\n\n // duration += walkspeed(steepness_1) * dist + walkspeed(steepness_2) * dist\n duration += (walkSpeedT1 + walkSpeedT2) * TILE_SIZE;\n\n // height difference on the sides of the tiles\n float cliffHeight = (toHeight - fromHeight) * TILE_SIZE_Z;\n\n // climbing if more than 'an acceptable height'\n if (cliffHeight > 0) {\n duration += (cliffHeight / climbSpeed);\n }\n\n } else {\n // TODO allow diagonal tracing\n Logger.WARN.print(String.format(\n \"Pathfinding (%s) asked for non-adjacent tiles (%d, %d) (%d, %d)\",\n getClass(), x1, y1, x2, y2\n ));\n\n return Float.POSITIVE_INFINITY;\n }\n\n return duration;\n }", "public abstract double calculateDistance(double[] x1, double[] x2);", "public BestPath getBestPath(String origin, String destination, FlightCriteria criteria, String airliner) {\r\n\t\tint originIndex = 0;\r\n\t\tif(airportNames.contains(origin)){\r\n\t\t\toriginIndex = airportNames.indexOf(origin);\r\n\t\t}\r\n\t\tint destinationIndex = 0;\r\n\t\tif(airportNames.contains(destination)){\r\n\t\t\tdestinationIndex = airportNames.indexOf(destination);\r\n\t\t}\r\n\t\tAirport start = allAirports.get(originIndex);\r\n\t\tAirport goal = allAirports.get(destinationIndex);\r\n\r\n\t\tPriorityQueue<Airport> queue = new PriorityQueue<Airport>();\r\n\t\r\n\t\tLinkedList<String> path = new LinkedList<String>();\r\n\r\n\t\tstart.setWeight(0);\r\n\t\tqueue.add(start);\r\n\t\tAirport current;\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tcurrent = queue.poll();\r\n\t\t\t\r\n\t\t\tif(current.compareTo(goal) == 0) {\r\n\t\t\t\tdouble finalWeight = current.getWeight();\r\n\t\t\t\t\r\n\t\t\t\twhile(current.compareTo(start) != 0){\r\n\t\t\t\t\t\r\n\t\t\t\t\tpath.addFirst(current.getAirport());\r\n\t\t\t\t\tcurrent = current.getPrevious();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpath.addFirst(start.getAirport());\r\n\t\t\t\tBestPath bestPath = new BestPath(path, finalWeight);\r\n\t\t\t\treturn bestPath;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent.visited = true;\r\n\t\t\tAirport neighbor = current;\r\n\t\t\tArrayList<Flight> currentFlights;\r\n\t\t\tfor (int i = 0; i < current.size(); i++){\r\n\t\t\t\tcurrentFlights = new ArrayList<Flight>();\r\n\t\t\t\tcurrentFlights = current.getOutgoingFlights();\r\n\t\t\t\tneighbor = currentFlights.get(i).getDestination();\r\n\t\t\t\tdouble neighborWeight = neighbor.getWeight();\r\n\t\t\t\tcurrentFlights.get(i).setWeight(criteria);\r\n\t\t\t\tdouble flightWeight = currentFlights.get(i).getFlightWeight();\r\n\t\t\t\tif((neighborWeight > (current.getWeight() + flightWeight)) && currentFlights.get(i).getCarrier() == airliner){\r\n\t\t\t\t\tqueue.add(neighbor);\r\n\t\t\t\t\tneighbor.setPrevious(current);\r\n\t\t\t\t\tneighbor.setWeight(current.getWeight() + flightWeight);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public int heuristic()\n {\n if (this.heuristic != Integer.MIN_VALUE)\n return this.heuristic;\n this.heuristic = 0;\n if (!this.safe)\n return 0;\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.heuristic = (this.d.size() * 100) + (this.NE * 10) + bonus;\n // value:\n return this.heuristic;\n }", "public double distancePointLine(Point2D PV, Point2D LV1, Point2D LV2) {\n\t\t\t\t\t\t\t\t\t\t\n\t Point2D slope = new Point2D (LV2.x() - LV1.x(), LV2.y() - LV1.y());\t\t\t\t// slope of line\n\t double lineLengthi = slope.x() * slope.x() + slope.y() * slope.y(); \t\t// squared length of line;\n\n\t Point2D s = new Point2D(PV.x() - LV1.x(), PV.y() - LV1.y());\n\t\tdouble ti = (s.x()* slope.x()+ s.y()*slope.y())/lineLengthi;\n\t\tPoint2D p = new Point2D(slope.x() * ti, slope.y() * ti);\t\t\t\t\t\t// crawl the line acoording to its slope to distance t\n\t\tPoint2D projectionOnLine = new Point2D(LV1.x()+p.x(), LV1.y()+p.y());\t\t\t// add the starting coordinates\t\t\t\n\t\tPoint2D subber = new Point2D(projectionOnLine.x()- PV.x(), projectionOnLine.y()- PV.y()); // now calculate the distance of the measuring point to the projected point on the line\n\t\tdouble dist = (float) Math.sqrt(subber.x() * subber.x() + subber.y() * subber.y());\n\t\treturn dist;\n\t}", "private List<Double> calculateHeuristic(GameState misState){\n List<Double> heuristics = new ArrayList();\n for (int i = 0; i < misState.getNrPlayers(); i++){\n if (misState.isDead(i)){\n heuristics.add(-1000.0); //minimax player is dead, i.e. really bad\n }\n else{\n double score = 500.0;\n //score returned euals 500 - distance to food.\n heuristics.add(score - calculateDistance(misState.getPlayerX(i).get(0), misState.getPlayerY(i).get(0), misState.getTargetX(), misState.getTargetY()));\n } \n }\n return heuristics;\n }", "public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);", "private double getDistance(Vector2i tile, Vector2i goal) {\n\t\t double dx = tile.getX() - goal.getX();\n\t\t double dy = tile.getY() - goal.getY();\n\t\t return Math.sqrt(dx * dx + dy *dy); //distance \n\t }", "@Override\r\n protected Double h(Point from, Point to) {\r\n /* Use the Manhattan distance heuristic. */\r\n return (double) Math.abs(finish.x - to.x) + Math.abs(finish.y - to.y);\r\n }", "public double calDistance()\n {\n double closest = poly[0].getD();\n\n for(int i = 1; i < sides; i++)\n {\n if(closest > poly[i].getD())\n {\n closest = poly[i].getD();\n }\n }\n this.distance = closest;\n\n return closest;\n }", "public static Vector2i getClosestPointOnLine(int x1, int y1, int x2, int y2, int px, int py) {\n\t\n\t\tdouble xDelta = x2 - x1;\n\t\tdouble yDelta = y2 - y1;\n\t\t\n\t\t// line segment with length = 0\n\t\tif( (xDelta==0) && (yDelta==0) ) {\n\t\t\treturn new Vector2i(px, py);\n\t\t}\n\t\t\n\t\tdouble u = ((px - x1) * xDelta + (py - y1) * yDelta) / (xDelta * xDelta + yDelta * yDelta);\n\t\t\n\t\tVector2i closestPoint;\n\t\tif(u < 0) {\n\t\t\tclosestPoint = new Vector2i(x1, y1);\n\t\t\t\n\t\t} else if( u > 1) {\n\t\t\tclosestPoint = new Vector2i(x2, y2);\n\t\t\t\n\t\t} else {\n\t\t\tclosestPoint = new Vector2i((int)(x1+u*xDelta), (int)(y1+u*yDelta));\n\t\t\t\n\t\t}\n\t\t\n\t\treturn closestPoint;\n\t}", "public static float PointDistanceToLine(final Point point, final Point lineStart, final Point lineEnd) {\n Vector rotated = VectorTurnedLeft(Vector(lineStart, lineEnd).normal());\n Vector base = Vector(point, lineStart);\n return abs(dotProduct(base, rotated));\n }", "private double calcSide(int x1,int y1, int x2, int y2){\n \n double distance1 = Math.sqrt(Math.pow(x2 - x1,2) + Math.pow(y2-y1,2));\n \n return distance1;\n \n \n \n }", "public double getMaxSourceDistance();", "@Override\n public ArrayList<GraphEdge> getRoute(GraphNode a, GraphNode b) {\n \tHashMap<GraphNode, Double> distances = new HashMap<GraphNode, Double>();\n \tHashMap<GraphNode, GraphEdge> predecessor = new HashMap<GraphNode, GraphEdge>();\n \tHashSet<GraphNode> visited = new HashSet<GraphNode>();\n \t\n \tArrayList<GraphEdge> result = new ArrayList<GraphEdge>();\n\t\n \t//Initialize distances, predecessor, and visited\n \tfor(GraphNode g : drivableNodes) {\n \t distances.put(g, Double.MAX_VALUE);\n \t predecessor.put(g, null);\n \t}\n \t\n \tint remaining = drivableNodes.size();\n \t\n \t//Put starting node\n \tdistances.put(a, 0.0);\n \t//predecessor.put(a, null);\n \t\n \t//Main loop\n \twhile(remaining > 0) {\n \t GraphNode closest = null;\n \t double minDist = Double.MAX_VALUE;\n\n \t for(GraphNode n : distances.keySet()) {\n \t\tdouble dist = distances.get(n);\n \t\tif(!visited.contains(n) &&\n \t\t\tdist != Double.MAX_VALUE &&\n \t\t\t(minDist == Double.MAX_VALUE || dist < minDist)) {\n \t\t closest = n;\n \t\t minDist = dist;\n \t\t}\n \t }\n \t \n \t if(closest == null)\n \t\treturn null;\n \t \n \t if(closest.equals(b))\n \t\tbreak;\n \t \n \t visited.add(closest);\n \t \n \t for(GraphEdge edge : closest.getEdges()) {\n \t\tGraphNode adjacent = edge.getOtherNode(closest);\n \t\tif(adjacent != null && !visited.contains(adjacent)) {\n \t\t //Map distance value for the other Node\n \t\t double otherDist = distances.get(adjacent);\n \t\t //Weight of edge from closest node to adjacent node\n \t\t double weight = edge.getWeight();\n \t\t String way = edge.getWay();\n \t\t \n \t\t if(otherDist == Double.MAX_VALUE ||\n \t\t\t weight + minDist < otherDist) {\n \t\t\tdistances.put(adjacent, weight + minDist);\n \t\t\t\n \t\t\t//Make new edge in correct order\n \t\t\tGraphEdge corrected = new GraphEdge(closest, adjacent, weight, way);\n \t\t\t\n \t\t\tpredecessor.put(adjacent, corrected);\n \t\t }\n \t\t}\n \t }\n\n \t remaining--;\n \t}\n \t\n \t//Backtrack to build route\n \tif(distances.get(b) == Double.MAX_VALUE) {\n \t return null;\n \t} else {\n \t //buildPath(predecessor, a, b, result);\n \t //Non recursive version\n \t Stack<GraphEdge> stack = new Stack<GraphEdge>(); \n \t while(!b.equals(a)) {\n \t\tGraphEdge edge = predecessor.get(b);\n \t\t\n \t\t//Make sure vertices are in correct order\n \t\tGraphNode start = edge.getOtherNode(b);\n \t\t//double weight = edge.getWeight();\n \t\t//GraphEdge corrected = new GraphEdge(start, b, weight);\n \t\t\n \t\tstack.push(edge);\n \t\tb = start;\n \t }\n \t \n \t while(!stack.isEmpty()) {\n \t\tGraphEdge edge = stack.pop();\n \t\tresult.add(edge);\n \t }\n \t}\n \t\n\treturn result;\n }", "private void diagonal(Node node, int d){\n double cost;\n if(d == 2) { //Chebyshev distance\n cost = 1;\n }\n else { //Octile distance\n cost = Math.sqrt(2);\n }\n int row1 = this.row;\n int col1 = this.col;\n int row2 = node.getRow();\n int col2 = node.getCol();\n\n int x = Math.abs(row1-row2);\n int y = Math.abs(col1-col2);\n\n this.hVal = (float)((x+y) + ((cost - 2) * (Math.min(x,y))));\n }", "public Polyline createHelicopterRoute(Double originLat, Double originLong,\n Double destinationLat, Double destinationLong) {\n\n LatLong originLatLong = new LatLong(originLat, originLong);\n LatLong destinationLatLong = new LatLong(destinationLat, destinationLong);\n LatLong[] coordinatesList = new LatLong[]{originLatLong, destinationLatLong};\n\n MVCArray pointsOnMap = new MVCArray(coordinatesList);\n PolylineOptions polyOpts = new PolylineOptions().path(pointsOnMap)\n .strokeColor(\"blue\").strokeWeight(2);\n\n return new Polyline(polyOpts);\n }", "public static Point searchNearestEgde(Rectangle bounds, Point first, Point next) {\n\n // One offset needed to avoid intersection with the wrong line.\n if (bounds.x + bounds.width <= first.x)\n first.x = bounds.x + bounds.width - 1;\n else if (bounds.x >= first.x) first.x = bounds.x + 1;\n\n if (bounds.y + bounds.height <= first.y)\n first.y = bounds.height + bounds.y - 1;\n else if (bounds.y >= first.y) first.y = bounds.y + 1;\n\n Line2D relationLine = new Line2D.Float(first.x, first.y, next.x, next.y);\n Line2D lineTop = new Line2D.Float(bounds.x, bounds.y, bounds.x\n + bounds.width, bounds.y);\n Line2D lineRight = new Line2D.Float(bounds.x + bounds.width, bounds.y,\n bounds.x + bounds.width, bounds.y + bounds.height);\n Line2D lineBottom = new Line2D.Float(bounds.x + bounds.width, bounds.y\n + bounds.height, bounds.x, bounds.y + bounds.height);\n Line2D lineLeft = new Line2D.Float(bounds.x, bounds.y + bounds.height,\n bounds.x, bounds.y);\n\n Point2D ptIntersectTop = ptIntersectsLines(relationLine, lineTop);\n Point2D ptIntersectRight = ptIntersectsLines(relationLine, lineRight);\n Point2D ptIntersectBottom = ptIntersectsLines(relationLine, lineBottom);\n Point2D ptIntersectLeft = ptIntersectsLines(relationLine, lineLeft);\n\n // line is to infinite, we must verify that the point find interst the\n // correct edge and the relation.\n int distTop = (int) lineTop.ptSegDist(ptIntersectTop)\n + (int) relationLine.ptSegDist(ptIntersectTop);\n int distRight = (int) lineRight.ptSegDist(ptIntersectRight)\n + (int) relationLine.ptSegDist(ptIntersectRight);\n int distBottom = (int) lineBottom.ptSegDist(ptIntersectBottom)\n + (int) relationLine.ptSegDist(ptIntersectBottom);\n int distLeft = (int) lineLeft.ptSegDist(ptIntersectLeft)\n + (int) relationLine.ptSegDist(ptIntersectLeft);\n\n if (ptIntersectTop != null && distTop == 0) {\n return new Point(RelationGrip.adjust((int) ptIntersectTop.getX()),\n (int) ptIntersectTop.getY());\n\n } else if (ptIntersectRight != null && distRight == 0) {\n return new Point((int) ptIntersectRight.getX(),\n RelationGrip.adjust((int) ptIntersectRight.getY()));\n\n } else if (ptIntersectBottom != null && distBottom == 0) {\n return new Point(RelationGrip.adjust((int) ptIntersectBottom.getX()),\n (int) ptIntersectBottom.getY());\n\n } else if (ptIntersectLeft != null && distLeft == 0) {\n return new Point((int) ptIntersectLeft.getX(),\n RelationGrip.adjust((int) ptIntersectLeft.getY()));\n\n } else {\n return null; // no point found!\n }\n }", "public double ComputeDistance(){ \n\t\tdouble lat1 = this.depAirportCity.getLatDegs() + (double)(this.depAirportCity.getLatMins())/60; \n\t\tdouble lon1 = this.depAirportCity.getLongDegs() + (double)(this.depAirportCity.getLongMins())/60;\n\t\tdouble lat2 = this.arrAirportCity.getLatDegs() + (double)(this.arrAirportCity.getLatMins())/60; \n\t\tdouble lon2 = this.arrAirportCity.getLongDegs() + (double)(this.arrAirportCity.getLongMins())/60;\n\t\t\n\t\tdouble distance = Haversine.getMiles(lat1, lon1, lat2, lon2);\n\t\treturn distance;\n\t}", "Pair<Vertex, Double> closestVertexToPath(Loc pos);", "public double lineLenght() {\n\t\tdouble xdif = p1.getX() - p2.getX();\n\t\tdouble ydif = p1.getY() - p2.getY();\n\t\treturn Math.sqrt(xdif*xdif+ydif*ydif);\t\n\t\t\t\n\t}", "public double getDistance(double x, double y) {\n double xdist = 0;\n if (x < x1 && x < x2) xdist = Math.min(x1, x2) - x;\n else if (x > x1 && x > x2) xdist = x - Math.max(x1, x2);\n double ydist = 0;\n if (y < y1 && y < y2) ydist = Math.min(y1, y2) - y;\n else if (y > y1 && y > y2) ydist = y - Math.max(y1, y2);\n return Math.sqrt(xdist * xdist + ydist * ydist);\n }", "static double slope(Line line) {\n return (line.b == 1) ? -line.a : INF;\n }", "public void calcHeuristic(StringMatrix m) {\n\n sc.highlight(1);\n sc.unhighlight(5);\n sc.unhighlight(6);\n heuristic = new PrecisionHeuristic();\n for (int i = 1; i < m.getNrRows(); i++) {\n\n double positiveValue = Double.valueOf(m.getElement(i, 2));\n double negativeValue = Double.valueOf(m.getElement(i, 3));\n\n setExplanationText(translator.translateMessage(\"calc\")\n + translator.translateMessage(heuristic.getDescription()) + \"\\n\"\n + heuristic.getFormula(positiveValue, negativeValue));\n\n m.put(i, m.getNrCols() - 1,\n String.valueOf(\n heuristic.round(heuristic.calc(positiveValue, negativeValue), 2)),\n null, null);\n lang.nextStep();\n }\n }", "public static FastLineDetector createFastLineDetector(int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2, int _canny_aperture_size, boolean _do_merge)\r\n {\r\n \r\n FastLineDetector retVal = FastLineDetector.__fromPtr__(createFastLineDetector_0(_length_threshold, _distance_threshold, _canny_th1, _canny_th2, _canny_aperture_size, _do_merge));\r\n \r\n return retVal;\r\n }", "public int getMouseSeismicLine2dIntersect(double[][] mouseLine, double[] intersectionXYZF)\n {\n double mouseLineLenSq;\n double[] lineVector;\n double[] pointVector0, pointVector1;\n double x0, y0, x1, y1;\n\n if(nCols < 1)\n {\n intersectionXYZF[3] = StsParameters.largeDouble;\n return -1;\n }\n try\n {\n mouseLineLenSq = StsMath.distanceSq(mouseLine[0], mouseLine[1], 2);\n lineVector = StsMath.subtract(mouseLine[1], mouseLine[0]);\n pointVector1 = StsMath.vector2(mouseLine[0][0], mouseLine[0][1], cdpX[0], cdpY[0]);\n y1 = computePointCoordinatesY(pointVector1, lineVector, mouseLineLenSq);\n int nPointNearest = 0;\n double fLineNearest = StsParameters.largeDouble;\n for(int n = 1; n < nCols; n++)\n {\n pointVector0 = pointVector1;\n pointVector1 = StsMath.vector2(mouseLine[0][0], mouseLine[0][1], cdpX[n], cdpY[n]);\n y0 = y1;\n y1 = computePointCoordinatesY(pointVector1, lineVector, mouseLineLenSq);\n\n if(y1 * y0 < 0.0)\n {\n x0 = computePointCoordinatesX(pointVector0, lineVector, mouseLineLenSq);\n x1 = computePointCoordinatesX(pointVector1, lineVector, mouseLineLenSq);\n\n double fPoint = -y0 / (y1 - y0);\n double fLine = x0 + fPoint * (x1 - x0);\n double z = mouseLine[0][2] + fLine * (mouseLine[1][2] - mouseLine[0][2]);\n if(fLine < fLineNearest && StsMath.betweenInclusive(z, zMin, zMax))\n {\n fLineNearest = fLine;\n\n if(fPoint <= 0.5)\n nPointNearest = n - 1;\n else\n nPointNearest = n;\n }\n }\n }\n if(!StsMath.interpolate(mouseLine[0], mouseLine[1], fLineNearest, 3, intersectionXYZF))\n return -1;\n intersectionXYZF[3] = fLineNearest;\n return nPointNearest;\n }\n catch(Exception e)\n {\n return -1;\n }\n }", "public int heuristic() {\n if (heuristic == -1)\r\n heuristic = Puzzle.this.heuristic(this);\r\n return heuristic;\r\n }", "static float stripClosest(ArrayList<Point> strip, float d) \n\t{ \n\t float min = d; // Initialize the minimum distance as d \n\t \n\t //This loop runs at most 7 times \n\t for (int i = 0; i < strip.size(); ++i) \n\t for (int j = i+1; j < strip.size() && (strip.get(j).y - strip.get(i).y) < min; ++j) \n\t if (Dist(strip.get(i),strip.get(j)) < min) \n\t min = Dist(strip.get(i), strip.get(j)); \n\t \n\t return min; \n\t}", "static double distToLineSegment(PointDouble p, PointDouble a, PointDouble b, PointDouble c) {\n Vec ap = vector(a, p), ab = vector(a, b);\n double u = dot(ap, ab) / squaredNorm(ab);\n if (u < 0.0) { c = new PointDouble(a.x, a.y); // closer to a\n return dist(p, a); } // Euclidean distance between p and a\n if (u > 1.0) { c = new PointDouble(b.x, b.y); // closer to b\n return dist(p, b); } // Euclidean distance between p and b\n return distToLine(p, a, b, c); }", "private double getDistance(Vector2i tile, Vector2i goal) {\r\n\t\tdouble dx = tile.getX() - goal.getX();\r\n\t\tdouble dy = tile.getY() - goal.getY();\r\n\t\treturn Math.sqrt((dx * dx) + (dy * dy));\r\n\t}", "private Vector3f linePlaneIntersection(Vector3f planePoint, Vector3f planeNormal, Vector3f linePoint,\n\t\t\tVector3f lineDirection) {\n\t\tif (planeNormal.dot(lineDirection) == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tfloat t = (planeNormal.dot(planePoint) - planeNormal.dot(linePoint)) / planeNormal.dot(lineDirection);\n\t\tVector3f ret = lineDirection.mul(t, new Vector3f());\n\t\treturn ret.add(linePoint);\n\t}", "public abstract void lineTo(double x, double y);", "double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }", "private double calculateT(Position lineStart, Position lineEnd, double lookaheadDistance) {\n Position d = Functions.Positions.subtract(lineEnd, lineStart);\n Position f = Functions.Positions.subtract(lineStart, currentCoord);\n double r = lookaheadDistance;\n\n double a = Functions.Positions.dot(d, d);\n double b = 2 * Functions.Positions.dot(f, d);\n double c = Functions.Positions.dot(f, f) - r * r;\n\n double discriminant = b * b - 4 * a * c;\n if (discriminant < 0) {\n // no intersection\n } else {\n // ray didn't totally miss sphere, so there is a solution to the equation.\n discriminant = Math.sqrt(discriminant);\n\n // either solution may be on or off the ray so need to test both\n // t1 is always the smaller value, because BOTH discriminant and a are nonnegative.\n double t1 = (-b - discriminant) / (2 * a);\n double t2 = (-b + discriminant) / (2 * a);\n\n // 3x HIT cases:\n // -o-> --|--> | | --|->\n // Impale(t1 hit,t2 hit), Poke(t1 hit,t2>1), ExitWound(t1<0, t2 hit),\n\n // 3x MISS cases:\n // -> o o -> | -> |\n // FallShort (t1>1,t2>1), Past (t1<0,t2<0), CompletelyInside(t1<0, t2>1)\n\n if (t1 >= 0 && t1 <= 1) {\n // t1 is the intersection, and it's closer than t2 (since t1 uses -b - discriminant)\n // Impale, Poke\n return t1;\n }\n\n if (t2 >= 0 && t2 <= 1) {\n return t2;\n }\n }\n return Double.NaN;\n }", "public int getHeuristicScore2() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \t//int cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic; //+ cost;\r\n }", "public interface PathCalculationStrategy {\n\t\n\t/**\n\t * Returns the shortest path for a Journey.\n\t * \n\t * @param grid the traffic grid.\n\t * @param src the source location.\n\t * @param dest the destination location.\n\t * \n\t * @return a List containing the path for the Journey.\n\t */\n\tList<Point> getPath(int grid[][], Point src, Point dest);\n}", "@Override\n\tpublic float getDistance(float[] fv1, float[] fv2) {\n\t\tif(settings.getMetric() == 1){\n\t\t\treturn getL1Distance(fv1, fv2);\n\t\t} else { //metric == 2\n\t\t\treturn getL2Distance(fv1, fv2);\n\t\t}\n\t\t\n\t\t\n\t}", "synchronized public Route getRouteLaPlusProcheDuPoint(final int x,final int y){\n\t\t//int i=0;\n\t\tfloat min=9999999.0f, calc = 999999.0f;\n\t\tRoute tmp = null;\n\t\tfor(Route v : routes){\n\t\t\tif(v != null){\n\t\t\t\tcalc = v.distance(x, y);\n\t\t\t\tif(calc < min && calc < 30.0f){\n\t\t\t\t\tmin = calc;\n\t\t\t\t\t//i+=1;\n\t\t\t\t\ttmp=v;\n\t\t\t\t\t//System.out.println(\"Routes cliquer: \"+v.getNomVille1()+\" \"+v.getNomVille2()+\" i\"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn tmp;\n\t\t//return routes.get(i);\n\t\t/*\n\t\tif(i<0)\n\t\t\treturn null;\n\t\t\n\t\tif(routes.get(i) instanceof RouteDouble)\n\t\t\treturn new RouteDouble((RouteDouble)(routes.get(i)));\n\t\treturn new Route(routes.get(i));\n\t\t//*/\n\t}", "public void testClosestApprochDistSqr() {\r\n System.out.println(\"closestApprochDistSqr\");\r\n\r\n ParametricLine2d other = new ParametricLine2d(new Point2d(), new Vector2d(0.0, 1.0));\r\n ParametricLine2d instance = new ParametricLine2d();\r\n\r\n double expResult = 0.0;\r\n double result = instance.closestApprochDistSqr(other);\r\n assertEquals(expResult, result);\r\n }", "public double h_function(Node node, Node targetNode, boolean isTime){\n double h = node.location.distance(targetNode.location);\n if(isTime) h = h/110;\n return h;\n // distance between two Nodes\n }", "public int getHeuristicScore() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \tint cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic + cost;\r\n }", "public float getCost(Node n){\n char t1 = this.type;\n char t2 = n.getType();\n int row1 = this.row;\n int col1 = this.col;\n int row2 = n.getRow();\n int col2 = n.getCol();\n boolean straight;\n\n if(row1 == row2 || col1 == col2)\n straight = true;\n else\n straight = false;\n\n if(straight){\n switch (t1){\n case '1':\n switch (t2){\n case '1':\n return 1;\n case '2':\n return (float)1.5;\n case 'a':\n return 1;\n case 'b':\n return (float)1.5;\n }\n break;\n case '2':\n switch (t2){\n case '1':\n return (float)1.5;\n case '2':\n return 2;\n case 'a':\n return (float)1.5;\n case 'b':\n return 2;\n }\n break;\n case 'a':\n switch (t2){\n case '1':\n return 1;\n case '2':\n return (float)1.5;\n case 'a':\n return (float).25;\n case 'b':\n return (float).375;\n }\n break;\n case 'b':\n switch (t2){\n case '1':\n return (float)1.5;\n case '2':\n return 2;\n case 'a':\n return (float).375;\n case 'b':\n return (float).25;\n }\n break;\n }\n } else{\n switch(t1){\n case '1':\n switch (t2){\n case 'a':\n case '1':\n return (float)Math.sqrt(2);\n case '2':\n case 'b':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n }\n break;\n case '2':\n switch (t2){\n case 'a':\n case '1':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n case '2':\n case 'b':\n return (float)Math.sqrt(8);\n }\n break;\n case 'a':\n switch (t2){\n case 'a':\n case '1':\n return (float)Math.sqrt(2);\n case '2':\n case 'b':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n }\n break;\n case 'b':\n switch (t2){\n case 'a':\n case '1':\n return (float)((Math.sqrt(2)+Math.sqrt(8))/2);\n case '2':\n case 'b':\n return (float)Math.sqrt(8);\n }\n break;\n }\n }\n\n return 0;\n }", "private void linearFunction(Graphics g, double x0, double y0, double x1, double y1) {\n //abriviaciones para las funciones\n double dx = x1 - x0;\n double dy = y1 - y0;\n\n if (Math.abs(dx) > Math.abs(dy)) {\n double m = dy / dx;\n double b = y0 - m * x0;\n if (dx < 0) {\n dx = -1;\n } else {\n dx = 1;\n }\n\n while (x0 != x1) {\n x0 += dx;\n y0 = Math.round(m * x0 + b);\n g.drawLine((int) coord_x(x0), (int) coord_y(y0), (int) coord_x(x0), (int) coord_y(y0));\n }\n } else {\n if (dy != 0) {\n double m = dx / dy;\n double b = x0 - m * y0;\n if (dy < 0) {\n dy = -1;\n } else {\n dy = 1;\n }\n while (y0 != y1) {\n y0 += dy;\n x0 = Math.round(m * y0 + b);\n g.drawLine((int) coord_x(x0), (int) coord_y(y0), (int) coord_x(x0), (int) coord_y(y0));\n }\n }\n }\n }", "protected int bestDirection(int _y, int _x)\n {\n int sX = -1, sY = -1;\n for (int i = 0; i < m; i++) {\n boolean breakable = false;\n for (int j = 0; j < n; j++) {\n if (map[i][j] == 'p' || map[i][j] == '5') {\n sX = i;\n sY = j;\n breakable = true;\n break;\n }\n }\n if(breakable) break;\n sX =0; sY = 0;\n }\n Pair s = new Pair(sX, sY);\n Queue<Pair> queue = new Queue<Pair>();\n int[][] distance = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n distance[i][j] = -1;\n distance[sX][sY] = 0;\n queue.add(s);\n /*\n System.out.println(\"DEBUG TIME!!!!\");\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.print(map[i][j]);\n System.out.println();\n }\n System.out.println();\n */\n while (!queue.isEmpty())\n {\n Pair u = queue.remove();\n for (int i = 0; i < 4; i++)\n {\n int x = u.getX() + hX[i];\n int y = u.getY() + hY[i];\n if (!validate(x, y)) continue;\n if (distance[x][y] != -1) continue;\n if (!canGo.get(map[x][y])) continue;\n distance[x][y] = distance[u.getX()][u.getY()] + 1;\n queue.add(new Pair(x, y));\n }\n }\n\n //slove if this enemy in danger\n //System.out.println(_x + \" \" + _y);\n if (inDanger[_x][_y])\n {\n int direction = -1;\n boolean canAlive = false;\n int curDistance = dangerDistance[_x][_y];\n int distanceToBomber = m * n;\n if (curDistance == -1) return 0;\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y)) continue;\n if (dangerDistance[x][y] == -1) continue;\n if (dangerDistance[x][y] < curDistance)\n {\n curDistance = dangerDistance[x][y];\n direction = i;\n distanceToBomber = distance[x][y];\n } else if (dangerDistance[x][y] == curDistance)\n {\n if (distanceToBomber == -1 || distanceToBomber > distance[x][y])\n {\n direction = i;\n distanceToBomber = distance[x][y];\n }\n }\n }\n if (direction == -1) direction = random.nextInt(4);\n allowSpeedUp = true;\n return direction;\n }\n // or not, it will try to catch bomber\n else\n {\n /*\n System.out.println(\"x = \" + _x + \"y = \" + _y);\n for(int i = 0; i < n; i++) System.out.printf(\"%2d \",i);\n System.out.println();\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.printf(\"%2d \",distance[i][j]);\n System.out.println();\n }\n System.out.println();\n System.out.println();\n */\n int direction = -1;\n int[] die = new int[4];\n for (int i = 0; i < 4; i++)\n die[i] = 0;\n int curDistance = distance[_x][_y];\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y))\n {\n die[i] = 1;\n continue;\n }\n ;\n if (inDanger[x][y])\n {\n die[i] = 2;\n continue;\n }\n if (distance[x][y] == -1) continue;\n if (distance[x][y] < curDistance)\n {\n curDistance = distance[x][y];\n direction = i;\n }\n }\n if(curDistance < 4) allowSpeedUp = true;\n else allowSpeedUp = false; //TODO: TEST :))\n if (direction == -1)\n {\n for (int i = 0; i < 4; i++)\n if (die[i] == 0) return i;\n for (int i = 0; i < 4; i++)\n if (die[i] == 1) return i;\n return 0;\n } else return direction;\n }\n }", "Integer cost(PathFindingNode node, PathFindingNode neighbour);", "public void computeLine ()\r\n {\r\n line = new BasicLine();\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n StickSection ss = (StickSection) section;\r\n line.includeLine(ss.getLine());\r\n }\r\n\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\r\n line + \" pointNb=\" + line.getNumberOfPoints() +\r\n \" meanDistance=\" + (float) line.getMeanDistance());\r\n }\r\n }", "public static double getPerpDist(double dX, double dY,\n\t double dX1, double dY1, double dX2, double dY2, SegSnapInfo oSnap)\n\t{\n\t\tdouble dXd = dX2 - dX1;\n\t\tdouble dYd = dY2 - dY1;\n\t\tdouble dXp = dX - dX1;\n\t\tdouble dYp = dY - dY1;\n\n\t\tif (dXd == 0 && dYd == 0) // line segment is a point\n\t\t\treturn dXp * dXp + dYp * dYp; // squared dist between the points\n\n\t\tdouble dU = dXp * dXd + dYp * dYd;\n\t\tdouble dV = dXd * dXd + dYd * dYd;\n\n\t\tif (dU < 0 || dU > dV) // nearest point is not on the line\n\t\t{\n\t\t\toSnap.m_dProjSide = dU;\n\t\t\treturn Double.NaN;\n\t\t}\n\n\t\toSnap.m_nRightHandRule = (int)((dXd * dYp) - (dYd * dXp));\n\n\t\t// find the perpendicular intersection of the point on the line\n\t\tdXp = dX1 + (dU * dXd / dV);\n\t\tdYp = dY1 + (dU * dYd / dV);\n\t\toSnap.m_nLonIntersect = (int)Math.round(dXp);\n\t\toSnap.m_nLatIntersect = (int)Math.round(dYp);\n\n\t\tdXd = dX - dXp; // calculate the squared distance\n\t\tdYd = dY - dYp; // between the point and the intersection\n\t\treturn dXd * dXd + dYd * dYd;\n\t}", "private Coordinate getSlopeMidpointNeighborToLift(Coordinate liftEndpoint, Geometry slopeGeom, Coordinate[] slope_endpoints, double threshold) {\r\n\t\tif (DistanceOp.isWithinDistance(geomOps.coordinateToPointGeometry(liftEndpoint), slopeGeom, threshold)) {\r\n\t\t\t//create LengthIndexedLine\r\n\t\t\tLengthIndexedLine indexedSlope = new LengthIndexedLine(slopeGeom);\r\n\t\t\t//project lift end-point on indexed line\r\n\t\t\tdouble indexClosest = indexedSlope.project(liftEndpoint);\r\n\t\t\t//fetch closest point on slope\r\n\t\t\tCoordinate closestPoint = indexedSlope.extractPoint(indexClosest);\r\n\t\t\t//check if closest point is not within 100m from either slope end-points and create candidate (StartConfiguration.slope_distances could be used instead to pass soft coded threshold value)\r\n\t\t\tif (closestPoint.distance(slope_endpoints[0]) > Double.parseDouble(\"100.0\") && closestPoint.distance(slope_endpoints[1]) > Double.parseDouble(\"100.0\")){ \r\n\t\t\t\treturn closestPoint;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public double getMinimumDistance() { return minDistance; }", "public abstract int getBreakDistance();", "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}", "private static Point2D.Double lineLineIntersection(Point2D.Double a, Point2D.Double b, Point2D.Double c, Point2D.Double d) {\n double a1 = b.y - a.y;\n double b1 = a.x - b.x;\n double c1 = a1 * (a.x) + b1 * (a.y);\n\n // Line CD represented as a2x + b2y = c2\n double a2 = d.y - c.y;\n double b2 = c.x - d.x;\n double c2 = a2 * (c.x) + b2 * (c.y);\n\n double determinant = a1 * b2 - a2 * b1;\n\n if (determinant == 0) {\n // The lines are parallel.\n return new Point2D.Double(Double.NaN, Double.NaN);\n } else {\n double x = (b2 * c1 - b1 * c2) / determinant;\n double y = (a1 * c2 - a2 * c1) / determinant;\n return new Point2D.Double(x, y);\n }\n }", "public void shortestRouteDijkstra(){\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n\n shortestRouteDij(lm1, lm2);\n }", "private double distanceEstimate(Node a, Node b){\n return Math.abs(a.getFloor() - b.getFloor()) * FLOOR_COST + distanceBetween(a,b);\n }", "public int shortestBridge(int[][] A) {\n for(int i = 0; i < A.length && !found; i++) {\n for(int j = 0; j < A[0].length && !found; j++) {\n if(A[i][j] == 1) {\n helper(A, i, j);\n found = true;\n }\n }\n }\n // Put all '2' into queue as candidate initial start points\n Queue<int[]> q = new LinkedList<int[]>();\n for(int i = 0; i < A.length; i++) {\n for(int j = 0; j < A[0].length; j++) {\n if(A[i][j] == 2) {\n q.offer(new int[] {i, j});\n }\n }\n }\n int distance = 0;\n while(!q.isEmpty()) {\n int size = q.size();\n for(int i = 0; i < size; i++) {\n int[] cur = q.poll();\n for(int j = 0; j < 4; j++) {\n int new_x = cur[0] + dx[j];\n int new_y = cur[1] + dy[j];\n if(new_x >= 0 && new_x < A.length && new_y >= 0 && new_y < A[0].length) {\n if(A[new_x][new_y] == 1) {\n return distance;\n } else if(A[new_x][new_y] == 0) {\n // Update from 0 to 2 which means expand first island boundary\n // which also avoid using visited to check\n A[new_x][new_y] = 2;\n q.offer(new int[] {new_x, new_y});\n }\n }\n }\n }\n distance++;\n }\n return distance;\n }" ]
[ "0.6061284", "0.6053382", "0.59910333", "0.59245664", "0.5920226", "0.59109336", "0.5789489", "0.5720966", "0.57040614", "0.5695263", "0.56893605", "0.5687379", "0.5673877", "0.5653983", "0.55935454", "0.5520764", "0.55143106", "0.5508139", "0.55004436", "0.5469323", "0.5468828", "0.5449281", "0.54115206", "0.5405675", "0.539281", "0.5365577", "0.531068", "0.53036314", "0.5295896", "0.5264779", "0.52296007", "0.5218334", "0.52100027", "0.52044815", "0.52022076", "0.51904947", "0.51721597", "0.5171668", "0.5167325", "0.5165665", "0.5141351", "0.5128601", "0.51278764", "0.51259345", "0.5102423", "0.50909317", "0.5077419", "0.5072859", "0.5072347", "0.50666076", "0.50567013", "0.5052891", "0.50528705", "0.5047944", "0.50478625", "0.50442743", "0.50390804", "0.50365716", "0.5023908", "0.5003502", "0.4997815", "0.4995828", "0.49872845", "0.49832195", "0.49828517", "0.49822062", "0.4980822", "0.49804237", "0.49747127", "0.4973817", "0.49731126", "0.49603942", "0.49579784", "0.4956454", "0.4945748", "0.49424002", "0.49363703", "0.493371", "0.49259144", "0.4911181", "0.49054602", "0.49034", "0.48998278", "0.48973063", "0.48948008", "0.48879418", "0.48874748", "0.48827007", "0.4874605", "0.48711392", "0.48622233", "0.48615626", "0.48576075", "0.48559824", "0.4850781", "0.4848545", "0.4846363", "0.48459044", "0.4841816", "0.4833035" ]
0.5505255
18
TODO Autogenerated method stub
@Override public Book createBook(Book book) throws SQLException { try { return dao.insertBook(book); } catch (ClassNotFoundException | SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); }return book; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Ne fait rien et envoie un message de type effetClassique.
public Message action(Joueur joueurCourant) { return new Message(Message.Types.effetClassique); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IMessage toMessage(Class clas){\n\n\t\tIMessage msg = null;\n\t\tif (clas != null)\n\t\t\t msg = super.toMessage(clas);\n\t\telse\n\t\t\tmsg = super.toMessage(ExtensionResource.class);\n\t\t\n//\t IMessage msg = super.toMessage(ExtensionResource.class);\n\n//\t msg.setElement(new Element(AEvent.TYPE, ExtensionResource.class.getName()));\n\t\t \n\t msg.setElement(new Element(\"extid\", extID));\n\t msg.setElement(new Element(\"code\", codebase));\n\t msg.setElement(new Element(\"classname\", classname));\n\t\t\n\t\tif (tag.equals(INSERT_REMOTE)){\n\t\t\t\n\t\t\t// read file into a byte array\n\t\t\tbyte[] bytes;\n\t\t\ttry {\n\t\t\t\tbytes = getBytesFromFile(new File(extResLocation + codebase));\n\t\t\t\tmsg.setElement(new Element(bytes, \"filedat\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tLOG.error(\"could not put file into message\", ioe);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t return (msg);\n }", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "public void afficherMessage();", "public void consulterClassement() {\n\t\t\n\t}", "@Test\n\tpublic void testFormalizeMessageWithClassBasedOperation() {\n\t\ttest_id = \"10\";\n\t\tString diagramName = \"Communication in Package\";\n\n\t\tPackage_c communication = getPackage(diagramName);\n\t\tCanvasUtilities.openCanvasEditor(communication);\n\n\t\tGraphicalEditor ce = CanvasTestUtilities.getCanvasEditor(diagramName\n\t\t\t\t);\n\t\t// test that an external entity participant may\n\t\t// be formalized against an external entity\n\t\tClassParticipant_c cp = ClassParticipant_c.ClassParticipantInstance(\n\t\t\t\tmodelRoot, new ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tClassParticipant_c selected = (ClassParticipant_c) candidate;\n\t\t\t\t\t\treturn selected.getLabel().equals(\"Informal Class\");\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\tassertNotNull(cp);\n\n\t\tselection.clear();\n\t\tselection.addToSelection(cp);\n\n\t\tIStructuredSelection sel = Selection.getInstance()\n\t\t\t\t.getStructuredSelection();\n\n\t\ttry {\n\t\t\t// before calling the action setup a thread that will\n\t\t\t// configure the necessary values\n\t\t\tShell[] existingShells = PlatformUI.getWorkbench().getDisplay().getShells();\n\t\t\tFailableRunnable runnable = TestUtil.chooseItemInDialog(200, \"Supertype\", existingShells);\n\t\t\tTestUtil.okElementSelectionDialog(runnable, existingShells);\n\t\t\t// get the action and execute it\n\t\t\tGenericPackageFormalizeOnSQ_CPAction action = new GenericPackageFormalizeOnSQ_CPAction();\n\t\t\taction.run(null);\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\n\t\t\ttest_id = \"11\";\n\t\n\t\t\t// test formalizing the message against one of the operations\n\t\t\tSynchronousMessage_c synchronousMessage = getSynchronousMessage(\"Informal Synchronous Message\");\n\t\n\t\t\tassertNotNull(synchronousMessage);\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(synchronousMessage);\n\t\t\tselection.addToSelection(cp);\n\t\n\t\t\tsel = Selection.getInstance().getStructuredSelection();\n\t\n\t\t\t// create and initialize the wizard\n\t\t\tCommunicationClassOperationFormalizeOnMSG_SMWizard wizard2 = new CommunicationClassOperationFormalizeOnMSG_SMWizard();\n\t\t\twizard2.init(workbench, sel, null);\n\t\t\tWizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow()\n\t\t\t\t\t.getShell(), wizard2);\n\t\t\tdialog.create();\n\t\n\t\t\t// Select the association in the wizard\n\t\t\tCommunicationClassOperationFormalizeOnMSG_SMWizardPage4 page2 = (CommunicationClassOperationFormalizeOnMSG_SMWizardPage4) wizard2\n\t\t\t\t\t.getStartingPage();\n\t\t\tpage2.createControl(workbench.getActiveWorkbenchWindow().getShell());\n\t\t\tCombo combo = page2.MessageCombo;\n\t\t\tselectItemInList(\"CBOperation\", combo);\n\t\t\tassertTrue(\"Operation: \" + \"CBOperation, \"\n\t\t\t\t\t+ \"was not selected in the wizard.\", wizard2.performFinish());\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t} finally {\n\t\t\t// test unformalizing and external entity and the message\n\t\t\t// through the external entity\n\t\t\ttest_id = \"12\";\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(cp);\n\t\n\t\t\tClassUnformalizeOnSQ_CPAction unformalizeAction = new ClassUnformalizeOnSQ_CPAction();\n\t\t\tunformalizeAction.run(new Action() {\n\t\t\t});\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t}\n\t}", "private void remplirTabNewMess(){\n\t\tCalendar date = Calendar.getInstance();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\n\n\t\tString passage[]= new String[7];\n\n\t\tpassage[0]=tab[2]; //sender\n\t\tpassage[1]=tab[1]; //recep\n\t\tpassage[2]=tab[4]; //obj\n\t\tpassage[3]=tab[3]; //txt\n\t\tpassage[4]=\"0\"; //importance\n\t\tpassage[5]=sdf.format(date.getTime()); //date\n\t\tpassage[6]=\"1\"; //non lu\n\n\t\tmessages.add((String[])passage);\n\t\tthis.send(messages);\n\t\tmessagerie.Server.con.closeSocket();\n\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n fenetre.getClient().envoyerMessage(getMessage(), optionEnvoi); // Envoie du message\n saisieMessage.setText(\"\"); // On supprime le texte de la saisie message\n }", "public void nouveau(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public abstract String mensajeCrearCelula();", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "@Test\n\tpublic void testFormalizeMessageWithClassBasedEvent() {\n\t\ttest_id = \"13\";\n\t\tString diagramName = \"Communication in Package\";\n\n\t\tPackage_c communication = getPackage(diagramName);\n\t\tCanvasUtilities.openCanvasEditor(communication);\n\n\t\tGraphicalEditor ce = CanvasTestUtilities.getCanvasEditor(diagramName\n\t\t\t\t);\n\t\t// test that an external entity participant may\n\t\t// be formalized against an external entity\n\t\tClassParticipant_c cp = ClassParticipant_c.ClassParticipantInstance(\n\t\t\t\tmodelRoot, new ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tClassParticipant_c selected = (ClassParticipant_c) candidate;\n\t\t\t\t\t\treturn selected.getLabel().equals(\"Informal Class\");\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\tassertNotNull(cp);\n\n\t\tselection.clear();\n\t\tselection.addToSelection(cp);\n\n\t\tIStructuredSelection sel = Selection.getInstance()\n\t\t\t\t.getStructuredSelection();\n\t\ttry {\n\t\t\t// before calling the action setup a thread that will\n\t\t\t// configure the necessary values\n\t\t\tShell[] existingShells = PlatformUI.getWorkbench().getDisplay().getShells();\n\t\t\tFailableRunnable runnable = TestUtil.chooseItemInDialog(200, \"Supertype\", existingShells);\n\t\t\tTestUtil.okElementSelectionDialog(runnable, existingShells);\n\t\t\t// get the action and execute it\n\t\t\tGenericPackageFormalizeOnSQ_CPAction action = new GenericPackageFormalizeOnSQ_CPAction();\n\t\t\taction.run(null);\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\n\t\t\ttest_id = \"14\";\n\t\n\t\t\t// test formalizing the message against one of the operations\n\t\t\tAsynchronousMessage_c asynchronousMessage = getAsynchronousMessage(\"Informal Asynchronous Message\");\n\t\n\t\t\tassertNotNull(asynchronousMessage);\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(asynchronousMessage);\n\t\t\tselection.addToSelection(cp);\n\t\n\t\t\tsel = Selection.getInstance().getStructuredSelection();\n\t\n\t\t\t// create and initialize the wizard\n\t\t\tCommunicationClassEventFormalizeOnMSG_AMWizard wizard2 = new CommunicationClassEventFormalizeOnMSG_AMWizard();\n\t\t\twizard2.init(workbench, sel, null);\n\t\t\tWizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow()\n\t\t\t\t\t.getShell(), wizard2);\n\t\t\tdialog.create();\n\t\n\t\t\t// Select the association in the wizard\n\t\t\tCommunicationClassEventFormalizeOnMSG_AMWizardPage4 page2 = (CommunicationClassEventFormalizeOnMSG_AMWizardPage4) wizard2\n\t\t\t\t\t.getStartingPage();\n\t\t\tpage2.createControl(workbench.getActiveWorkbenchWindow().getShell());\n\t\t\tCombo combo = page2.MessageCombo;\n\t\t\tselectItemInList(\"TC_ST_A1: CB Event\", combo);\n\t\t\tassertTrue(\"Operation: \" + \"TC_ST_A1: CB Event, \"\n\t\t\t\t\t+ \"was not selected in the wizard.\", wizard2.performFinish());\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t} finally {\n\t\t\t// test unformalizing and external entity and the message\n\t\t\t// through the external entity\n\t\t\ttest_id = \"15\";\n\t\n\t\t\tselection.clear();\n\t\t\tselection.addToSelection(cp);\n\t\n\t\t\tClassUnformalizeOnSQ_CPAction unformalizeAction = new ClassUnformalizeOnSQ_CPAction();\n\t\t\tunformalizeAction.run(new Action() {\n\t\t\t});\n\t\n\t\t\tvalidateOrGenerateResults(ce, generateResults);\n\t\t}\n\t}", "public String ottieniListaClassiCompleta(){\n\t\tfinal String methodName = \"ottieniListaClassiCompleta\";\n\t\ttry {\n\t\t\tcaricaListaClassi();\n\t\t} catch(WebServiceInvocationFailureException wsife) {\n\t\t\tlog.info(methodName, wsife.getMessage());\n\t\t}\n\t\treturn SUCCESS;\n\t}", "@Override\n\tpublic void tipoComunicacao() {\n\t\tSystem.out.println(super.getNome() + \" se comunica miando.\");\n\t}", "public void setMsgClass(java.lang.Short msgClass) {\r\n this.msgClass = msgClass;\r\n }", "private void afficher_les_messages() {\n List<Message> liste_message = ticket_courant.getMessage();\n String texte = \"\";\n for(Message mess: liste_message){\n texte += mess.getExpediteur()+ \" : \"+mess.getTexte()+\"\\n\";\n }\n aff_message.setText(texte);\n /*String[] tab_messages_brut = {\"\"};\n int incr = 0;\n for (Message message : liste_message) {\n tab_messages_brut[incr] = message.getTexte();\n incr++;\n }\n /*JList<String> Liste_messages = new JList<>(tab_messages_brut);\n Conteneur_liste.removeAll();\n Conteneur_liste.add(Liste_messages);\n Liste_messages.setVisible(true);\n Conteneur_liste.updateUI();*/\n }", "public int getMessageClass() {\n // Who in the holy hell thought this was a good idea for a protocol? The\n // `class` is a 2 bit value constructed from the lowest bit of the highest\n // order byte and the 5th lowest bit of the 2nd highester order byte.\n return (((int)data[0] & 0x01) << 1) | ((int)data[1] & 0x10) >> 4;\n }", "public void addMessage(String mensaje, int tipo) {\n switch (tipo) {\n case 1:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, mensaje, \"\"));\n break;\n case 2:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, mensaje, \"\"));\n break;\n case 3:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, mensaje, \"\"));\n break;\n case 4:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, mensaje, \"\"));\n break;\n default:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.FACES_MESSAGES, mensaje));\n break;\n }\n }", "public void addMessage(String mensaje, int tipo) {\n switch (tipo) {\n case 1:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, mensaje, \"\"));\n break;\n case 2:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, mensaje, \"\"));\n break;\n case 3:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, mensaje, \"\"));\n break;\n case 4:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, mensaje, \"\"));\n break;\n default:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.FACES_MESSAGES, mensaje));\n break;\n }\n }", "@Override\r\n\tpublic void notificationVente(CommandeProduc c) {\n\t}", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public String getMessage(){\n String messageOut=\"Error\";\n if(this.akun instanceof Savings && akun instanceof Investment==false){\n messageOut=\"Savings\";\n }\n else if (this.akun instanceof Investment && akun instanceof Investment==true){\n messageOut=\"Investment\";\n }\n else if (this.akun instanceof LineOfCredit){\n messageOut=\"Line-Of-Credit\";\n }\n else if (this.akun instanceof OverDraftProtection){\n messageOut=\"Overdraft\";\n }\n return super.getMessage()+ messageOut;\n }", "public java.lang.Short getMsgClass() {\r\n return msgClass;\r\n }", "public void majInformation (String typeMessage, String moduleMessage, String corpsMessage) {\n Date date = new Date();\n listMessageInfo.addFirst(dateFormat.format(date)+\" - \"+typeMessage+\" - \"+moduleMessage+\" - \"+corpsMessage);\n }", "public Bouton_explications(Controleur controleur) {\n\t\tsuper(\"Comment jouer ?\");\n\t\tthis.setBackground(new Color(154,201,59));\n\t\tthis.setFont(new java.awt.Font(\"Serif\",1,25));\n\t\tthis.controleur = controleur;\n\t\tthis.addActionListener(this); // mets le bouton sur ecoute de la souris\n\t}", "@Override\r\n\tprotected void executeClass() throws BusClassException {\n\t\tAttribute attEmpresas = this.getCurrentEntity().getAttribute(\"P5_DOCUNI_EMPRESA_FACTURA\");\r\n\t\t\r\n\t\tPossibleValue posMautibla = new PossibleValue(\"Mautibla\", \"Mautibla\");\r\n\t\tPossibleValue posGroove = new PossibleValue(\"Groove\", \"Groove\");\r\n\t\t\r\n\t\tattEmpresas.addPossibleValues(posMautibla);\r\n\t\tattEmpresas.addPossibleValues(posGroove);\t\r\n\t}", "public void annuler(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public void consulterBoiteVocale() {\n for (int i = 0; i < this.boiteVocale.getListeMessagesVocaux().size(); i++) {\n //on passe l'attribut consulte à true pour savoir qu'il a été vu pour la facturation\n this.boiteVocale.getListeMessagesVocaux().get(i).setConsulte(true);\n }\n }", "public void changerLogique(String nouvFormule,String nouvCommentaire,EOGenericRecord ecEnModif) {\r\n\t\t// retrouver l'entité IpUeSeuil qui va bien...\r\n\r\n\t\tif (ecEnModif != null) {\r\n\t\t\tERXGenericRecord toEcSeuil = (ERXGenericRecord)ecEnModif.valueForKey(\"toEcSeuil\");\r\n\t\t\tif (toEcSeuil != null) {\r\n\r\n\t\t\t\ttoEcSeuil.takeStoredValueForKey(nouvFormule, \"rceFormuleContrainte\");\r\n\t\t\t\ttoEcSeuil.takeStoredValueForKey(nouvFormule, \"rceFormuleContrainte\");\r\n\t\t\t\tEOEditingContext ecEnt = ecEnModif.editingContext();\r\n\t\t\t\tecEnt.saveChanges();\r\n\r\n\t\t\t\t// Il faut provoquer un refresh des objets dans le shared editing context de l'application...\r\n\t\t\t\tmaSession.monApp.InvaliderSharedEC();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void addMessage(byte[] message) throws RemoteException {\n Logger.getGlobal().log(Level.INFO,\"Ajout d'un message dans le composant post de nom : \" + this.getName());\n if(SerializationUtils.deserialize(message) instanceof _DefaultMessage){\n try {\n _DbConnectionManager.serializeJavaObjectToDB(this.dbConnection, message, this.getName(), _Component.postTableName);\n } catch (SQLException e1) {\n Logger.getGlobal().log(Level.SEVERE,\"Error save default message to bd in component : \" + this.getName());\n e1.printStackTrace();\n }\n }else{\n Logger.getGlobal().log(Level.INFO,\"Impossible de sauvegarder ce message, n'est pas un _DefaultMessage dans le component : \" + this.getName());\n }\n }", "@Override\r\n\tpublic MensajeBean actualiza(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.actualiza(nuevo);\r\n\t}", "public void fncMensajeEnviarMensajeTo(Session perfil){\n if( Storage.fncStorageEncontrarUnaCuenta( Rutas.path_profiles, perfil.getStrEmail() ) ){\r\n \r\n // * Establecer perfil\r\n this.perfil = perfil;\r\n \r\n //* Enviado mensaje...\r\n this.fncMensajeEnviadoMensajeTo();\r\n \r\n }\r\n }", "public void donnerEffet(Paquet paquet) {\n\t\tfor(int i=0; i<paquet.getTaille(); i++) {\n\t\t\tswitch (paquet.getCarte(i).getHauteur()) {\n\t\t\tcase \"7\":\n\t \tpaquet.getCarte(i).setEffet(new PasserTour());\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t\t\tcase \"8\":\n\t\t\t\tpaquet.getCarte(i).setEffet(new ChangerCouleurStopAttaques());\n\t\t\t\tpaquet.getCarte(i).setJouabilite(new JouableSurContre());\n\t \tbreak;\n\t\t\tcase \"9\":\n\t \tpaquet.getCarte(i).setEffet(new FairePiocherSansRecours(1));\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t case \"10\":\n\t \tpaquet.getCarte(i).setEffet(new Rejouer());\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t case \"Valet\":\n\t \tpaquet.getCarte(i).setEffet(new ChangerSens());\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t case \"As\":\n\t \tpaquet.getCarte(i).setEffet(new FairePiocherContre(3));\n\t \tpaquet.getCarte(i).setJouabilite(new JouableSurContre());\n\t \tbreak;\n\t default :\n\t \tpaquet.getCarte(i).setEffet(null);\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t }\n\t\t}\n\t}", "@Override\n public void actionPerformed(ActionEvent event)\n {\n TransformationsListener.getListener().setStarted(true);\n if (this.getName().equals(sACTION_TITLE))\n {\n ContentClassInsertionDialog dialog=new ContentClassInsertionDialog();\n if (dialog.getClassName()!=null)\n {\n ElementCollector.ReturnElement cCreatedElement=ReqToConTransformations.createContentClass(dialog.getClassName(),\n TransformationsListener.getListener().getPosition(),((Package)(dialog.getPackage())));\n\n int iAttributes=0;\n int iAssociations=0;\n \n if (dialog.getAttributesCheck())\n {\n iAttributes=ReqToConTransformations.addAttributesToContentClass(cCreatedElement.cClass, dialog.getAssociationsCheck());\n }\n\n if (dialog.getAssociationsCheck())\n {\n iAssociations=ReqToConTransformations.addAssociationsToContentClass(cCreatedElement.cClass,cCreatedElement.cShape);\n }\n \n MessageWriter.log(\"Content class \\\"\"+cCreatedElement.cClass.getName()+\"\\\" including \"+\n iAttributes+\" attributes and \"+iAssociations+\" associations created\",\n Logger.getLogger(ContentModelInsertion.class));\n }\n }\n TransformationsListener.getListener().setStarted(false);\n }", "public int getMessageClass() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.telephony.SmsCbCmasInfo.getMessageClass():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.getMessageClass():int\");\n }", "public static void affichageErreur (int codeErreur) {\n\t\tSystem.out.println(\"\\n\\n!!!!!!!!!! ATTENTION !!!!!!!!!!\\n\");\n\t\tString messageErreur;\n\n\t\tswitch (codeErreur) {\n\t\tcase 1 : messageErreur = \"Une ligne comporte moins d'elements que les autres !\"; break;\n\t\tcase 2 : messageErreur = \"Un caractere inconnu a ete detecte !\"; break;\n\t\tcase 3 : messageErreur = \"Le labyrinthe n'a pas une seule entree !\"; break;\n\t\tcase 4 : messageErreur = \"Le labyrinthe n'a pas une seule sortie !\"; break;\n\t\tcase 5 : messageErreur = \"Le labyrinthe n'a pas de filon !\"; break;\n\t\tcase 6 : messageErreur = \"Trop de filons ont été demandés par rapport au nombre de cases vides du labyrinthe !\"; break;\n\t\tdefault : messageErreur = \"Erreur non repertoriee.\"; break;\n\t\t}\n\n\t\tSystem.out.println(messageErreur+\"\\nLe programme va s'interrompre.\");\n\t\tJOptionPane.showMessageDialog(null, messageErreur, \"Erreur\", JOptionPane.ERROR_MESSAGE);\t\t\n\t\tSystem.exit(0);\n\t}", "public void tratarMensagemRecebida(String msg){\n String comando = msg.substring(0, 8); //Extrai o comando \n String payLoad = msg.replaceFirst(comando, \"\");\n String campo[];\n\n // Trata a mensagem conforme o protocolo\n switch (comando){\n\n case Protocolo.CHAT_MSG:\n String data;\n data = usuarioBySocket(usuarioVector, cliente).getNome() + \" enviou: \" + payLoad;\n enviarMensagemParaTodosChat(Protocolo.CHAT_MSG, data);\n break;\n\n case Protocolo.CHAT_SAI: \n enviarMensagemParaUmUsuario(Protocolo.CHAT_SAI, \"\");\n String notificacao = usuarioBySocket(usuarioVector, cliente).getNome() + \" acabou de sair.\";\n enviarMensagemParaTodosChat(Protocolo.CHAT_NOT, notificacao);\n enviarMensagemParaTodosChat(Protocolo.CHAT_REM, usuarioBySocket(usuarioVector, cliente).getNome());\n removeUsuario(usuarioVector, cliente);\n System.out.println(\"Removeu Usuario \"); \n break; \n \n case Protocolo.IMG_CQUA:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CQUA, \"\"+idImg+\":10\"+\":10\"); \n Imagem quadrado = new Imagem(idImg++, TipoFigura.QUADRADO, 10, 10);\n imagemVector.add(quadrado);\n System.out.println(\"Criar Quadrado\"); \n break;\n\n case Protocolo.IMG_CCIR:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CCIR, \"\"+idImg+\":10\"+\":10\"); \n Imagem circulo = new Imagem(idImg++, TipoFigura.CIRCULO, 10, 10);\n imagemVector.add(circulo);\n System.out.println(\"Removeu Circulo \"); \n break;\n \n case Protocolo.IMG_CTRI:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CTRI, \"\"+idImg+\":10\"+\":10\"); \n Imagem triangulo = new Imagem(idImg++, TipoFigura.TRIANGULO, 10, 10);\n imagemVector.add(triangulo);\n System.out.println(\"Criar Triangulo \"); \n break;\n \n case Protocolo.IMG_REMO:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_REMO, \"\"+payLoad);\n removeImagem(imagemVector, Integer.parseInt(payLoad));\n System.out.println(\"Removeu Figura id= \" + payLoad); \n break;\n \n case Protocolo.IMG_MOVE:\n campo = payLoad.split(\":\"); //pega id, posX e posY da figura\n atualizaPosicaoImagem(Integer.parseInt(campo[0]), Integer.parseInt(campo[1]), Integer.parseInt(campo[2]));\n enviarMensagemParaTodosEdicao(Protocolo.IMG_MOVE, payLoad); \n System.out.println(\"Mover figura\");\n break;\n \n case Protocolo.PNL_MOVP:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVP, payLoad);\n System.out.println(\"Movendo Mouse\");\n break;\n \n case Protocolo.PNL_MOVF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVF, payLoad);\n System.out.println(\"Movendo Mouse na figura\");\n break;\n\n case Protocolo.PNL_DRGF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_DRGF, payLoad);\n System.out.println(\"Movendo Mouse na figura Drag\");\n break;\n \n default:\n System.out.println(\"Case Default - MSG Recebida: \" + comando);\n }\n }", "public static String saberTipo(Expediente c1) {\n\n\t\tif (c1 instanceof Multa_Trafico) {\n\t\t\treturn \"Eres multa de tráfico\";\n\t\t}\n\t\tif (c1 instanceof Multa_Covid) {\n\t\t\treturn \"Eres multa de Covid\";\n\t\t}\n\t\tif (c1 instanceof Multa) {\n\t\t\treturn \"Eres multa\";\n\t\t}\n\t\tif (c1 instanceof Expediente) {\n\t\t\treturn \"Eres Expediente\";\n\t\t}\n\n\t\treturn \"No lo sé\";\n\t}", "public DDetRetContrArtEscenicsAttTO() { }", "public void ajoutCompte(Class<? extends Compte> type, Client client);", "@Override\n public void onAttach(Activity activity) {\n //super.onAttach(context);\n\n super.onAttach(activity);\n try{\n EM = (EnviarMensaje) activity;\n } catch (ClassCastException e) {\n throw new ClassCastException(\"Necesitas implementar un mensaje\");\n }\n }", "private Hashtable<String, Object> getMessageData(String cif, String msg) {\r\n\t\tHashtable<String, Object> messageData = super.getMessageData();\r\n\t\tVector<Object> v = new Vector<Object>();\r\n\t\tv.add(\"SUPERVISOR\");\r\n\t\tmessageData.put(\"UsuarioDestino\", v);\r\n\t\tString contenido = msg;\r\n\t\tmessageData.put(INoticeSystem.NOTICE_CONTENT, contenido);\r\n\t\treturn new Hashtable<String, Object>(messageData);\r\n\t}", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "public final String getMessageErreur() {\n\t\tString messageErreur = null;\n\n\t\t// il faut que toutes les taches obligatoires soient accomplies\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = getTachesObligatoiresAbsentes();\n\t\tif (tachesObligatoiresAbsentes.count() > 0) {\n\t\t\tmessageErreur = \"Tâches non effectuées : \";\n\t\t\tmessageErreur += \"<ul>\";\n\t\t\tfor (int i = 0; i < tachesObligatoiresAbsentes.count(); i++) {\n\t\t\t\tI_WorkFlowItem tache = tachesObligatoiresAbsentes.objectAtIndex(i);\n\t\t\t\tmessageErreur += \"<li>\";\n\t\t\t\tmessageErreur += tache.libelle();\n\t\t\t\tmessageErreur += \"</li>\";\n\t\t\t}\n\t\t\tmessageErreur += \"</ul>\";\n\t\t}\n\n\t\treturn messageErreur;\n\t}", "@Override\n public String toString() {\n return \"EnviarMensajeProposeUpdatedDemandForecast\";\n }", "@Override\n\tpublic void msgFedPart() {\n\t\t\n\t}", "public void sousClasseAnnoce()\n {\n try {\n Class c = Class.forName(\"lpae.entites.Annonce\");\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(GestionnaireSecurite.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Override\n public String getMessage() {\n return super.getMessage() + \" Be Accurate\";\n }", "public void visualizarMensaje(Object pila);", "public MethodDec_class message(MessageSendToSuper msg, ErrorSignaller errorSignal) {\r\n\t\tKraClass aux_superclass = this.getSuper();\r\n\t\tif (aux_superclass == null) {\r\n\t\t\terrorSignal.showError(\"'super' used in class '\"+this.getCname()+\"' that does not have a superclass\");\r\n\t\t}\r\n\t\twhile (true) {\r\n\t\t\tif (aux_superclass == null){\r\n\t\t\t\terrorSignal.showError(\"Method '\"+msg.getNameMethod()+\"' was not found in superclass or its superclasses\");\r\n\t\t\t}\r\n\t\t\tArrayList<Variable> methodDecList_aux = aux_superclass.getMethodList();\r\n\r\n\t\t\t// tenho a superclasse, devo procurar o método\r\n\t\t\tfor (Variable v : methodDecList_aux) {\r\n\t\t\t\tif (msg.getNameMethod().compareTo(v.getName()) == 0) {\r\n\t\t\t\t\t// encontrei o método, verificar possibildiade de utilização deles\r\n\t\t\t\t\t// pelo parâmetros enviados...\r\n\r\n\t\t\t\t\t//ESTAREI FAZENDO ESSA VERIFICAÇÃO DPS. POR ENQUANTO, VAI SER SÓ PELO NÚMERO DE EXPRESSÕES\r\n\t\t\t\t\t// PQ É UMA VERIFICAÇÃO DE SEMÃNTICA ESSE ROLE\r\n\t\t\t\t\tif (v instanceof MethodDec_class) { // devo verificar se não é uma variável, apesar que pelo fluxo não existira, mas creio que teremos esse problema\r\n\t\t\t\t\t\tif (msg.getExprList().getSizeExprList() == ((MethodDec_class) v).getParamList().getSize()) {\r\n\t\t\t\t\t\t\t// tudo limpo e tem tal função...\r\n\t\t\t\t\t\t\t// preparar mensagem de retorno...\r\n\t\t\t\t\t\t\t// NESSE MOMENTO RETORNAREI A CLASSE, PQ SÓ QUERO VER SE ESTA FUCNIOANDO.\r\n\t\t\t\t\t\t\t// O IDEAL É RETORNAR UMA MENSAGEM QUE TENHA O MÉTODO, A CLASSE, O TIPO DE RETORNO E ETC...\r\n\t\t\t\t\t\t\treturn (MethodDec_class) v;\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// queria ter feito recursivo, mas não passo pelo paarmetro a classe atual\r\n\t\t\t// vai ser assim mesmo, iterativo.\r\n\t\t\taux_superclass = aux_superclass.getSuper();\r\n\t\t\t//if (aux_superclass == null) {\r\n\t\t\t//\terrorSignal.showError(\"não há métodos no rolê... \" + this.getCname());\r\n\t\t\t//}\r\n\t\t}\r\n\r\n\t}", "private void fncMensajeEnviadoMensajeTo() {\n this.perfil_seleccionado = this.perfil.getStrEmail();\r\n this.yoker = session_activa.getStrEmail();\r\n \r\n \r\n if( !Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, this.perfil.getStrEmail()+Storage.identificador_amigo1) ){\r\n // Si no somos amigos nos ponemos un *\r\n perfil_seleccionado += \"*\"; // Si perfil selecciona no es amigo mio se pone un *\r\n yoker += \"*\";\r\n }\r\n \r\n // Buscar el chat\r\n boolean db_chats = Storage.fncStorageBuscarUnaLinea(session_activa.stgChats, perfil_seleccionado);\r\n boolean db_friends = Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, perfil_seleccionado+Storage.identificador_amigo1);\r\n \r\n // * Verificar estado de amistad para perfil\r\n String amistad = Storage.fncStorageVerificarAmistad(this.session_activa.stgFriends, this.perfil.getStrEmail());\r\n \r\n // * Verificar si somos amigos\r\n if( db_friends == true && db_chats == true && amistad.equals(\"amigos\") )\r\n this.fncConversacionActiva();\r\n else if( db_friends == false && db_chats == false && amistad.equals(\"none\") ) \r\n this.fncCrearConversacion();\r\n \r\n// }else if( db_friends == true && db_chats == false ){\r\n// this.fncConversacionPendientePerfil();\r\n// \r\n// }else if( db_friends == false && db_chats == true ){\r\n// this.fncConversacionPendienteSessionActiva();\r\n// \r\n// }else if( db_friends == false && db_chats == false ){\r\n// this.fncCrearConversacion();\r\n// '\r\n// }\r\n\r\n }", "public void onAttach(Activity activity){\n super.onAttach(activity);\n\n try{\n ENVIAR = (Enviar) activity;\n }\n catch (ClassCastException e ){\n throw new ClassCastException(\"necesitas el msg\");\n }\n\n\n }", "public ExcepcionArchivoNoLeido(String mensaje) {\n super(mensaje);\n }", "@Override\n\tpublic void msgAtCashier() {\n\t\t\n\t}", "public MethodDec_class message2(MessageSendToSuper msg, ErrorSignaller errorSignal) {\r\n\t\tKraClass aux_superclass = this.getSuper();\r\n\t\twhile (true) {\r\n\t\t\tif (aux_superclass == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tArrayList<Variable> methodDecList_aux = aux_superclass.getMethodList();\r\n\r\n\t\t\t// tenho a superclasse, devo procurar o método\r\n\t\t\tfor (Variable v : methodDecList_aux) {\r\n\t\t\t\tif (msg.getNameMethod().compareTo(v.getName()) == 0) {\r\n\t\t\t\t\t// encontrei o método, verificar possibildiade de utilização deles\r\n\t\t\t\t\t// pelo parâmetros enviados...\r\n\r\n\t\t\t\t\t//ESTAREI FAZENDO ESSA VERIFICAÇÃO DPS. POR ENQUANTO, VAI SER SÓ PELO NÚMERO DE EXPRESSÕES\r\n\t\t\t\t\t// PQ É UMA VERIFICAÇÃO DE SEMÃNTICA ESSE ROLE\r\n\t\t\t\t\tif (v instanceof MethodDec_class) { // devo verificar se não é uma variável, apesar que pelo fluxo não existira, mas creio que teremos esse problema\r\n\t\t\t\t\t\tif (msg.getExprList().getSizeExprList() == ((MethodDec_class) v).getParamList().getSize()) {\r\n\t\t\t\t\t\t\t// tudo limpo e tem tal função...\r\n\t\t\t\t\t\t\t// preparar mensagem de retorno...\r\n\t\t\t\t\t\t\t// NESSE MOMENTO RETORNAREI A CLASSE, PQ SÓ QUERO VER SE ESTA FUCNIOANDO.\r\n\t\t\t\t\t\t\t// O IDEAL É RETORNAR UMA MENSAGEM QUE TENHA O MÉTODO, A CLASSE, O TIPO DE RETORNO E ETC...\r\n\t\t\t\t\t\t\treturn (MethodDec_class) v;\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// queria ter feito recursivo, mas não passo pelo paarmetro a classe atual\r\n\t\t\t// vai ser assim mesmo, iterativo.\r\n\t\t\taux_superclass = aux_superclass.getSuper();\r\n\t\t\t//if (aux_superclass == null) {\r\n\t\t\t//\terrorSignal.showError(\"não há métodos no rolê... \" + this.getCname());\r\n\t\t\t//}\r\n\t\t}\r\n\r\n\t}", "public String ottieniListaClassiAmmortamento(){\n\t\tfinal String methodName = \"ottieniListaClassiAmmortamento\";\n\t\ttry {\n\t\t\tcaricaListaClassiAmmortamento();\n\t\t} catch(WebServiceInvocationFailureException wsife) {\n\t\t\tlog.info(methodName, wsife.getMessage());\n\t\t}\n\t\tmodel.setListaClassi(model.getListaClassiAmmortamento());\n\t\treturn SUCCESS;\n\t}", "@Override\n public String toString() { // for request attribute logging\n return DfTypeUtil.toClassTitle(this) + \":{messages=\" + messages + \"}@\" + Integer.toHexString(hashCode());\n }", "@Override\r\n\t\tpublic <T> void sucess(Type type, ResponseResult<T> claszz) {\n\t\t\tisAttention=true;\r\n\t\t\t selectorStyle();\r\n\t\t}", "public int enAttente() {\n\t\treturn nbmsg;\n\t}", "@Override\n public void recibirMensaje(Mensaje mensaje) {\n mensajes.append(mensaje);\n }", "@Override\r\n\t\tpublic <T> void sucess(Type type, ResponseResult<T> claszz) {\n\t\t\tisAttention=false;\r\n\t\t\t selectorStyle();\r\n\t\t}", "public <T extends Message> T getMessageClass(String fixmsg) throws Exception {\r\n\r\n Message message = MessageUtils.parse(messageFactory, dd, fixmsg);\r\n String msgType = message.getHeader().getField(new StringField(35)).getValue();\r\n if(msgType.equals(\"BJ\") || msgType.equals(\"BS\")) {\r\n log.debug(\"Handling a TradingSessionList Response -- \" + fixmsg);\r\n message.getHeader().setField(new BeginString(\"FIXT.1.19\"));\r\n }\r\n Message factorymessage = messageFactory.create(message.getHeader().getString(8), message.getHeader().getString(35));\r\n factorymessage.fromString(fixmsg,dd, false);\r\n return (T) factorymessage;\r\n }", "public void afficher (UneCommande22<Integer> cde){ //POURQUOI CETTE MÉTHODE EST STATIQUE??? LA DEPLACER PE DANS COMMANDE\n\t\t\t\tif(cde.taille()==0) {ClientJava1DateUser.affiche(\"\\n\\t\\t COMMANDE EST VIDE\");\n\t\t\t\t}\n\t\t\t\telse {ClientJava1DateUser.affiche(cde.toString());}\t\n\t\t\t}", "public abstract String mensajeEliminarCelula(int f, int c);", "@Override\r\n\tpublic String getMessage() {\r\n\t\treturn \"Veuillez entrer un nombre positif\";\r\n\t}", "@Override\n public void atacar(Jinete jinete, Pieza receptor) {\n }", "public boolean ponerMsg(String texto)\n\t{\n\t\tif (texto.length() == 0){\n\t\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\t\treturn true; //salir\n\t\t}else{\n\t\t\tthreadLabel.setBackground(new Color(display, 255,222,173));\n\t\t}\n\n\t\tagregarAHistMsgs(texto);\n\t\t//obtener un límite de 100 cars\n\t\tString msgAct = new String (texto + \" >> \" + threadLabel.getText());\n\t\tif (msgAct.length() > 120){\n\t\t\tmsgAct = new String(msgAct.substring(0, 119));\n\t\t\tmsgAct = msgAct + \"...\";\n\t\t}else{\n\t\t\t// ¿?\n\t\t}\n\t\tthreadLabel.setText(msgAct);\n\t\t//threadLabel.setText(texto);\n\t\treturn true;\n\t}", "private void facturer(UneCommande22<Integer> cde, TableArticle22 tabArt) { //Une commande\n\t\t\t\tif(cde.taille()==0){\n\t\t\t\t\tClientJava1DateUser.affiche(\"\\n\\t COMMANDE EST VIDE\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tClientJava1DateUser.affiche(cde.facturer(tabArt)); // Affiche ligne de commande\n\t\t\t\t}\t\n\t\t\t}", "public void setTipoContingencia(String tipoContingencia) {\n this.tipoContingencia = tipoContingencia;\n }", "public void setNombreClase(String nombreClase) { this.nombreClase = nombreClase; }", "@Override\n\tpublic void afficherRendezvous(Rendezvous rv) {\n\t\tSystem.out.println(\"client à un nom: \" + rv.getNom());//affiche le nom du client\n\t\tSystem.out.println(\"l'heure du rendezvous est de ...a : \" + rv.getHeure());//affiche lheure du rendez vous du client\n\t\tSystem.out.println(\"le rendezvous aura lieu de .. a: \" + rv.getDate());//affiche la date du rendez vous\n\t\tSystem.out.println(\"le telephone du client du client est: \" + rv.getTelephone());//affiche le telephone du client\n\t\tSystem.out.println(\"le type de soin du client: \"+ rv.getSoins()); //affiche le type de soin du client\n\t\t// TODO Auto-generated method stub\n\n\t}", "public Erreur() {\n\t}", "public void supprimerClasse(int ligne) {\n\t\tSystem.out.println(\"JE SUPPRIME UNE CLASSE \" + ligne);\n\t\ttry{\n\t\t\t\n\t\t\trequete.execute(\"SELECT id FROM eleves where id_classe = \" + ligne);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tsupprimerEmpruntsParEleve(rs.getInt(\"ID\"));\n\t\t\t}\n\t\t\t\n\t\t\trequete.execute(\"DELETE FROM eleves WHERE id_classe =\" + ligne);\n\t\t\trequete.execute(\"DELETE FROM classes WHERE ID = \" + ligne);\n\t\t\trafraichir_tableau();\n\t\t} catch(Exception e ){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void setTipoCodifica(Class<? extends Codifica> tipoCodificaClass) {\n\t\tsetTipoCodifica(new TipoCodifica(tipoCodificaClass));\n\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "public CarteCaisseCommunaute() {\n super();\n }", "public Classe() {\r\n }", "@Override\n\tpublic String toString() {\n\t\tString description = \"Client n°\"+num+\" : [\"+super.toString()+\"]\";\n\t\tif(fournisseur) {\n\t\t\tdescription +=\"\\n\\t\\trole suplementaire : fournisseur\";\n\t\t}\n\t\treturn description;\n\t}", "private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}", "public void refrescarForeignKeysDescripcionesFacturaPuntoVenta() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventaLogic.getFacturaPuntoVentas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Usuario.class));\r\n\t\tclasses.add(new Classe(Vendedor.class));\r\n\t\tclasses.add(new Classe(Cliente.class));\r\n\t\tclasses.add(new Classe(Caja.class));\r\n\t\tclasses.add(new Classe(TipoPrecio.class));\r\n\t\tclasses.add(new Classe(Mesa.class));\r\n\t\tclasses.add(new Classe(Formato.class));\r\n\t\tclasses.add(new Classe(TipoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(EstadoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(AsientoContable.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//facturapuntoventaLogic.setFacturaPuntoVentas(this.facturapuntoventas);\r\n\t\t\tfacturapuntoventaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public void ajouterFiche(Fiche fiche) ;", "private void mensajeGrow(String mensaje, EntidadDTO entidadDTO) {\r\n\t\tFacesMessage msg = new FacesMessage(mensaje, entidadDTO.getNit() + \" \" + entidadDTO.getNombre());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t}", "public MoC getContentClass() {\r\n \t\tMoC clasz = null;\r\n \r\n \t\tif (isActor()) {\r\n \t\t\tclasz = actor.getMoC();\r\n \t\t} else {\r\n \t\t\tclasz = network.getMoC();\r\n \t\t}\r\n \r\n \t\treturn clasz;\r\n \t}", "public void refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarioLogic.getTipoDetalleMovimientoInventarios());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarios);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//tipodetallemovimientoinventarioLogic.setTipoDetalleMovimientoInventarios(this.tipodetallemovimientoinventarios);\r\n\t\t\ttipodetallemovimientoinventarioLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public CapteurEffetHall() {\n\t\t\n\t}", "@Override\r\n public void windowClosing(WindowEvent e) {\n if (isSendFile || isReceiveFile) {\r\n JOptionPane.showMessageDialog(contentPane,\r\n \"���ڴ����ļ��У��������뿪...\",\r\n \"Error Message\", JOptionPane.ERROR_MESSAGE);\r\n } else {\r\n int result = JOptionPane.showConfirmDialog(getContentPane(),\r\n \"��ȷ��Ҫ�뿪������\");\r\n if (result == 0) {\r\n CatBean clientBean = new CatBean();\r\n clientBean.setType(-1);\r\n clientBean.setName(name);\r\n clientBean.setTimer(CatUtil.getTimer());\r\n sendMessage(clientBean);\r\n }\r\n }\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public abstract String getMessageType();", "public ApercuEnseignantsAssignesFrame(String nomClasse, boolean retrait) {\n initComponents();\n setTitle(\"Aperçu des enseignants\");\n setVisible(true);\n setLocationRelativeTo(null);\n\n enseignantsAssignes = new AffectationEnseignants();\n responsable = new Responsable();\n this.nomClasse = nomClasse;\n jLabel1.setText(nomClasse);\n \n enseignantsAssignes.afficherEnseignantsAssignes(jTable1, nomClasse);\n if(retrait)\n jButton1.setEnabled(true);\n }", "private void muestraResultado(float vimc, String msg){\n //Mensaje en notificacion de Toast\n // Toast.makeText(this, vimc+ msg, Toast.LENGTH_SHORT).show();\n\n //Mensaje con alert\n AlertDialog.Builder vent = new AlertDialog.Builder(this);\n //Modificar las propiedades del de vent\n vent.setTitle(\"Resultado\");\n String cad = String.valueOf(vimc);\n vent.setMessage(\"IMC: \" + vimc+\"\\n\"+msg);\n //Crear boton de modal\n vent.setPositiveButton(\"Aceptar\", null);\n //Crear modal\n vent.create();\n //Mostarr en la poantalla\n vent.show();\n txtA.setText(null);\n txtP.setText(null);\n }", "public void setMsgType(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 localMsgTypeTracker = false;\r\n \r\n } else {\r\n localMsgTypeTracker = true;\r\n }\r\n \r\n this.localMsgType=param;\r\n \r\n\r\n }", "private void inizia() throws Exception {\n this.setClasse((new ArrayList<Boolean>()).getClass());\n this.setValoreVuoto(null);\n }", "private static void m6091c(Object obj, Class<?> cls) {\n throw Context.m6756a(\"msg.conversion.not.allowed\", (Object) String.valueOf(obj), (Object) C2140au.m5785a(cls));\n }", "public ExcepcionArchivoNoLeido(String mensaje, Throwable c) {\n super(mensaje, c);\n }", "public ApiUnproccesableEntity(String mensaje) {\n\t\tsuper(mensaje);\n\t}", "public Mensaje (int valor, int peso, int porcentaje) {\n this.respuesta = false;\n this.valor = valor;\n this.porcentaje = porcentaje;\n this.peso = peso;\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}", "void afficherClassement() {\n classement.rechargerListeJoueur();\n CardLayout cl = (CardLayout) (container.getLayout());\n cl.show(container, \"Classement\");\n }", "private void handleActionNotificaFertilizzante(Intent input) {\n Intent intent = new Intent(this, DettagliPiantaUtente.class).setAction(ACTION_NOTIFICA_FERTILIZZANTE);\n intent.putExtras(input);\n intent.putExtra(\"fromNotificationService\", true);\n long[] pattern = {0, 300, 0};\n PendingIntent pi = PendingIntent.getActivity(this, idPossesso, intent, 0);\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.fmn_logo)\n .setContentTitle(\"Concima \" + nomeAssegnato)\n .setContentText(\"La tua pianta ha bisogno di essere concimata!\")\n .setVibrate(pattern)\n .setAutoCancel(true);\n\n mBuilder.setContentIntent(pi);\n mBuilder.setDefaults(Notification.DEFAULT_SOUND);\n NotificationManager mNotificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(idPossesso, mBuilder.build());\n }", "public IRecepteur quiEstEnDessous();" ]
[ "0.61056197", "0.55599415", "0.55489236", "0.5434367", "0.5371292", "0.5351984", "0.5335988", "0.52989227", "0.52930504", "0.5290663", "0.5285987", "0.52856624", "0.527376", "0.5182354", "0.51646864", "0.5127249", "0.5090558", "0.5090558", "0.50900376", "0.50886387", "0.50816995", "0.5064842", "0.5062824", "0.5034142", "0.5018352", "0.5006173", "0.50003344", "0.499647", "0.49756876", "0.4971196", "0.49614814", "0.494983", "0.49318418", "0.49311945", "0.49251926", "0.49245417", "0.49110314", "0.49037787", "0.48897126", "0.4885213", "0.4876137", "0.4874133", "0.4873574", "0.4864007", "0.48597926", "0.4858704", "0.48509464", "0.48468328", "0.4844885", "0.48331085", "0.482238", "0.48173493", "0.4813753", "0.48061603", "0.4801626", "0.4795685", "0.47798115", "0.47719666", "0.47701773", "0.47697827", "0.47635433", "0.47570163", "0.47528926", "0.47506237", "0.474164", "0.47406253", "0.47391245", "0.47374573", "0.4734343", "0.4728498", "0.4728463", "0.47279796", "0.4726151", "0.47145838", "0.47115028", "0.47100216", "0.47082785", "0.4706064", "0.4704459", "0.46969718", "0.46957374", "0.46922916", "0.46885636", "0.4688451", "0.4680166", "0.46758246", "0.46740085", "0.46730083", "0.46728072", "0.46695915", "0.46680292", "0.4667665", "0.46642566", "0.4661679", "0.46534663", "0.46510467", "0.4648923", "0.46485913", "0.464258", "0.46420112" ]
0.68618774
0
Disable element form login
@Override public void enableProgressBar() { et_log_email.setEnabled(false); et_log_password.setEnabled(false); acb_login.setVisibility(View.GONE); acb_register.setVisibility(View.GONE); //Enable progressbar pb_login.setVisibility(View.VISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void denyRegistration(String login);", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "public void loginWithoutPersonalDevice() {\n\t\t//new WebDriverWait(driver, 45).pollingEvery(1, TimeUnit.SECONDS).until(ExpectedConditions.visibilityOf(personalCheckbox));\n\t\twaitOnProgressBarId(45);\n\t\tif (pageTitle.getText().contains(\"Phone\")) {\n\n\t\t\tLog.info(\"======== Unchecking personal device ========\");\n\t\t\tpersonalCheckbox.click();\n\t\t\tLog.info(\"======== Selecting Dont ask again checkbox ========\");\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tLog.info(\"======== Clicking on Skip button ========\");\n\t\t\tcontinueButton.click(); // Click on Skip , Skip=Continue\n\t\t}\n\t}", "@Override\n public void disableProgressBar() {\n et_log_email.setEnabled(true);\n et_log_password.setEnabled(true);\n acb_login.setVisibility(View.VISIBLE);\n acb_register.setVisibility(View.VISIBLE);\n\n //Disable progressbar\n pb_login.setVisibility(View.GONE);\n }", "public void disablePanelInput() {\n\t\tif (!clickThem) {\r\n\t\t\ttxt_mssv.setText(\"\");\r\n\t\t\ttxt_mssv.setEnabled(false);\r\n\t\t\ttxt_hoten.setEnabled(false);\r\n\t\t\ttxt_hoten.setText(\"\");\r\n\t\t\tcomboSex.setEnabled(false);\r\n\t\t\ttxt_ntns.setText(\"\");\r\n\t\t\ttxt_ntns.setEnabled(false);\r\n\t\t\tbtn_nhap.setEnabled(false);\r\n\t\t} else {\r\n\t\t\ttxt_mssv.setEnabled(true);\r\n\t\t\ttxt_hoten.setEnabled(true);\r\n\t\t\tcomboSex.setEnabled(true);\r\n\t\t\ttxt_ntns.setEnabled(true);\r\n\t\t\tbtn_nhap.setEnabled(true);\r\n\t\t}\r\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\t\tloginTF.setText(\"\");\n\t\t\t\tpasswordTF.setText(\"\");\n\t\t\t\tmainJTabbedPane.setSelectedIndex(0);\n\t\t\t\tmainJTabbedPane.setEnabledAt(1, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(2, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(3, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(4, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(5, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(6, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(7, false);\n\t\t\t\tlogoutComponentsJPanel.setVisible(false);\n\t\t\t\tloginComponentsJPanel.setVisible(true);\n\t\t\t}", "@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "void updateButtonLogin() {\n\t\tthis.mButtonLogin.setEnabled(this.mAuthUsername.getText().length() > 0\n\t\t\t\t&& this.mAuthPassword.getText().length() > 0);\n\t}", "public Login() {\n initComponents();\n hideregister ();\n }", "@Test\n\tpublic void Test_NoAccess2() throws Exception {\n\t\t\n\t\tfinal HtmlForm form = (HtmlForm) page.getElementById(\"signInForm1\");\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"jb\");\n\t\tform.getInputByName(\"password\").setValueAttribute(\"\");\t// No password!!!\n\t\t\n\t\tform.getInputByName(\"submit\").click();\n\t\t\n\t\tassertEquals(\"Fab Lab - Anmelden\", page.getTitleText());\n\t\tassertTrue(page.asXml().contains(\"<span wicket:id=\\\"signInPanel\\\" id=\\\"signInPanel\\\">\"));\n\t\t\n\t}", "public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "public void disableInputs();", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}", "public void disable();", "private void hideLoginScreen()\n {\n logIngEditText.setVisibility(View.INVISIBLE);\n passwordEditText.setVisibility(View.INVISIBLE);\n loginButton.setVisibility(View.INVISIBLE);\n textViewLabel.setVisibility(View.INVISIBLE);\n }", "@Test\n\tpublic void Test_NoAccess3() throws Exception {\n\t\t\n\t\tfinal HtmlForm form = (HtmlForm) page.getElementById(\"signInForm1\");\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"jb\");\n\t\tform.getInputByName(\"password\").setValueAttribute(\"xxxx\");\t// wrong password!!!\n\t\t\n\t\tform.getInputByName(\"submit\").click();\n\t\t\n\t\tassertEquals(\"Fab Lab - Anmelden\", page.getTitleText());\n\t\tassertTrue(page.asXml().contains(\"<span wicket:id=\\\"signInPanel\\\" id=\\\"signInPanel\\\">\"));\n\t\t\n\t}", "protected void hidePassword(){\n\t\tpasswordLabel.setVisible(false);\n\t\tconfirmPasswordLabel.setVisible(false);\n\t\tuserPasswordField.setVisible(false);\n\t\tuserConfirmPasswordField.setVisible(false);\n\t\tlackUserPasswordLabel.setVisible(false);\n\t\tlackUserConfirmPasswordLabel.setVisible(false);\t\t\n\t}", "public void unauthorized() {\n super.unauthorized();\n LoginFragment.this.getTracker().send(new HitBuilders.EventBuilder().setCategory(\"sign_in\").setAction(\"incorrect\").setLabel(\"incorrect\").build());\n Answers.getInstance().logLogin(new LoginEvent().putSuccess(false));\n new AlertDialog.Builder(LoginFragment.this.getActivity()).setMessage(R.string.incorrect_email_or_password).setPositiveButton(17039370, (DialogInterface.OnClickListener) null).show();\n }", "@Test\n\tpublic void Test_NoAccess1() throws Exception {\n\t\t\n\t\tfinal HtmlForm form = (HtmlForm) page.getElementById(\"signInForm1\");\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"\");\n\t\tform.getInputByName(\"password\").setValueAttribute(\"\");\t// No Inputs\n\t\t\n\t\tform.getInputByName(\"submit\").click();\n\t\t\n\t\tassertEquals(\"Fab Lab - Anmelden\", page.getTitleText());\n\t\tassertTrue(page.asXml().contains(\"<span wicket:id=\\\"signInPanel\\\" id=\\\"signInPanel\\\">\"));\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"jb\");\n\t\tform.getInputByName(\"password\").setValueAttribute(\"xxxxx\");\t// Wrong password!!!\n\t\t\n\t\tform.getInputByName(\"submit\").click();\n\t\t\n\t\tassertEquals(\"Fab Lab - Anmelden\", page.getTitleText());\n\t\tassertTrue(page.asXml().contains(\"<span wicket:id=\\\"signInPanel\\\" id=\\\"signInPanel\\\">\"));\n\t\t\n\t}", "public void ensureIsNotVisibleLoginBtn() {\n (new WebDriverWait(driver, 10)).until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"signInBtn\")));\n }", "public FormEditUser() {\n initComponents();\n id.setEnabled(false);\n }", "public void clkbtnLogin() {\n\t\tWebDriverWait wait = new WebDriverWait(ldriver, 25);\n\t\twait.until(ExpectedConditions.visibilityOf(btnLogin));\n\t\twait.until(ExpectedConditions.elementToBeClickable(btnLogin));\n\t\tbtnLogin.click();\n\t}", "public void login2() {\n\t\tdriver.findElement(By.cssSelector(\"input[name='userName']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='password']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='login']\")).click();\n\t\t\n\n\t\n\t\n\t}", "public jpuppeteer.util.XFuture<?> disable() {\n return connection.send(\"Security.disable\", null);\n }", "public String Login_without_textfields_entered() {\n\tLoginButton.click();\n\twait.TextToBe_Wait(\"//div[text()='Invalid Email or Password']\", \"Invalid Email or Password\");\n\tString text=ErrorMessage.getText();\n\treturn text;\n\t}", "private void setDefaultDisabled() {\n\t\tnameField = new JTextField();\n\t\tnameField.setPreferredSize(new Dimension(290,25)); //Size setting for a 600x400 JFrame\n\t\tnameField.setEnabled(false);\n\t\taddPlayer = new JButton(\"Add Player\");\n\t\taddPlayer.addActionListener(new addPlayerListener());\n\t\taddPlayer.setEnabled(false);\n\t\tplayGame = new JButton(\"Play!\");\n\t\tplayGame.addActionListener(new playGameListener());\n\t\tplayGame.setEnabled(false);\n\t\ttakeTurn = new JButton(\"Take Turn\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t\ttakeTurn.addActionListener(new takeTurnListener());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t\ttakeTurn.setEnabled(false);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t}", "@Test\n public void conditionalOTPDefaultSkip() {\n Map<String, String> config = new HashMap<>();\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }", "void disable();", "void disable();", "@Override\n\tpublic boolean login(MemberBean param) {\n\t\treturn false;\n\t}", "private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}", "public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}", "public String Login_by_entering_credentials_which_do_not_exsist() {\n\temailtextbox.sendKeys(\"User\"+random.nextInt(100000)+\"@gmail.com\");\n\tpasswordtextbox.sendKeys(\"password\"+random.nextInt(100000));\n\tLoginButton.click();\n\twait.TextToBe_Wait(\"//div[text()='Invalid Email or Password']\", \"Invalid Email or Password\");\n\tString text=ErrorMessage.getText();\n\treturn text;\n\t}", "public void verifyFalseLogin() {\n alertElement.waitForState().present(30);\n alertElement.assertContains().text(\"Please Enter a Valid User ID\");\n }", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "@FXML\n\tpublic void disableMyUser(ActionEvent event) {\n\t\tif (!txtDisableMyUser.getText().isEmpty()) {\n\t\t\tSystemUser user = restaurant.returnUser(txtDisableMyUser.getText());\n\n\t\t\tif (user != null) {\n\t\t\t\ttry {\n\t\t\t\t\tuser.setCondition(Condition.INACTIVE);\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"Tu usuario ha sido deshabilitado\");\n\t\t\t\t\tdialog.setTitle(\"Usuario Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtDisableMyUser.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se ha podido guardar el nuevo estado del usuario\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error, usuario inexistente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "@Test\r\n public void negativeRegistration() {\r\n driver.get(\"http://127.0.0.1:8888/wp-login.php?action=register\");\r\n WebElement loginField = driver.findElement(By.xpath(\"//input[@id='user_login']\"));\r\n loginField.sendKeys(\"admin\");\r\n WebElement passwdField = driver.findElement(By.xpath(\"//input[@id='user_email']\"));\r\n passwdField.sendKeys(\"[email protected]\");\r\n\r\n WebElement registrationButton = driver.findElement(By.xpath(\"//input[@name='wp-submit']\"));\r\n registrationButton.click();\r\n\r\n WebElement registrationError = driver.findElement(By.xpath(\"//div[@id='login_error']\"));\r\n\r\n Assert.assertNotNull(registrationError);\r\n }", "protected abstract void disable();", "void disableMod();", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "public void LoginButton() {\n\t\t\r\n\t}", "public static void forceLogin() {\n forcedLogin = true;\n }", "@FXML private void hideLackUserPasswordLabel(){\n\t\tlackUserPasswordLabel.setVisible(false);\n\t}", "protected void login() {\n\t\t\r\n\t}", "void logoff();", "private void disableHashingPasswordInterceptor()\n {\n // Getting the hashing password interceptor\n InterceptorBean hashingPasswordInterceptor = getHashingPasswordInterceptor();\n\n if ( hashingPasswordInterceptor != null )\n {\n // Disabling the interceptor\n hashingPasswordInterceptor.setEnabled( false );\n }\n }", "public void inhabilitaPanel() {\n\t\t// contentPane.setEnabled(false);\n\t\tpanelPrincipal.setEnabled(false);\n\t\tpanelBotones.setEnabled(false);\n\t\tboton1Jugador.setEnabled(false);\n\t\tbotonJuegoRed.setEnabled(false);\n\t\tbotonEditar.setEnabled(false);\n\t\tbotonDemo.setEnabled(false);\n\t\tbotonReglas.setEnabled(false);\n\t\tbotonAyuda.setEnabled(false);\n\t\tbotonRecibir.setEnabled(false);\n\t\tbotonEnviar.setEnabled(false);\n\t\tbotonDescargaSobre.setEnabled(false);\n\t\tbotonSalir.setEnabled(false);\n\t\tlabelFondo.setEnabled(false);\n\t\tlabelDibujo.setEnabled(false);\n\n\t}", "public static void Login(WebDriver driver){\n WebElement element = driver.findElement(By.xpath(\"//*[@id = 'txtUsername']\"));\n WebElement element2 = driver.findElement(By.xpath(\"//*[@id = 'txtPassword']\"));\n element.clear();\n element2.clear();\n element.sendKeys(\"Admin\");\n element2.sendKeys(\"admin123\");\n element2.submit();\n WebElement element3 = driver.findElement(By.xpath(\"//*[@id = 'menu_time_viewTimeModule']\"));\n element3.click();\n WebElement element4 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_Attendance']\"));\n element4.click();\n WebElement element5 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_punchIn']\"));\n element5.click();\n }", "public void onLoginFailed() {\n Toast.makeText(getBaseContext(), \"Login failed\", Toast.LENGTH_LONG).show();\n bLogin.setEnabled(true);\n }", "@Test\n public void noUsernameNoPasswordTest(){\n WebElement submitbutton = driver.findElement(By.className(\"submit\"));\n\n submitbutton.click();\n\n WebDriverWait w = new WebDriverWait(driver, 10);\n\n assertTrue(submitbutton.isDisplayed());\n }", "@Test(priority = 3)\n public void emptyPasswordLogin() {\n Login login = new Login(driver, wait);\n login.LoginMethod(login);\n login.typeCredentials(login.emailLabel, correctMail);\n login.typeCredentials(login.passwordLabel, \"\");\n login.click(login.submitBtn);\n login.checkElementDisplayed(login.errorBox);\n login.checkErrorMessageMatching(login.errorBox,emptyPasswordError);\n\n }", "@Test\n public void testEmptyUserNamePassword() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(\"\");\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(\"\");\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n\n }", "private void submitForm() {\n this.setDisable(true);\n clearErrorMessage();\n if(validateForm()) {\n CharSequence chars = passwordField.getCharacters();\n String username = usernameField.getText();\n this.controller.validateLoginCredentials(username, chars);\n }\n this.setDisable(false);\n }", "private void form_awal() {\n jnama.setEnabled(false);\n jalamat.setEnabled(false);\n jhp.setEnabled(false);\n jbbm.setEnabled(false);\n jsitus.setEnabled(false);\n \n btnsimpan.setEnabled(false);\n btnhapus.setEnabled(false);\n }", "@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}", "public WebElement userLoginDiv() {\r\n return driver.findElement(By.id(\"block-system-main\"));\r\n\r\n}", "void disableAddContactButton();", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "@Test\n\tpublic void LoginNegative() throws InterruptedException {\n\t\tdriver.get(PAGE_URL);\n\t\tdriver.manage().deleteAllCookies();\n\t\tnew PageFactory();\n\t\tfinal PageElements elem = PageFactory.initElements(driver, PageElements.class);\n\t\telem.signIn.click();\n\t\telem.emailInput.sendKeys(EMAIL);\n\t\telem.checkYes.click();\n\t\telem.passwordInput.sendKeys(PASSWORD);\n\t\telem.passwordInput.submit();\n\t\tThread.sleep(5000);\n\t\tAssert.assertTrue(driver\n\t\t\t\t.findElement(By.xpath(\"/html/body/div/div[2]/div[3]/div/h6\"))\n\t\t\t\t.getText().equals(\"There was a problem with your request\"));\n\t}", "private void setMembershipPanelEdiableFalse() {\n \n accountNrTF.setEditable(false);\n fromDateTF.setEditable(false);\n groupTrainingCB.setEnabled(false);\n monthPayTF.setEditable(false);\n pbsDateTF.setEditable(false);\n pbsNumberTF.setEditable(false);\n regNrTF.setEditable(false);\n balanceTF.setEditable(false);\n poolsCB.setEnabled(false);\n timeLimitCB.setEnabled(false);\n endDateTF.setEditable(false);\n membershipDropD.setEnabled(false);\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public static void disableMainGUI() {\r\n\t\tfrmMfhEmailer.setEnabled(false);\r\n\t}", "public login() {\n initComponents();\n \n \n }", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Test(enabled = false, priority = 7)\n\tpublic void userIdTest() {\n\t\tdriver.findElement(By.cssSelector(\".cms-login-field.ng-pristine.ng-invalid.ng-touched\")).click();\n\t}", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "public void stopLogin(Context context) {\n\t\tm_Login = false;\n\t\tif (context != null) saveMisc(context);\n\t}", "public void User_login()\r\n\t{\n\t\tdriver.findElement(FB_Locators.Signin_Email).clear();\r\n\t\tdriver.findElement(FB_Locators.Signin_Email).sendKeys(username);\r\n\t\t\r\n\t\t//Script using element referral..\r\n\t\tWebElement Password_Element=driver.findElement(FB_Locators.Signin_password);\r\n\t\tPassword_Element.clear();\r\n\t\tPassword_Element.sendKeys(password);\r\n\t\t\r\n\t\t//Login button using webelemnet referral\r\n\t\tWebElement Login_btn_Element=driver.findElement(FB_Locators.Signin_btn);\r\n\t\tLogin_btn_Element.click();\r\n\t}", "public void habilitaPanel() {\n\t\t// contentPane.setEnabled(true);\n\t\tpanelPrincipal.setEnabled(true);\n\t\tpanelBotones.setEnabled(true);\n\t\tboton1Jugador.setEnabled(true);\n\t\tbotonJuegoRed.setEnabled(true);\n\t\tbotonEditar.setEnabled(true);\n\t\tbotonDemo.setEnabled(true);\n\t\tbotonReglas.setEnabled(true);\n\t\tbotonAyuda.setEnabled(true);\n\t\tbotonRecibir.setEnabled(true);\n\t\tbotonEnviar.setEnabled(true);\n\t\tbotonDescargaSobre.setEnabled(true);\n\t\tbotonSalir.setEnabled(true);\n\t\tlabelFondo.setEnabled(true);\n\t\tlabelDibujo.setEnabled(true);\n\n\t}", "@Test(priority = 4)\n public void emptyUsernameLogin() {\n Login login = new Login(driver, wait);\n login.LoginMethod(login);\n login.typeCredentials(login.emailLabel, \"\");\n login.typeCredentials(login.passwordLabel, correctPassword);\n login.click(login.submitBtn);\n login.checkElementDisplayed(login.errorBox);\n login.checkErrorMessageMatching(login.errorBox,emptyUsernameError);\n }", "public void botoiaDesaktibatu2() {\r\n\t\tbtnAurrera.setEnabled(true);\r\n\t}", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "@UiHandler(\"go\")\n void connexion(ClickEvent e) {\n loginField.setFocus(false);\n passwordField.setFocus(false);\n domains.setFocus(false);\n\n String login = loginField.getText();\n String password = passwordField.getText();\n login(login, password, domains.getValue(domains.getSelectedIndex()));\n\n\n }", "public Tampilan_Utama() {\n initComponents();\n initFrame();\n this.setLocationRelativeTo(null);\n jMenu5.setEnabled(false);\n jMenuItem1.setEnabled(true);\n jMenuItem5.setEnabled(false);\n jMenuItem6.setEnabled(false);\n jMenuItem7.setEnabled(false);\n jMenuItem10.setEnabled(false);\n adLbl.setVisible(false);\n adminLbl.setVisible(false);\n adminLbl.setText(\"\");\n logoutBtn.setVisible(false);\n \n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "@Override\n public void run() {\n btn_login.setEnabled(true);\n Log.d(TAG, \"resend1\");\n\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "private void disableChat()\r\n\t{\r\n\t\ttextFieldMessageSaisie.setDisable(true);\r\n\t\tlistViewConversation.setDisable(true);\r\n\t\tbuttonChoisirFichier.setDisable(true);\r\n\t\ttextFieldFichier.setDisable(true);\r\n\t}", "public ExternalLoginManagedBean() {\n login = false;\n }", "public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }", "void disable() {\n }", "public frm_LoginPage() {\n initComponents();\n setIcon();\n txt_userName.setText(\"\");\n txt_userName.requestFocus();\n password_password.setText(\"\");\n }", "public void botoiaDesaktibatu() {\r\n\t\tordaindu_Botoia.setEnabled(false);\r\n\t}", "public void invalidLogin() {\n passwordField.setText(\"\");\n errorMessageLabel.setError(ErrorCode.LOGIN_INVALID_CREDENTIAL_ERROR);\n }", "@Override\n\t\tpublic void onCancelLogin() {\n\n\t\t}", "@Override\n\t\tpublic void onCancelLogin() {\n\n\t\t}", "private final static void onLoginAdmin(TextField username, PasswordField password)\n\t{\n\t\tif(ProfileManipulation.findUsername(username.getText()) && !ProfileManipulation.checkLoginStatus(username.getText())){\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\n\t\t\t\tProfileManipulation.changePassword(password.getText());\n\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "@Test\n public void conditionalOTPDefaultSkipWithChecks() {\n Map<String, String> config = new HashMap<>();\n config.put(OTP_CONTROL_USER_ATTRIBUTE, \"noSuchUserSkipAttribute\");\n config.put(SKIP_OTP_ROLE, \"no_such_otp_role\");\n config.put(FORCE_OTP_ROLE, \"no_such_otp_role\");\n config.put(SKIP_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(FORCE_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "@And(\"^user enters no password$\")\n public void userEntersNoPassword() throws Throwable {\n }", "void setCredentialsNonExpired(boolean credentialsNonExpired);", "@Override\n\tpublic boolean login(Map<String, Object> map) {\n\t\treturn false;\n\t}" ]
[ "0.66988444", "0.6576296", "0.6428543", "0.63909036", "0.6335588", "0.6317947", "0.62920547", "0.62692815", "0.62692815", "0.62176216", "0.61853814", "0.6182225", "0.6165912", "0.61615497", "0.6154294", "0.61094165", "0.6106399", "0.60836744", "0.60305834", "0.6022508", "0.60103196", "0.60012376", "0.59942085", "0.5972549", "0.59621865", "0.5927297", "0.5905684", "0.5905268", "0.58893216", "0.5883762", "0.5876745", "0.58752394", "0.58752394", "0.5860529", "0.5831463", "0.5828423", "0.58106744", "0.58095217", "0.5801641", "0.5800875", "0.5797523", "0.57965404", "0.5791032", "0.57899594", "0.57894874", "0.57837594", "0.5756907", "0.57548046", "0.57521385", "0.57436895", "0.5741729", "0.574054", "0.5732287", "0.5726772", "0.5720285", "0.5718688", "0.56909895", "0.5686746", "0.5684494", "0.5678294", "0.56732035", "0.5668978", "0.56605697", "0.5644833", "0.56360894", "0.5633666", "0.5631857", "0.5629494", "0.56209743", "0.56155837", "0.56153", "0.56086004", "0.5601473", "0.5593773", "0.55917245", "0.5590817", "0.5587179", "0.5584156", "0.5583865", "0.55811477", "0.55791503", "0.55781364", "0.5574283", "0.5573932", "0.557249", "0.55694056", "0.5568169", "0.55676335", "0.55658394", "0.5556774", "0.55496854", "0.55491215", "0.5547564", "0.5547564", "0.55466425", "0.5539936", "0.55319333", "0.5526798", "0.5526562", "0.55245167" ]
0.5628629
68
Enable element form login
@Override public void disableProgressBar() { et_log_email.setEnabled(true); et_log_password.setEnabled(true); acb_login.setVisibility(View.VISIBLE); acb_register.setVisibility(View.VISIBLE); //Disable progressbar pb_login.setVisibility(View.GONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public Login() {\n initComponents();\n hideregister ();\n }", "void updateButtonLogin() {\n\t\tthis.mButtonLogin.setEnabled(this.mAuthUsername.getText().length() > 0\n\t\t\t\t&& this.mAuthPassword.getText().length() > 0);\n\t}", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public login() {\n initComponents();\n \n \n }", "protected void login() {\n\t\t\r\n\t}", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public void LoginButton() {\n\t\t\r\n\t}", "public void User_login()\r\n\t{\n\t\tdriver.findElement(FB_Locators.Signin_Email).clear();\r\n\t\tdriver.findElement(FB_Locators.Signin_Email).sendKeys(username);\r\n\t\t\r\n\t\t//Script using element referral..\r\n\t\tWebElement Password_Element=driver.findElement(FB_Locators.Signin_password);\r\n\t\tPassword_Element.clear();\r\n\t\tPassword_Element.sendKeys(password);\r\n\t\t\r\n\t\t//Login button using webelemnet referral\r\n\t\tWebElement Login_btn_Element=driver.findElement(FB_Locators.Signin_btn);\r\n\t\tLogin_btn_Element.click();\r\n\t}", "public void login2() {\n\t\tdriver.findElement(By.cssSelector(\"input[name='userName']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='password']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='login']\")).click();\n\t\t\n\n\t\n\t\n\t}", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "public void actionPerformed(ActionEvent e){\n\t\t\t\tloginTF.setText(\"\");\n\t\t\t\tpasswordTF.setText(\"\");\n\t\t\t\tmainJTabbedPane.setSelectedIndex(0);\n\t\t\t\tmainJTabbedPane.setEnabledAt(1, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(2, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(3, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(4, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(5, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(6, false);\n\t\t\t\tmainJTabbedPane.setEnabledAt(7, false);\n\t\t\t\tlogoutComponentsJPanel.setVisible(false);\n\t\t\t\tloginComponentsJPanel.setVisible(true);\n\t\t\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void user_signin()\r\n\t{\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"email\")).clear();\r\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(UID);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"pass\")).clear();\r\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(PWD);\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }", "public login() {\n initComponents();\n }", "public static void Login(WebDriver driver){\n WebElement element = driver.findElement(By.xpath(\"//*[@id = 'txtUsername']\"));\n WebElement element2 = driver.findElement(By.xpath(\"//*[@id = 'txtPassword']\"));\n element.clear();\n element2.clear();\n element.sendKeys(\"Admin\");\n element2.sendKeys(\"admin123\");\n element2.submit();\n WebElement element3 = driver.findElement(By.xpath(\"//*[@id = 'menu_time_viewTimeModule']\"));\n element3.click();\n WebElement element4 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_Attendance']\"));\n element4.click();\n WebElement element5 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_punchIn']\"));\n element5.click();\n }", "public void login(String login, String password) {\n driver.findElement(By.xpath(\"//input[@id='email']\")).sendKeys(login);\n driver.findElement(By.xpath(\"//input[@id='passwd']\")).sendKeys(password);\n driver.findElement(By.xpath(\"//button[@name='submitLogin']\")).click();\n\n }", "@Override\n public void manejarLogin() {\n loginPresenter.validarLogin(etxtEmail.getText().toString(),etxtPass.getText().toString());\n }", "public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}", "public void clickLogin(){\n\t\t\tdriver.findElement(login).click();\n\t}", "public void login() {\n\t\tloggedIn = true;\n\t}", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "private void login(String username, String password) {\n WebElement usernameTextBox = driver.findElement(By.id(\"username\"));\n WebElement passwordTextBox = driver.findElement(By.id(\"password\"));\n usernameTextBox.sendKeys(username);\n passwordTextBox.sendKeys(password);\n WebElement submitButton = driver.findElement(By.xpath(\"/html/body/div/div/div/div/div[2]/form/fieldset/div[3]/div/button\"));\n submitButton.click();\n }", "public void clickLogin(){\n\t\tdriver.findElement(login).click();\n\t}", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "public void clickLogin() {\n\t\t driver.findElement(loginBtn).click();\n\t }", "public Accountant_login() {\n initComponents();\n }", "public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}", "public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }", "private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }", "public void Login()throws Exception{\r\n if(eMailField.getText().equals(\"user\") && PasswordField.getText().equals(\"pass\")){\r\n displayMainMenu();\r\n }\r\n else{\r\n System.out.println(\"Username or Password Does not match\");\r\n }\r\n }", "@UiHandler(\"go\")\n void connexion(ClickEvent e) {\n loginField.setFocus(false);\n passwordField.setFocus(false);\n domains.setFocus(false);\n\n String login = loginField.getText();\n String password = passwordField.getText();\n login(login, password, domains.getValue(domains.getSelectedIndex()));\n\n\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public void login() throws InterruptedException\n {\n \n WebElement usernameElem;\n WebElement passwordElem;\n usernameElem = driver.findElement(By.id(\"id of username element\"));\n passwordElem = driver.findElement(By.id(\"id of password element\"));\n WebElement submitElem = driver.findElement(By.xpath(\"xPath of submit button\"));\n \n usernameElem.sendKeys(\"your_username\");\n passwordElem.sendKeys(\"your_password\");\n sleeper = getRandLong();\n Thread.sleep(sleeper);\n submitElem.click();\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public void fillInLogin(String username, String password) {\n WebElement usernameField = driver.findElement(By.id(\"username\"));\n WebElement passwordField = driver.findElement(By.cssSelector(\"input[name=password]\"));\n WebElement loginButton = driver.findElement(By.xpath(\"//button[@type='submit']\"));\n\n // Sending username and password: tomsmith / SuperSecretPassword!\n usernameField.sendKeys(username);\n passwordField.sendKeys(password);\n\n // Clicking Login button\n loginButton.click();\n\n // 5 sec waiting\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void clkbtnLogin() {\n\t\tWebDriverWait wait = new WebDriverWait(ldriver, 25);\n\t\twait.until(ExpectedConditions.visibilityOf(btnLogin));\n\t\twait.until(ExpectedConditions.elementToBeClickable(btnLogin));\n\t\tbtnLogin.click();\n\t}", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "@Test\r\n public void login() {\n driver.findElement(By.className(\"login\")).click();\r\n // Fill in the form\r\n driver.findElement(By.id(\"email\")).sendKeys(\"[email protected]\");\r\n driver.findElement(By.id(\"passwd\")).sendKeys(\"tester\");\r\n driver.findElement(By.id(\"SubmitLogin\")).click();\r\n // Assert if element is displayed\r\n // Assert if element is displayed\r\n Assert.assertTrue(driver.findElement(\r\n By.cssSelector(\"ul.myaccount_lnk_list\")).isDisplayed());\r\n }", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "@And(\"click on login button\")\n\tpublic void click_on_login_button() {\n\t\tSystem.out.println(\"click on login button\");\n\t\tdriver.findElement(By.name(\"Submit\")).click();\n\t \n\t}", "public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}", "public static void forceLogin() {\n forcedLogin = true;\n }", "public Login() {\n initComponents();\n \n }", "public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\n\t}", "public void irParaPaginaDeLogin (){\n\n click(By.className(btnLoginClass));\n }", "@And(\"clicks on login button\")\n\tpublic void clicks_on_login_button() {\n\t\tdriver.findElement(By.id(\"login\")).click();\n\t\t\n\n\t}", "public InputLoginParolExpert() {\n initComponents();\n }", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public loginForm() {\n initComponents();\n \n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "private final static void onLoginAdmin(TextField username, PasswordField password)\n\t{\n\t\tif(ProfileManipulation.findUsername(username.getText()) && !ProfileManipulation.checkLoginStatus(username.getText())){\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\n\t\t\t\tProfileManipulation.changePassword(password.getText());\n\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "@Test\t\t\n\tpublic void Login()\t\t\t\t\n\t{\t\t\n\t driver.get(\"https://demo.actitime.com/login.do\");\t\t\t\t\t\n\t driver.findElement(By.id(\"username\")).sendKeys(\"admin\");\t\t\t\t\t\t\t\n\t driver.findElement(By.name(\"pwd\")).sendKeys(\"manager\");\t\t\t\t\t\t\t\n\t driver.findElement(By.xpath(\"//div[.='Login ']\")).click();\t\t\n\t driver.close();\n\t}", "public void clickOnLogin() {\n\t\tWebElement loginBtn=driver.findElement(loginButton);\n\t\tif(loginBtn.isDisplayed())\n\t\t\tloginBtn.click();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n loginField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n passwordField = new javax.swing.JPasswordField();\n rememberCheckBox = new javax.swing.JCheckBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Authorization\");\n setFocusable(false);\n setResizable(false);\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n });\n\n jLabel1.setText(\"Логин\");\n\n loginField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n loginFieldKeyPressed(evt);\n }\n });\n\n jLabel2.setText(\"Пароль\");\n\n jButton1.setText(\"OK\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n passwordField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n passwordFieldKeyPressed(evt);\n }\n });\n\n rememberCheckBox.setSelected(true);\n rememberCheckBox.setText(\"Запомнить\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(passwordField, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE)\n .addComponent(loginField, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addComponent(rememberCheckBox)\n .addGap(31, 31, 31)\n .addComponent(jButton1)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(loginField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(passwordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(rememberCheckBox)\n .addContainerGap(30, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)\n .addContainerGap())))\n );\n\n pack();\n }", "@Override\n\tpublic boolean login(MemberBean param) {\n\t\treturn false;\n\t}", "public void clickLoginBtn() {\r\n\t\tthis.loginBtn.click(); \r\n\t}", "public AfterLogin() {\n initComponents();\n }", "public void sendLoginClickPing() {\n WBMDOmnitureManager.sendModuleAction(new WBMDOmnitureModule(\"reg-login\", ProfessionalOmnitureData.getAppNamePrefix(this), WBMDOmnitureManager.shared.getLastSentPage()));\n }", "public void LogIn() {\n\t\t\r\n\t}", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "private void proseslogin() {\n String user = username.getText();\n char[] pass = password.getPassword();\n \n if (user.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Username Harus Diisi\");\n username.requestFocus();\n } else if (pass.length == 0){\n JOptionPane.showMessageDialog(this, \"Password Harus Diisi\");\n password.requestFocus();\n }else{\n String password = new String(pass);\n login.setEnabled(false);\n try {\n Connection conn = koneksi.sambungDB();\n Statement st = conn.createStatement();\n String n = \"SELECT * FROM tb_admin \"\n +\"WHERE admin_username='\"+user+\"' \"\n +\"AND admin_password=MD5('\"+password+\"')\" ;\n// System.out.println(q);\n ResultSet rs = st.executeQuery(n);\n if (rs.next()) {\n Data_perumahan h = new Data_perumahan();\n h.setExtendedState(Frame.MAXIMIZED_BOTH);\n this.setVisible(false);\n h.setVisible(true);\n }else{\n JOptionPane.showMessageDialog(this, \"Username dan Password Salah\");\n username.requestFocus();\n }\n login.setEnabled(true);\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n }\n }", "public TelaLogin() {\n initComponents();\n }", "public TelaLogin() {\n initComponents();\n }", "public void login(ActionEvent e) {\n boolean passwordCheck = jf_password.validate();\n boolean emailCheck = jf_email.validate();\n if (passwordCheck && emailCheck) {\n\n\n new LoginRequest(jf_email.getText(), jf_password.getText()) {\n @Override\n protected void success(JSONObject response) {\n Platform.runLater(fxMain::switchToDashboard);\n }\n\n @Override\n protected void fail(String error) {\n Alert alert = new Alert(Alert.AlertType.ERROR, error, ButtonType.OK);\n alert.showAndWait();\n }\n };\n\n\n }\n }", "private void initsimpleLoginPanel() {\n\t\tfont1 = new Font(\"黑体\",Font.PLAIN,18);\n\t\tfont2 = new Font(\"黑体\",Font.BOLD,18);\n\t\tJLabel bg = new PictureLabel(\"src/main/java/image/3.jpg\");\n\t\tbg.setBounds(0,0,this.getWidth(),this.getHeight());\n\t\t\n\t\tUserID = new JLabel(\"用 户 名:\",JLabel.LEFT);\n\t\tUserID.setFont(new Font(\"华文细黑\",Font.PLAIN,18));\n\t\tUserID.setBounds(330, 230, 130, 80);\n\t\tid = new JTextField(20);\n\t\tid.setBounds(408, 250, 230, 40);\n\t\tid.addKeyListener(new KeyListener(){\n\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(e.getKeyCode()==KeyEvent.VK_ENTER){\n\t\t\t\t\te.consume();\n\t\t\t\t\t KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tPassword = new JLabel(\"密 码:\",JLabel.LEFT);\n\t\tPassword.setFont(new Font(\"华文细黑\",Font.PLAIN,18));\n\t\tPassword.setBounds(330, 312, 130, 80);\n\t\t\n\t\tkey = new JPasswordField(20);\n\t\tkey.setBounds(408, 330, 230, 40);\n\t\tkey.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogin();\n\t\t\t}\t\t\t\n\t\t});\t\n\t\t\n\t\tlogin = new JButton(\"登录\");\n\t\tlogin.setFont(font1);\n\t\tlogin.setBounds(550, 420, 80, 40);\n\t\tlogin.setFocusPainted(false);\n\t\tlogin.setContentAreaFilled(false);\n\t\tlogin.addMouseListener(new MouseListener(){\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogin();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogin.setFont(font2);\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogin.setFont(font1);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\t\n\t\texit = new JButton(\"取消\");\n\t\texit.setFont(font1);\n\t\texit.setBounds(408, 420, 80, 40);\n\t\texit.setFocusPainted(false);\n\t\texit.setContentAreaFilled(false);\n\t\texit.addMouseListener(new MouseListener(){\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsimpleLoginPanel.this.setVisible(false);\t\n\t\t\t\tClient.frame.remove(simpleLoginPanel.this);\n\t\t\t\tClient.frame.add(new simpleWelcomePanel());\n\t\t\t\tClient.frame.repaint();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\texit.setFont(font2);\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\texit.setFont(font1);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tthis.add(login);\n\t\tthis.add(exit);\n\t\tthis.add(id);\n\t\tthis.add(key);\n\t\tthis.add(UserID);\n\t\tthis.add(Password);\n\t\tthis.add(bg);\n\t}", "@Test(priority = 1)\n public void testLoginUser() {\n\n WebElement loginField = driver.findElement(By.name(\"username\"));\n loginField.sendKeys(userLogin);\n System.out.println(userLogin);\n\n WebElement passwordField = driver.findElement(By.name(\"password\"));\n passwordField.sendKeys(userPassword);\n System.out.println(userPassword);\n\n WebElement loginButton = driver.findElement(By.cssSelector(\"button[class*='el-button']\"));\n loginButton.click();\n\n// wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector(\"div[class*='search-form'] > div > input\")));\n\n String url = driver.getCurrentUrl();\n Assert.assertEquals(url,\"http://login.multidetect.eu/project\");\n }", "public loginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@BeforeGroups(groups = \"OFFICER\")\n protected void loginOfficer() throws Exception {\n login(\"[email protected]\", \"officer\");\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}", "public abstract boolean showLogin();", "@Override\n\tpublic boolean login(Map<String, Object> map) {\n\t\treturn false;\n\t}", "public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "@When(\"I login as {string} with password {string}\")\r\n public void iLoginAsWithPassword(String login, String password) {\n autorisation.click(By.id(\"admin_login__nz-select--authorizationRole\"));\r\n autorisation.waitVisibility(By.cssSelector(\"nz-option-item[title='Центральный администратор']\"));\r\n autorisation.click(By.cssSelector(\"nz-option-item[title='Центральный администратор']\"));\r\n autorisation.click(By.id(\"admin_login__button--submit\"));\r\n }", "private void login(String username, String password) {\n driver.findElement(usernameTextBox).sendKeys(username);\n driver.findElement(passwordTextBox).sendKeys(password);\n driver.findElement(submitButton).click();\n }", "public void StartLogIn(){\n\t}", "@Given ( \"I am logged into iTrust2 as an Admin\" )\r\n public void loginAsAdmin () {\r\n driver.get( baseUrl );\r\n final WebElement username = driver.findElement( By.name( \"username\" ) );\r\n username.clear();\r\n username.sendKeys( \"admin\" );\r\n final WebElement password = driver.findElement( By.name( \"password\" ) );\r\n password.clear();\r\n password.sendKeys( \"123456\" );\r\n final WebElement submit = driver.findElement( By.className( \"btn\" ) );\r\n submit.click();\r\n\r\n }", "public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }", "public AdminLogin() {\n initComponents();\n }", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "private void checkIfAtLogin(){\n checkIfIdDisplayed(R.id.login_main_view);\n checkIfIdDisplayed(R.id.username_text_input);\n checkIfIdDisplayed(R.id.password_text_input);\n checkIfIdDisplayed(R.id.login_button);\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "Login() { \n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }" ]
[ "0.68653697", "0.68461376", "0.6845224", "0.68181646", "0.678006", "0.666655", "0.66620106", "0.6609731", "0.65912765", "0.65471965", "0.65469563", "0.65391004", "0.6503073", "0.6489115", "0.64863855", "0.64847726", "0.64843404", "0.64807147", "0.646549", "0.6463262", "0.6461293", "0.6457576", "0.6444044", "0.6435232", "0.6420883", "0.63926256", "0.636299", "0.6362033", "0.63591623", "0.6341889", "0.63351715", "0.63351715", "0.6332132", "0.63264614", "0.632072", "0.63159585", "0.6313775", "0.63105285", "0.6301953", "0.62994295", "0.6297734", "0.62969476", "0.6278155", "0.6275241", "0.6274265", "0.6257663", "0.6247396", "0.6246891", "0.62425894", "0.62340647", "0.623326", "0.6230193", "0.62242687", "0.6223957", "0.62219465", "0.6217059", "0.62120676", "0.6211668", "0.6210143", "0.6206653", "0.619547", "0.6183413", "0.6172225", "0.6158937", "0.6149214", "0.6148864", "0.6142369", "0.61403286", "0.6135031", "0.61344737", "0.6130852", "0.61295587", "0.61146253", "0.611204", "0.61107814", "0.61098546", "0.6102427", "0.6098488", "0.6098488", "0.60907596", "0.60901546", "0.6087679", "0.6070472", "0.60603714", "0.6057386", "0.60519695", "0.6047199", "0.6044677", "0.60445064", "0.6042494", "0.6027642", "0.6027586", "0.60185313", "0.60170573", "0.60157615", "0.60075516", "0.6003828", "0.6000487", "0.59944946", "0.5994281", "0.5993363" ]
0.0
-1
String oldDescription = this.description;
public void setDescription(String description) { this.description = description; // changeSupport.firePropertyChange("description", oldDescription, description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String description){this.description=description;}", "public String getDescription(){ return description; }", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "public void setDescription(String newdescription) {\n description=newdescription;\n }", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public java.lang.String getOldProperty_description(){\n return localOldProperty_description;\n }", "String getdescription() {\n\t\treturn description;\n\t}", "public java.lang.String getNewProperty_description(){\n return localNewProperty_description;\n }", "public void setDescription(String newVal) {\n if ((newVal != null && this.description != null && (newVal.compareTo(this.description) == 0)) || \n (newVal == null && this.description == null && description_is_initialized)) {\n return; \n } \n this.description = newVal; \n\n description_is_modified = true; \n description_is_initialized = true; \n }", "public void setOldValues_description(java.lang.String param){\n localOldValues_descriptionTracker = true;\n \n this.localOldValues_description=param;\n \n\n }", "public String setDescription(String description){\n\t\tString oldDescription = this.description;\n\t\tthis.description = description;\n\n\t\tnotifyObservers(\"desc\");\n\n\t\treturn oldDescription;\n\t}", "public String getDescription(){\n return description;\n }", "public String getDescription(){\n return description;\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String description(){\n return this.DESCRIPTION;\n }", "public synchronized String getDescription(){\n \treturn item_description;\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "@Override\n\tpublic String getdescription() {\n\t\treturn this.description.getDesc();\n\t}", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "@Override\n public void updateDescription() {\n description = DESCRIPTIONS[0]+ ReceiveBlockAmount + DESCRIPTIONS[1];\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "@Override\n public String getDescription() {\n return description;\n }", "public void setDescription(String description) { this.description = description; }", "@Updatable\n public String getDescription() {\n return description;\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public java.lang.String getNewValues_description(){\n return localNewValues_description;\n }", "public String getDescription() {\n return mDescription;\n }", "public String getDescription() { return description; }", "public String getDescription() {\r\n return _description;\r\n }", "protected String getDescription()\n {\n return description;\n }", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public String getDescription() {\n return description;\n }", "public String getDESCRIPTION() {\r\n return DESCRIPTION;\r\n }", "public void setDescription(String newValue);", "public void setDescription(String newValue);", "public String get_description() {\n return description;\n }", "@Override\n public String getDescription() {\n return descriptionText;\n }", "public String getDescription()\n {\n return this.description;\n }", "public abstract void setDescription(String description);", "public abstract void setDescription(String description);", "public void setNewValues_description(java.lang.String param){\n localNewValues_descriptionTracker = true;\n \n this.localNewValues_description=param;\n \n\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription() {\n return description; \n }", "public void setDescription(String description){\n this.description = description;\n }", "@Override\n public String getDescription()\n {\n return m_description;\n }", "public void setDescription(String newDescription)\n\t{\n\t\tdescription = newDescription;\n\t\tdateModified = new Date();\n\t}", "public void setDescription(String newDescription) {\n\t\tthis.description = newDescription;\n\t}", "protected String getDescription() {\n return description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "@Test\r\n public void testSetDescription() {\r\n System.out.println(\"setDescription\");\r\n String description = \"\";\r\n \r\n instance.setDescription(description);\r\n assertEquals(description, instance.getDescription());\r\n \r\n }", "public String getDescription()\r\n/* 26: */ {\r\n/* 27: 81 */ return this.string;\r\n/* 28: */ }", "public String getDescription()\n {\n return description;\n }", "public String getDescription() {\n return this.description;\n }", "public final String getDescription() { return mDescription; }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "public String getDescription(){\n\t\treturn \"\" ; //trim(thisInstance.getDescription());\n\t}", "public String getDescription() {\n return sdesc;\n }", "public void setDescription(String description) {\n\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void editDescription(String description) {\n this.description = description;\n }", "public void setDescription (String description);", "@Override\n public String getDescription() {\n return this.description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "public String getDescription1() {\r\n return description1;\r\n }", "public String getDescription()\r\n {\r\n return \"unknow\";\r\n }", "@Override\n public String getDescription() {\n return description;\n }", "public String\ntoString() {\n\treturn DESCRIPTION;\n}", "public String getDescription()\n {\n return description;\n }", "public java.lang.String getOldValues_description(){\n return localOldValues_description;\n }", "public void setDescription(String des){\n description = des;\n }", "public void changeDescription(Product p, String description){\r\n\t\tp.description = description;\r\n\t}", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }", "public void setDescription(String newDescription) {\n\t\tdescription = newDescription;\n\t}", "public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }", "public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }", "public String getDescription2() {\r\n return description2;\r\n }", "public void setDescription(String tmp) {\n this.description = tmp;\n }", "public void setDescription(String tmp) {\n this.description = tmp;\n }" ]
[ "0.79962224", "0.78468347", "0.78467697", "0.78467697", "0.7808997", "0.77682376", "0.7742808", "0.76836544", "0.7667966", "0.76628345", "0.75777155", "0.75527173", "0.7526922", "0.75202715", "0.74822426", "0.7458068", "0.7458068", "0.74367666", "0.74300253", "0.74061555", "0.7406015", "0.7404992", "0.73480856", "0.73287386", "0.7328276", "0.7291753", "0.7281841", "0.7278086", "0.727788", "0.7261446", "0.7261446", "0.7247752", "0.72415197", "0.7241044", "0.7226361", "0.7225547", "0.7210141", "0.72000664", "0.71867937", "0.71866184", "0.71825475", "0.71821743", "0.71821743", "0.71821743", "0.71821743", "0.71821743", "0.71821743", "0.7174253", "0.71725345", "0.71702075", "0.71702075", "0.7164169", "0.71600276", "0.7139632", "0.7137262", "0.7137262", "0.7132989", "0.71191067", "0.71105", "0.71084553", "0.7104273", "0.7100166", "0.7089719", "0.7078389", "0.70775276", "0.70775276", "0.70775276", "0.70698076", "0.7065508", "0.7062387", "0.70587146", "0.70558506", "0.70539474", "0.7048358", "0.7047822", "0.704483", "0.7016447", "0.70121455", "0.70107967", "0.7003009", "0.70025265", "0.6998314", "0.6993582", "0.69922924", "0.69918287", "0.6991382", "0.6990466", "0.6988413", "0.69672745", "0.69631356", "0.6961737", "0.6958418", "0.6958418", "0.69540405", "0.69489163", "0.69465655", "0.6938364", "0.6933448", "0.6930225", "0.6930225" ]
0.7508714
14
return evidence.substring(0,1).toUpperCase() + evidence.substring(1);
public String getEvidence() { return evidence; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void firstToUpperCase() {\n \n }", "private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }", "private String capitalize(String title) {\n return title.substring(0, 1).toUpperCase() + title.substring(1);\n }", "private static String capitalize (String input) {\n\n String output = WordUtils.capitalize(input.toLowerCase());\n\n return output;\n }", "private static String firstLetterCapital(final String text)\n {\n return (null == text ? null : text.substring(0, 1).toUpperCase() + text.substring(1, text.length()));\n }", "public static String capitalize(String name) {\n/* 72 */ if (name == null || name.length() == 0) {\n/* 73 */ return name;\n/* */ }\n/* 75 */ char[] chars = name.toCharArray();\n/* 76 */ chars[0] = Character.toUpperCase(chars[0]);\n/* 77 */ return new String(chars);\n/* */ }", "public String convertToUpperCase(String word);", "private String upperCaseFL(String in) {\n\t\treturn in.substring(0,1).toUpperCase() + in.substring(1,in.length());\n\t}", "String nombreDeClase(String s) {\n return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase();\n }", "private static String firstUpperCase(String word) {\n\t\tif (word == null || word.isEmpty()) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn word.substring(0, 1).toUpperCase() + word.substring(1);\n\t}", "public static void main(String[] args) {\n\n\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter your name here: \");\n String name = scan.next();\n System.out.println(\"Your name corrected is: \");\n String name2 = name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();\n System.out.println(name2);\n\n // make whole name uppercase the get the first character\n // get the rest of the characters starting from 2nd character\n /// then make it lowercase\n // eventually concatenate them\n\n\n }", "private static String capitaliseSingleWord(String word) {\n String capitalisedFirstLetter = word.substring(0, 1).toUpperCase();\n String lowercaseRemaining = word.substring(1).toLowerCase();\n return capitalisedFirstLetter + lowercaseRemaining;\n }", "public static String firstUpperCase(String value) {\n\t\tif (value == null || value.length() == 0) {\n\t return value;\n\t }\n\t\t\n\t\treturn value.substring(0, 1).toUpperCase() + value.substring(1);\n\t}", "private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}", "private static String capitalize(String input) {\n StringBuilder out = new StringBuilder();\n if (input.length() < 0) {\n return \"\";\n }\n out.append(Character.toUpperCase(input.charAt(0)));\n int dotAndSpace = 0;\n for (int i = 1; i < input.length(); i++) {\n if (input.charAt(i) == '.') {\n dotAndSpace = 1;\n out.append(input.charAt(i));\n } else if (input.charAt(i) == ' ' && dotAndSpace == 1) {\n dotAndSpace = 2;\n out.append(input.charAt(i));\n } else {\n if (dotAndSpace == 2) {\n out.append(Character.toUpperCase(input.charAt(i)));\n dotAndSpace = 0;\n } else {\n out.append(input.charAt(i));\n }\n\n }\n }\n return out.toString();\n }", "public static String capitalizeFirstLetter(String input) {\n return output;\n }", "static String pascalCase(String s){\n\t\treturn s.substring(0, 1).toUpperCase() + s.substring(1);\n\t}", "public String toString() {return name().charAt(0) + name().substring(1).toLowerCase();}", "private static String capitalize(String str) {\n return Character.toUpperCase(str.charAt(0)) + str.substring(1);\n }", "public String upperCase(String word){\n return word.toUpperCase();\n }", "public static String upperFirst(String value) {\r\n\t\tif(value == null || value.length() == 0) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tif(value.length() == 1) {\r\n\t\t\treturn value.toUpperCase();\r\n\t\t}\r\n\t\treturn Character.toUpperCase(value.charAt(0)) + value.substring(1); \r\n\t}", "public static String capitaliseFirstLetter(String input) {\n\n\t\t// Check if 1st char is already Uppercase\n\t\tif (!Character.isUpperCase(input.charAt(0))) {\n\t\t\tinput = input.substring(0, 1).toUpperCase() + input.substring(1).toLowerCase();\n\t\t}\n\t\treturn input;\n\t}", "public static String cap(String w) {\n if (w.toLowerCase().equals(w)){ //if there are no capitals\n return w; // //then just return the word as is\n }\n else{\n // for (int i=0; i<w.length(); i++) {\n \n return w.substring(0,1).toUpperCase() + w.substring(1).toLowerCase(); //if there is a capital then make the first only the first letter capital and the rest lowercase\n }\n }", "public String toUpperCase(String in)\n {\n return in;\n }", "private static String cup(String str) {\n\t\treturn str.substring(0,1).toLowerCase() + str.substring(1); \n\t}", "public static String A(String str)\n\t{\t\t\n\t\tString aStr = Format.a(str);\n\t\treturn aStr.substring(0, 1).toUpperCase();\n\t}", "public String test(String x){\r\n\t\treturn x.toUpperCase();\r\n\t}", "private String capitalize(final String word) {\n return Character.toUpperCase(word.charAt(0)) + word.substring(1);\n }", "private String capitalizeFirstLetter(String aString){\n\t\t// pre-conditon\n\t\tif(aString == null || aString.length() == 0) return aString;\n\t\t// Main code\n\t\treturn aString.substring(0, 1).toUpperCase() + aString.substring(1);\n\t}", "private static String capitalize(String s) {\n if (s == null || s.length() == 0) {\n return \"\";\n }\n char first = s.charAt(0);\n if (Character.isUpperCase(first)) {\n return s;\n } else {\n return Character.toUpperCase(first) + s.substring(1);\n }\n }", "public String capitalize(String x)\n\t{\n\t\treturn x.toUpperCase();\n\t}", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "@Test\n public final void testCapitalize1() {\n Object target = \"abc\";\n String expResult = \"Abc\";\n String result = StringUtils.capitalize(target);\n Assertions.assertEquals(expResult, result);\n }", "private static String capitalize(String s) {\n if (s == null || s.length() == 0) {\n return \"\";\n }\n\n char first = s.charAt(0);\n if (Character.isUpperCase(first)) {\n return s;\n } else {\n return Character.toUpperCase(first) + s.substring(1);\n }\n }", "private void useCapitalLettersFromType(String type, StringBuffer buffer) {\r\n for (int ndx = 0; ndx < type.length(); ndx++) {\r\n char ch = type.charAt(ndx);\r\n if (Character.isUpperCase(ch)) {\r\n buffer.append(Character.toLowerCase(ch));\r\n }\r\n }\r\n }", "public void upperString() {\n\t\t\tString sentence = \"I am studying\";\n\t\t\t//have to assign it to new string with = to change string\n\t\t\tsentence = sentence.toLowerCase();\n\t\t\t//have to assign it to sentence\n\t\t\tSystem.out.println(\"lower case sentence \" + sentence);\n\t\t}", "public static void main(String[] args) {\n\n\n String ad=\"erdogan\";\n String soyad= \"HOZAN\";\n\n System.out.println(\"ad: \"+ ad.toUpperCase());\n System.out.println(\"soyad:\" + soyad.toLowerCase());\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"hello world\";\n\t\t\n\t\tString output = str.substring(0,1).toUpperCase()+str.substring(1);\n\t\tSystem.out.println(output);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*String str = \"hello world!\";\n\n\t\t// capitalize first letter\n\t\tString output = str.substring(0, 1).toUpperCase() + str.substring(1);\n\n\t\t// print the string\n\t\tSystem.out.println(output);\n\t\t*/\n\t\t\n\t}", "public static String getFieldUpperCase(String name) {\r\n\t\tString aux = name.substring(0, 1);\r\n\t\tString mayus = aux.toUpperCase()+name.substring(1);\r\n\t\treturn mayus;\r\n\t}", "public String acronym(String phrase) {\n\t\tString[] p = phrase.split(\"[\\\\W\\\\s]\");\n\t\tString returner = \"\";\n\t\tfor (String s : p) {\n\t\t\tif (!s.isEmpty())\n\t\t\t\treturner = returner + s.charAt(0);\n\t\t}\n\t\treturn returner.toUpperCase();\n\t}", "public XMLString toUpperCase() {\n/* 746 */ return new XMLStringDefault(this.m_str.toUpperCase());\n/* */ }", "public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }", "@Test\n public void testUnCapitalize1() {\n Object target = \"ABC\";\n String expResult = \"aBC\";\n String result = StringUtils.unCapitalize(target);\n Assertions.assertEquals(expResult, result);\n }", "public String acronym(String phrase) {\n String accrStr = phrase.replaceAll(\"\\\\B.|\\\\P{L}\", \"\").toUpperCase();\n return accrStr;\n }", "public static String capitalize(String input)\n {\n if (input.length() == 0)\n return input;\n \n return input.substring(0, 1).toUpperCase() + input.substring(1);\n }", "public static String textFormat(String s){\r\n s =s.toLowerCase();\r\n s = s.substring(0, 1).toUpperCase() + s.substring(1);\r\n return(s);\r\n }", "public String acronym(String phrase) {\n /*StringBuilder acronymFeed = new StringBuilder(\"\");\n String wordHolder = \"\";\n int spaceIndex;\n char firstLetter;\n do{\n spaceIndex = phrase.indexOf(\" \");\n wordHolder = phrase.substring(0,spaceIndex);\n acronymFeed.append(wordHolder.charAt(0));\n phrase = phrase.replaceFirst(wordHolder, \"\");\n } while (spaceIndex != -1 && wordHolder != \"\" && phrase != \"\");\n \n \n \n \n \n String acronymResult = acronymFeed.toString().toUpperCase();\n return acronymResult;\n */\n \n char[] letters = phrase.toCharArray();\n String firstLetters = \"\";\n firstLetters += String.valueOf(letters[0]);\n for (int i = 1; i < phrase.length();i++){\n if (letters[i-1] == ' '){\n firstLetters += String.valueOf(letters[i]);\n }\n }\n firstLetters = firstLetters.toUpperCase();\n return firstLetters;\n }", "public static String upperFirst(String target) {\n\t\tString temp = target.substring(0, 1);\n\t\treturn temp.toUpperCase() + target.substring(1);\n\t}", "private final static String toTitleCase( String s ) {\n\n char[] ca = s.toCharArray();\n\n boolean changed = false;\n boolean capitalise = true;\n\n for ( int i=0; i<ca.length; i++ ) {\n char oldLetter = ca[i];\n if ( oldLetter <= '/'\n || ':' <= oldLetter && oldLetter <= '?'\n || ']' <= oldLetter && oldLetter <= '`' ) {\n /* whitespace, control chars or punctuation */\n /* Next normal char should be capitalized */\n capitalise = true;\n } else {\n char newLetter = capitalise\n ? Character.toUpperCase(oldLetter)\n : Character.toLowerCase(oldLetter);\n ca[i] = newLetter;\n changed |= (newLetter != oldLetter);\n capitalise = false;\n }\n } // end for\n\n return new String (ca);\n\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(new c4().capitalize(\"aAC!00xsAAa\"));\r\n\t}", "private String capitalCase(String name) {\n if (name == null) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n boolean skippingSpace = true;\n for (int index=0; index<name.length(); index++) {\n char ch = name.charAt(index);\n if (!Character.isAlphabetic(ch) && !Character.isDigit(ch) ){\n ch = ' ';\n }\n if (Character.isWhitespace(ch)) {\n skippingSpace = true;\n continue;\n }\n if (skippingSpace) {\n ch = Character.toUpperCase(ch);\n }\n else {\n ch = Character.toLowerCase(ch);\n }\n sb.append(ch);\n skippingSpace = false;\n }\n return sb.toString();\n }", "int upper();", "public static String toTitleCase(String str) {\n\t\t\n\t\treturn str.substring(0, 1).toUpperCase()+\n\t\t\tstr.substring(1).toLowerCase();\t\n\t}", "private String formatTitle(String source) {\r\n if (source.equalsIgnoreCase(\"Robles Ms Et Al. Plos Genet. (2014)\")) {\r\n return \"Robles MS et al. PloS Genet.(2014)\";\r\n }\r\n\r\n StringBuilder res = new StringBuilder();\r\n source = source.toLowerCase();\r\n String[] strArr = source.split(\" \");\r\n for (String str : strArr) {\r\n char[] stringArray = str.trim().toCharArray();\r\n stringArray[0] = Character.toUpperCase(stringArray[0]);\r\n str = new String(stringArray);\r\n res.append(str).append(\" \");\r\n }\r\n return res.toString().trim();\r\n }", "private static String kebapToUpperCamel(String input) {\n return CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, input);\n }", "private String fixupCase(String s) {\r\n boolean nextIsUpper = true;\r\n StringBuffer sb = new StringBuffer();\r\n\r\n for (int i = 0; i < s.length(); i++) {\r\n char c = s.charAt(i);\r\n if (nextIsUpper) {\r\n c = Character.toUpperCase(c);\r\n } else {\r\n c = Character.toLowerCase(c);\r\n }\r\n sb.append(c);\r\n nextIsUpper = Character.isWhitespace(c);\r\n }\r\n return sb.toString();\r\n }", "private static String wordCap(String str) {\r\n\t\tif(str.isEmpty()) {\r\n\t\t\treturn \"\";\r\n\t\t}else if(str.length()==1) {\r\n\t\t\treturn str.toUpperCase();\r\n\t\t}else {\r\n\t\t\treturn (str.substring(0,1)).toUpperCase() + (str.substring(1,str.length()).toLowerCase());\r\n\t\t}\r\n\t}", "public static String ucfirst(String input) {\n return withFirst(input, first -> String.valueOf(Character.toUpperCase(first)));\n }", "public String capitalCaseToSnakeCase(String text) {\n String textArray[] = text.split(\"(?=\\\\p{Upper})\");\n String capitalcaseToSnakeCase = \"\";\n for (String word: textArray) {\n if(!word.equals(\"\"))\n capitalcaseToSnakeCase += \"_\" + word.toLowerCase();\n }\n capitalcaseToSnakeCase = \"categorias\" + capitalcaseToSnakeCase;\n return capitalcaseToSnakeCase;\n }", "private String createAcronym(String phrase) {\n String[] words = phrase.split(\"\\\\W+|(?<=\\\\p{Lower})(?=\\\\p{Upper})|(?<=\\\\p{Upper})(?=\\\\p{Upper}\\\\p{Lower})\");\n StringBuffer acronym = new StringBuffer();\n for (int i = 0; i < words.length; i++) {\n acronym.append(words[i].substring(0,1).toUpperCase());\n }\n return acronym.toString();\n }", "private static String qualifiedName2FirstCharacterUppercasedString(final String s) {\n final StringBuffer result = new StringBuffer();\n final Matcher m = Pattern.compile(\"(?:\\\\.|^)(.)\").matcher(s);\n while (m.find()) {\n m.appendReplacement(result,\n m.group(1).toUpperCase());\n }\n m.appendTail(result);\n return result.toString().replaceAll(\"\\\\[\\\\]\", \"Array\");\n }", "private static void capMid(String name){\n int mid= name.length()/2;\n System.out.print(name.toUpperCase().substring(mid,(mid+1)));\n }", "protected String alterCase(String value) {\n\t\tswitch (getCase()) {\n\t\tcase UPPERCASE:\n\t\t\treturn value.toUpperCase();\n\t\tcase LOWERCASE:\n\t\t\treturn value.toLowerCase();\n\t\tdefault:\n\t\t\treturn value;\n\t\t}\n\t}", "public static String toTitleCase(String givenString) {\n String[] arr = givenString.split(\" \");\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < arr.length; i++) {\n sb.append(Character.toUpperCase(arr[i].charAt(0)))\n .append(arr[i].substring(1)).append(\" \");\n }\n return sb.toString().trim();\n }", "public static String upperCaseFirst(String value) {\n char[] array = value.toCharArray();\n // Modify first element in array.\n array[0] = Character.toUpperCase(array[0]);\n // Return string.\n return new String(array);\n }", "public static String primeraMayus(String s){\n\t\treturn s.substring(0, 1).toUpperCase() + s.substring(1);\n\t}", "public static String upperCase(String s) {\n\t\tString upper= \" \";\n\t\tfor (int i=0; i<s.length(); i++){\n\t\t\tString letter=s.substring(i, i+1);\n\t\t\tif (Constants.LOWER_CASE.indexOf(letter)!=-1){\n\t\t\t\tint indexLetter= Constants.LOWER_CASE.indexOf(letter);\n\t\t\t\tString upperLetter= Constants.UPPER_CASE.substring(indexLetter, indexLetter+1);\n\t\t\t\tupper=upper+upperLetter;\n\t\t\t} else {\n\t\t\t\tupper=upper+letter;\n\t\t\t}\n\t\t}\n\t\treturn upper;\n\n\t}", "public static String upperCaseFirst(String value) {\r\n\r\n // Convert String to char array.\r\n char[] array = value.toCharArray();\r\n // Modify first element in array.\r\n array[0] = Character.toUpperCase(array[0]);\r\n // Return string.\r\n return new String(array);\r\n }", "public ICase retourneLaCase() ;", "private String makeFirstLetterCapital(String str) {\n\t\tchar ch[] = str.toCharArray();\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\r\n\t\t\t// If first character of a word is found\r\n\t\t\tif (i == 0 && ch[i] != ' ' || ch[i] != ' ' && ch[i - 1] == ' ') {\r\n\r\n\t\t\t\t// If it is in lower-case\r\n\t\t\t\tif (ch[i] >= 'a' && ch[i] <= 'z') {\r\n\r\n\t\t\t\t\t// Convert into Upper-case\r\n\t\t\t\t\tch[i] = (char) (ch[i] - 'a' + 'A');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// If apart from first character\r\n\t\t\t// Any one is in Upper-case\r\n\t\t\telse if (ch[i] >= 'A' && ch[i] <= 'Z')\r\n\r\n\t\t\t\t// Convert into Lower-Case\r\n\t\t\t\tch[i] = (char) (ch[i] + 'a' - 'A');\r\n\t\t} \r\n\r\n\t\t// Convert the char array to equivalent String\r\n\t\tString st = new String(ch);\r\n\t\treturn st;\r\n\r\n\t\t// return sb.toString();\r\n\t}", "private String preprocessName(String original){\n\t\t// Remove non-alphabetical characters from the name\n\t\toriginal = original.replaceAll( \"[^A-Za-z]\", \"\" );\n\t\t\t\t\n\t\t// Convert to uppercase to help us ignore case-sensitivity\n\t\toriginal = original.toUpperCase();\n\t\t\n\t\t// Remove all occurences of the letters outlined in step 3\n\t\toriginal = original.substring(0,1) + original.substring(1).replaceAll(\"[AEIHOUWY]\",\"\");\n\t\t\n\t\t// Return the result\n\t\treturn original;\n\t}", "public static String capitalize(String sentence) {\n String[] split = sentence.replaceAll(\"_\", \" \").split(\" \");\n List<String> out = new ArrayList<>();\n for (String s : split)\n out.add(s.length() > 0 ? s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase() : \"\");\n return String.join(\" \", out);\n }", "public static void main(String[] args) {\nString s = \"HElLo WoRlD WelCOMe To JaVa\";\nSystem.out.println(s.toLowerCase());\n\t}", "public static String A(BaseObject obj)\n\t{\t\t\n\t\tString aStr = Format.a(obj);\n\t\treturn aStr.substring(0, 1).toUpperCase();\n\t}", "public static String convert1(String input) {\n\t\tString sRes = \"\";\n\t\tString[] splitInput = input.split(\"\\n\");\n\n\t\tfor (String s : splitInput) {\n\t\t\tString[] splitStr = s.split(\" \");\n\t\t\tfor (int i = 0; i < splitStr.length; i++) {\n\t\t\t\tsplitStr[i] = firstUpperCase(splitStr[i].toLowerCase());\n\t\t\t\tsRes = sRes.concat(splitStr[i] + \" \");\n\t\t\t}\n\t\t\tsRes += \"\\n\";\n\t\t}\n\n\t\treturn sRes;\n\t}", "static private String formats(String target)\n\t{\n\t\tString tmp = target.trim();\n\t\tif (tmp.length() < 1) return \"NaName\";\n\t\treturn (Character.toString(tmp.charAt(0)).toUpperCase()) + tmp.substring(1,tmp.length()).toLowerCase();\n\t}", "public static void main(String[] args) {\n String str = \"welcome to Programr!\";\n\n System.out.println(\"UpperCase: - \"+str.toUpperCase());\n }", "public static String firstLettertoUpperCase(String letter) {\n return letter.substring(0, 1).toUpperCase() + letter.substring(1);\n }", "public String firstAlphabeticalTitleLetter(String title){\n\t\t int first = 0;\n if ( title.toLowerCase().startsWith(\"the \") ) { first = 4; }\n\t\t return title.substring(first, (first + 1));\n\t }", "public static String getCapitalized(String str) {\n if (str != null && !str.equals(\"\")) {\n str = str.substring(0, 1).toUpperCase() + str.substring(1);\n for (int i = 1; i < str.length(); i++) {\n if (str.charAt(i) == ' ') {\n str = str.substring(0, i + 1) + str.substring(i + 1, i + 2).toUpperCase() + str.substring(i + 2);\n }\n }\n }\n return str;\n }", "@Test\n public void testCapitalizeWords1() {\n Object s = \"\";\n String expResult = \"\";\n String result = StringUtils.capitalizeWords(s);\n Assertions.assertEquals(expResult, result);\n }", "static String toMixedCase(String name) {\r\n\t\tStringBuilder sb = new StringBuilder(name.toLowerCase());\r\n\t\tsb.replace(0, 1, sb.substring(0, 1).toUpperCase());\r\n\t\treturn sb.toString();\r\n\r\n\t}", "@Override\n public void write(char[] cbuf, int off, int len) throws IOException {\n for (int i = 0; i < cbuf.length; ++i)\n cbuf[i] = Character.toUpperCase(cbuf[i]);\n \n super.write(cbuf, off, len);\n \n }", "static String capitalizeFirstLetter( String str ) {\n if ( str == null || str.length() <= 0 )\n return str;\n\n char chars[] = str.toCharArray();\n chars[0] = Character.toUpperCase(chars[0]);\n return new String(chars);\n }", "public String getCapName() {\n StringBuilder result = new StringBuilder();\n for (String s : getNameParts()) {\n result.append(Util.capitalize(s));\n }\n return result.toString();\n }", "public String alphabeticalTitle(String title){\n if ( title.toLowerCase().startsWith(\"the \") ) {\n \t String titlePrefix = title.substring(0, 3);\n \t String titleSuffix = title.substring(4, title.length());\n \t title = titleSuffix + \", \" + titlePrefix;\n \t }\n\t\t return title;\n\t }", "public String formatName(String name) {\n return name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();\n }", "public static void main(String[] args) {\n String S1=\"THE QUICK BROWN FOR JUMPS OVER THE LAZY DOG.\";//convert into lowercase\n String result = S1.toLowerCase();//formula to convert\n System.out.println(result);//print the outcome\n }", "public String capitalize(String string) {\n\t\tif (string == null || string.length() < 1) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn string.substring(0, 1).toUpperCase() + string.substring(1);\n\t}", "public static String capitalize(String str) {\r\n\t\t// Check for null values.\r\n\t\tif (isEmpty(str))\r\n\t\t\treturn str;\r\n\t\telse\r\n\t\t\treturn str.substring(0, 1).toUpperCase() + str.substring(1);\t\t\r\n\t}", "public static String firstUpcase(String s) {\n if (s.equals(\"\")) {\n return \"\";\n } else {\n return new String(Character.toUpperCase(s.charAt(0))+s.substring(1));\n }\n }", "public static void upperCaseFirst() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tString str = bf.toString();\n\t\t\t// str=String.valueOf(str.charAt(0)).toUpperCase()+str.substring(1,\n\t\t\t// str.length());\n\t\t\tSystem.out.println(\"Chuỗi có chữ đầu viết hoa:\\n\"\n\t\t\t\t\t+ String.valueOf(str.charAt(0)).toUpperCase()\n\t\t\t\t\t+ str.substring(1, str.length()));\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit = scan.next().toString();\n\t\t}\n\t}", "String normalizeName(String tag) {\n\t\tStringBuffer buf = new StringBuffer();\n\t\t\n\t\tboolean newWord = true;\n\t\t// capitalize first letter of each word\n\t\t// remove -'s and _'s\n\t\tfor (int i = 0; i < tag.length(); i++) {\n\t\t\tchar c = tag.charAt(i);\n\t\t\tif (c == '-' || c == '_') {\n\t\t\t\tnewWord=true;\n\t\t\t} else if (newWord) {\n\t\t\t\tbuf.append(Character.toUpperCase(c));\n\t\t\t\tnewWord = false;\n\t\t\t} else {\n\t\t\t\tbuf.append(c);\n\t\t\t\tnewWord = false;\n\t\t\t}\n\t\t}\n\t\treturn buf.toString().trim();\n\t}", "private static String getCamelCasedPropertyName(String propertyName) {\n return propertyName.substring(0, 1).toUpperCase() +\n propertyName.substring(1);\n }", "public String prefix(String s) {\n\t\tString tmp = methodBase();\n\t\treturn s+tmp.substring(0,1).toUpperCase()+tmp.substring(1);\n\t}", "private static String convert(String word) {\n\n char[] charArray = word.toCharArray();\n\n for (int letter = 0; letter < word.length(); letter++) {\n // Finding the first letter of a word.\n if (letter == 0 && charArray[letter] != ' ' || charArray[letter] != ' ' && charArray[letter - 1] == ' ') {\n // Checking if the first letter is lower case.\n if (charArray[letter] >= 'a' && charArray[letter] <= 'z') {\n // Converting first letter to upper case\n charArray[letter] = (char)(charArray[letter] - 'a' + 'A');\n }\n }\n // Checking if the letters other than the first letter are capital\n else if (charArray[letter] >= 'A' && charArray[letter] <= 'Z')\n // Converting uppercase other letters to lower case.\n charArray[letter] = (char)(charArray[letter] + 'a' - 'A');\n }\n // Returning a Title cased String.\n return new String(charArray);\n }", "private String formatName(String name) {\n Character firstCharacter = name.charAt(0);\n firstCharacter = Character.toUpperCase(firstCharacter);\n\n final String remainingCharacters = name.substring(1);\n\n return String.valueOf(firstCharacter) + remainingCharacters;\n }", "public String getCapital() {\n return capital;\n }", "public static String camel(final String value) {\r\n\t\tif (!isBlank(value)) {\r\n\t\t\treturn value.substring(0, 1).toLowerCase() + value.substring(1);\r\n\t\t} else {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t}", "public String acronym(String phrase) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString acronymString = \"\";\n\t\tfor(int i = 0; i < phrase.length(); i++) {\n\t\t\tif(i == 0) {\n\t\t\t\tif(Character.isUpperCase(phrase.charAt(i))) {\n\t\t\t\t\tacronymString = acronymString + phrase.charAt(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(i > 0){\n\t\t\t\tif(Character.isUpperCase(phrase.charAt(i)) && phrase.charAt(i-1) == ' ') {\n\t\t\t\t\tacronymString = acronymString + phrase.charAt(i);\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(phrase.charAt(i)) && phrase.charAt(i-1) == ' ') {\n\t\t\t\t\tacronymString = acronymString + Character.toUpperCase(phrase.charAt(i));\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(phrase.charAt(i)) && phrase.charAt(i-1) == '-') {\n\t\t\t\t\tacronymString = acronymString + Character.toUpperCase(phrase.charAt(i));\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t//System.out.println(acronymString);\n\t\t\n\t\t\n\t\t\n\t\treturn acronymString;\n\t}", "public String smartUpperCase(String s) {\n\t\t\t \ts = s.substring(0, 1).toUpperCase() + s.substring(1, (s.length()));\n\t s = s.replace(\".\", \"_\");\n\t while (s.contains(\"_ \")) {\n\t \ts = s.replace( s.substring(s.indexOf(\"_ \"), s.indexOf(\"_ \") + 3),\n\t \t\t \". \" + (s.substring(s.indexOf(\"_ \") + 2, s.indexOf(\"_ \") + 3)).toUpperCase()\n\t \t\t );\n\t \t}\n\t s = s.replace(\"_\", \".\");\n\t return s;\n\t\t\t }" ]
[ "0.7638197", "0.75799364", "0.72760516", "0.7264023", "0.71872205", "0.7139298", "0.7124534", "0.70791805", "0.7075876", "0.7030039", "0.7023732", "0.701338", "0.70102215", "0.7005769", "0.7003969", "0.70005435", "0.6997746", "0.69969624", "0.6955985", "0.6951133", "0.6936574", "0.6904216", "0.6873845", "0.6833725", "0.68257797", "0.6819698", "0.6810222", "0.6788264", "0.673508", "0.6734733", "0.67328703", "0.6727201", "0.6719966", "0.6718487", "0.67079455", "0.6705625", "0.66935337", "0.6659707", "0.66510206", "0.66506904", "0.6648968", "0.6635308", "0.66266406", "0.6622723", "0.660687", "0.66040194", "0.65954953", "0.65645665", "0.65566444", "0.65131867", "0.6510536", "0.64931756", "0.648696", "0.6481393", "0.6481221", "0.6464276", "0.6458812", "0.64541465", "0.643701", "0.64349264", "0.6398491", "0.6395517", "0.63748705", "0.6370144", "0.63688385", "0.6358094", "0.6339002", "0.6332321", "0.63234144", "0.6322012", "0.631938", "0.6314617", "0.62948465", "0.62874323", "0.6281768", "0.6276049", "0.6274418", "0.6272491", "0.6268643", "0.6266816", "0.6252603", "0.6248267", "0.624641", "0.6240269", "0.62295526", "0.62262535", "0.6195144", "0.619429", "0.6177476", "0.6173739", "0.61665964", "0.61593336", "0.61587864", "0.6148418", "0.6139939", "0.61392754", "0.6128362", "0.6114249", "0.6106181", "0.6097642", "0.60893154" ]
0.0
-1
create a new numerical data domain of the given size
public static MockDataDomain createNumerical(int numCols, int numRows, AValueFactory r) { DataSetDescription dataSetDescription = createDataSetDecription(r); dataSetDescription.setDataDescription(createNumericalDataDecription()); DataDescription dataDescription = dataSetDescription.getDataDescription(); MockDataDomain dataDomain = createDataDomain(dataSetDescription); NumericalTable table = new NumericalTable(dataDomain); table.setDataCenter(r.getCenter()); for (int i = 0; i < numCols; ++i) { FloatContainer container = new FloatContainer(numRows); NumericalColumn<FloatContainer, Float> column = new NumericalColumn<>(dataDescription); column.setRawData(container); for (int j = 0; j < numRows; ++j) { container.add(r.nextFloat()); } table.addColumn(column); } dataDomain.setTable(table); TableAccessor.postProcess(table, r.getMin(), r.getMax()); return dataDomain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createNew(int size);", "public void makeArray(int size) {\n\t\t\n\t}", "Dimension createDimension();", "DS (int size) {sz = size; p = new int [sz]; for (int i = 0; i < sz; i++) p[i] = i; R = new int[sz];}", "private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }", "protected AbstractDistribution(int size) {\n\t\tthis.size = size;\n\t}", "void init(int size) {\n int numOfElements = size / MAX_BITS;\n if (size % MAX_BITS > 0)\n numOfElements++;\n\n values = new long[numOfElements];\n }", "Dimension_Dimension createDimension_Dimension();", "Series<double[]> makeSeries(int dimension);", "DomainNumber createDomainNumber();", "BigONotation(int size) {\n\t\tarraySize = size;\n\t\ttheArray = new int[size];\n\t}", "private ArrayList<Integer> fillDomain() {\n ArrayList<Integer> elements = new ArrayList<>();\n\n for (int i = 1; i <= 10; i++) {\n elements.add(i);\n }\n\n return elements;\n }", "@ProtoFactory\n public LinkedList<E> create(int size) {\n return new LinkedList<>();\n }", "public Item[] newArray(int size) {\n return new Item[size]; \n }", "public SampleMemory(int size) {\n this.memory = new double[size];\n this.pointer = 0;\n }", "public void testCrearArrayEnForEspecificado(int size) {\n\t\tfor (int i = 1; i <= size; i++) { \n\t\t\tint[] array = new int[i]; //tempLocal = (size * (size + 1))/2\t\n\t\t}\n\t}", "@Override\n public Element[] newArray(int size) {\n return new Element[size];\n }", "public static DoubleVector CreateDoubleVector(int size,double value) {\n\t\tDoubleVector result = new DoubleVector();\n\t\t\n\t\tfor (int j = 0; j < size ; j++) {\n\t\t\tresult.setValue(j,value) ;\n\t\t}\n\t\treturn result ;\n\t}", "@Override\n public ImageData[] newArray(int size) {\n return new ImageData[size];\n }", "public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}", "private void createBin(int size) \n\t{\n\t// create an array of the appropriate type\n\tfBin = (Object[]) Array.newInstance(fClass, size);\t\n\t}", "public Hylle(int size) {\n a = (T[]) new Object[size];\n this.size = size;\n }", "@Override\n public PrizeOrderObject[] newArray(int size) {\n return new PrizeOrderObject[size];\n }", "public DijkstraArrays(int size) {\n\t\tthis.setSize(size);\n\t}", "public void initialize(int size);", "@Override\n\t\tpublic NewDoc[] newArray(int size) {\n\t\t\treturn new NewDoc[size];\n\t\t}", "public void setSize(int size){\n n = size;\n //makes new array and changes the toSort array\n randomArray(n);\n toSort = origArray.clone();\n }", "public static IntegerVarArray make(int size, PrimArray from, int sourceOffset, int count, int destOffset) {\n\t\treturn new IntegerVarArray(size, from, sourceOffset, count, destOffset);\n\t}", "public ListOfDouble(int size) {\n\t\telements = new double[size];\n\t\tpointer = 0;\n\t}", "public AudioEntity[] newArray(int size) {\n return new AudioEntity[size];\n }", "private void grow(int n) {\n\t\tint newSize = length + n;\n\t\tif (newSize > limit) {\n\t\t\t// find smallest power of 2 greater than newSize\n\t\t\tlimit = (int) Math.pow(2, Math.ceil(Math.log(newSize) / LN2));\n\t\t\tfloat[] newBuffer = new float[limit];\n\t\t\tSystem.arraycopy(data, 0, newBuffer, 0, length);\n\t\t\tdata = newBuffer;\n\t\t}\n\t}", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "public void testCrearArrayEnForNoEspecificado(int size) {\n\t\tfor (int i = 1; i <= size; i++) { \n\t\t\tint[] array = new int[i]; //tempLocal = size : size >=1\t \n\t\t}\n\t}", "public void testCrearArrayEspecificado(int size) {\n\t\tint[] array = new int[size]; //tempLocal = size : size >=1\n\t}", "public int asignacionMemoriaFlotanteDim(float value, int size){\n int i = 0;\n while(i<size){\n memoriaFlotante[flotanteActual] = value;\n flotanteActual++;\n i++;\n }\n return inicioMem + tamMem + flotanteActual - size;\n }", "public static JTensor newWithSize1d(long size0) {\n return new JTensor(\n TH.THTensor_(newWithSize1d)(size0)\n );\n }", "@Override\n\t\tpublic Bpartner[] newArray(int size) {\n\t\t\treturn new Bpartner[size];\n\t\t}", "@Override\n\t\tpublic Categoria[] newArray(int size) {\n\t\t\treturn new Categoria[size];\n\t\t}", "public Dataset(final int dimensions, final int numPoints) {\n this(dimensions);\n\n for (int i = 0; i < numPoints; i++) {\n double[] point = new double[dimensions];\n addPoint(new DataPoint(point));\n }\n }", "public int domainDimension() {\n return dvModel.totalParamSize();\r\n }", "public interface TraitFromDimensions\n{\n /**\n * Number of dimensions needed to initialize an object (e.g., 1 for a\n * Sphere).\n *\n * @return number of required double values\n */\n int numberOfDimensions();\n\n /**\n * Take an array of size {@code this.numberOfDimensions} and re-set all\n * dimensions.\n *\n * @param theDims array of double values\n */\n void fromDimensions(double[] theDims);\n}", "public void initialize(int size) {\n setMaxSize(size);\n }", "private void doubleArraySizeBy(final int numberOfNewSize) {\n if (numberOfNewSize > 0) {\n int newSize = this.data.length * numberOfNewSize;\n this.data = Arrays.copyOf(this.data, newSize);\n }\n }", "private int[] createArrays(int size) {//creating method, using variable \"SIZE\"\n\t\tint [] array = new int[size];\n\t\treturn array;\n\t}", "public PointFloat[] newArray(int size) {\n return new PointFloat[size];\n }", "private void resize(int newCapacity) {\n\n E[] temp = (E[]) new Object[newCapacity];\n for(int i = 0; i < size(); i++)\n temp[i] = data[calculate(i)];\n data = temp;\n head = 0;\n tail = size()-1;\n\n\n }", "void assignSize (int size) {\n array = new int[size];\n }", "private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }", "public List<Integer> generateList(int size){\n List<Integer> data = new ArrayList<>();\n for (int i = 0; i < size; i++){\n data.add(i);\n }\n return data;\n }", "BusinessLogic(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t\tgenerator = new Random();\r\n\t\tnumbers = new ArrayList<Integer>();\r\n\t}", "public abstract double getRangeSize();", "Length createLength();", "Dimension_longueur createDimension_longueur();", "protected Vector createVector(Number sequence, String seqName, int size) {\n BigDecimal nextSequence;\n BigDecimal increment = new BigDecimal(1);\n\n if (sequence instanceof BigDecimal) {\n nextSequence = (BigDecimal)sequence;\n } else {\n nextSequence = new BigDecimal(sequence.doubleValue());\n }\n\n Vector sequencesForName = new Vector(size);\n\n nextSequence = nextSequence.subtract(new BigDecimal(size));\n\n // Check for incorrect values return to validate that the sequence is setup correctly.\n // PRS 36451 intvalue would wrap\n if (nextSequence.doubleValue() < -1) {\n throw ValidationException.sequenceSetupIncorrectly(seqName);\n }\n\n for (int index = size; index > 0; index--) {\n nextSequence = nextSequence.add(increment);\n sequencesForName.addElement(nextSequence);\n }\n return sequencesForName;\n }", "public void testCrearArrayNoEspecificado(int size) {\n\t\tint[] array = new int[size]; //tempLocal = 1\n\t}", "public abstract void setSize(Dimension d);", "@Override\n\t\tpublic LoginDto[] newArray(int size) {\n\t\t\treturn new LoginDto[size];\n\t\t}", "public DynamicModelPart setSizeX(int[] sizeX) {\n this.sizeX = sizeX;\n return this;\n }", "public void setup(int size){\n runValues = new double[size];\n hardwareValues = new double[size][];\n }", "public void setSize(double size) \n {\n this.size = size;\n }", "public double[] randomNumbers(int size, double max, int scale){\n double[] randoms= new double[size];\n for (int i=0; i<size; i++) {\n randoms[i]=(Math.round(rnd.nextDouble() *max* Math.pow(10, scale) )) /Math.pow(10, scale);\n }\n return randoms;\n }", "public DataStreamObject(int newLimit) {\n\t\tlimit = newLimit;\n\t\tdata = new double[limit];\n\t}", "public DArray (int max)\n // constructor\n {\n theArray = new long[max];\n // create array\n nElems = 0;\n }", "public final void createDimArray(final int length) {\r\n dimArray = new FileMincDimElem[length];\r\n }", "public MemoryImpl(int size) {\n\t\tif(size < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Memory size can not be lower than 1!\");\n\t\t}\n\t\tthis.memory = new Object[size];\n\t}", "public final com.francetelecom.admindm.model.Parameter createSize()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"Size\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setActiveNotificationDenied(true);\n\t\tparam.setType(ParameterType.UINT);\n\t\tparam.addCheck(new CheckMinimum(0));\n\t\tparam.addCheck(new CheckMaximum(4294967295L));\n\t\tparam.setValue(new Long(0));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}", "public void createNew(int xSize, int ySize, int countOfMines);", "public MyArray(int size) {\n this.length = size;\n this.array = (T[]) Array.newInstance(MyArray.class, length);\n this.size = 0;\n }", "public static JTensor newWithSize(LongStorage size, LongStorage stride) {\n return new JTensor(\n TH.THTensor_(newWithSize)(size, stride)\n );\n }", "private ArrayIntList buildList(int size) {\n\t\tArrayIntList list = new ArrayIntList();\n\t\tfor (int i=1;i<=size;i++)\n\t\t\tlist.add(i);\n\t\treturn list; \n\t}", "public VectorStorageDense(short dimension) {\n super();\n CHK.CHECK(dimension > 0, \"The dimension cannot be lower than 0\");\n allValues = new ArrayList<Float[]> ();\n this.dimension = dimension;\n }", "public interface RangeContainerFactoryDynamic extends RangeContainerFactory{\n\n /**\n * builds an immutable container optimized for range queries.\n * Data is expected to be 32k items or less.\n *\n * takes an additional strategy parameter to invoke the corresponding type of RangeContainer creation\n */\n RangeContainer createContainer(long[] data, RangeContainerStrategy strategy);\n\n}", "public double [] plot(double from, double to, int size) \n{\n\tdouble increment = Math.abs((to-from)/size);\n\t\n\tdouble [] temp = new double [size];\n\n\tfor(int i=0; i<size; i++)\n\t\ttemp[i]=this.fuzzify(from+increment*i);\n\t\n\treturn temp;\n}", "Graph(int size) {\n n = size;\n V = new Vertex[size + 1];\n // create an array of Vertex objects\n for (int i = 1; i <= size; i++)\n V[i] = new Vertex(i);\n }", "@Override\n\t\tpublic Info[] newArray(int size) {\n\t\t\treturn new Info[size];\n\t\t}", "public Data(int _dimension) {\r\n this.setDimension(_dimension);\r\n }", "LengthAdd createLengthAdd();", "public Company(int size) {\n employees = new Person[size];\n }", "@Override\n public Stanza[] newArray(int size) {\n return new Stanza[size];\n }", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public MemoryImpl(int size) {\n\t\tif (size < 0) {\n\t\t\tthrow new IllegalArgumentException(\"The size of the memory should be greater than 0!\");\n\t\t}\n\t\tmemory = new Object[size];\n\t}", "@Override\n\t\tpublic BaoBeiBean[] newArray(int size) {\n\t\t\treturn new BaoBeiBean[size];\n\t\t}", "public BaseScalarBoundedArray(ScalarType elementType, int size) {\n super(Type.scalarArray);\n if (elementType==null)\n \tthrow new NullPointerException(\"elementType is null\");\n if (size<=0)\n \tthrow new IllegalArgumentException(\"size <= 0\");\n this.elementType = elementType;\n this.size = size;\n this.id = BaseScalar.idLUT[this.elementType.ordinal()] + \"<\" + size + \">\";\n }", "@Override\n public ProductCategories[] newArray(int size) {\n return new ProductCategories[size];\n }", "public DoubleChromosome(int size) {\t\n\t\tfor(int g=0; g<size; g++){\n\t\t\tgenes.add(random.nextDouble()-0.5);\n\t\t}\n\t\tinit();\n\t}", "protected abstract D createData();", "public VariableGridLayout(int mode, int size) {\n\t\tthis(mode, size, 0, 0);\n\t}", "DomainElement createDomainElement();", "public Graph(int size) {\n\t\tmatrix = new int[size][size];\n\t\tthis.size = size;\n\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tmatrix[i][j] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// make space for the values (and ignore the cast warning)\n\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tType[] values = (Type[]) new Object[size];\n\t\tthis.values = values;\n\t}", "Dimension[] getSizes();", "Object createArray(int capacity);", "public Chromosome(int size, int valueSize) {\n this.valueSize = valueSize;\n \n numberValue = ((size*valueSize)/8);\n if (((((float)size*valueSize)/8)*10)%10 > 0) //arrondis au superieur\n numberValue++;\n \n this.chromosome = new byte[numberValue];\n }", "public abstract Cut<C> a(BoundType boundType, DiscreteDomain<C> discreteDomain);", "public void allocate(int size) {\n int N = PrimeNumbers.nextPrime(size);\n table = new Entry[N];\n elementsCount = 0;\n\n for (int i = 0; i < table.length; ++i) {\n table[i] = null;\n }\n }", "ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }", "public int asignacionMemoriaEnteraDim(int value, int size){\n int i = 0;\n while(i<size){\n memoriaEntera[enteroAct] = value;\n enteroAct = enteroAct + 1;\n i++;\n }\n return inicioMem + enteroAct - size;\n }", "private static Map<DiscreteState,Double> createMap(int vectSize, int mapSize) {\n\t\tMap<DiscreteState,Double> map = new HashMap<DiscreteState,Double>();\n\t\tint n = (int) Math.min(mapSize, Math.pow(2, vectSize));\n\t\twhile (map.size() < n) {\n\t\t\tdouble[] addition = new double[vectSize];\n\t\t\tfor (int i = 0; i < vectSize; i++) addition[i] = Math.round(Math.random());\n\t\t\tmap.put(new DiscreteState(addition), Math.random());\n\t\t}\n\t\treturn map;\n\t}", "public abstract C a(DiscreteDomain<C> discreteDomain);", "public static TypeArray v(int size) {\n TypeArray newArray = new TypeArray();\n\n newArray.types = new Type[size];\n\n for (int i = 0; i < size; i++) {\n newArray.types[i] = UnusuableType.v();\n }\n\n return newArray;\n }" ]
[ "0.59743196", "0.59080464", "0.5802286", "0.5705715", "0.558442", "0.5551087", "0.55431724", "0.55094385", "0.5505952", "0.5478376", "0.54725397", "0.5424011", "0.5389433", "0.53879356", "0.5380667", "0.5379325", "0.53760237", "0.53734505", "0.5359102", "0.53545237", "0.53440094", "0.5328166", "0.5326649", "0.52921873", "0.528628", "0.5257156", "0.52342165", "0.523324", "0.5225203", "0.5216055", "0.52076447", "0.51618123", "0.5160712", "0.515446", "0.5133956", "0.513203", "0.5115003", "0.5113942", "0.51135355", "0.51007575", "0.50861895", "0.5085582", "0.5081035", "0.50766563", "0.5075232", "0.5075223", "0.5072845", "0.5068873", "0.50405806", "0.5032344", "0.50226533", "0.5010165", "0.50090796", "0.5007217", "0.5002889", "0.4999008", "0.49975452", "0.49943247", "0.49919522", "0.4980498", "0.49787763", "0.49776718", "0.49732238", "0.49633044", "0.4951297", "0.4939384", "0.49378347", "0.49373466", "0.49327323", "0.49303693", "0.4930352", "0.49292472", "0.49264747", "0.49221885", "0.4920848", "0.4909209", "0.48950863", "0.48927867", "0.48917824", "0.48883992", "0.4884983", "0.48828223", "0.48798087", "0.48752886", "0.4869246", "0.48638123", "0.48588455", "0.48582482", "0.48580793", "0.48545325", "0.48542064", "0.4853012", "0.48485062", "0.48461312", "0.48406926", "0.4840208", "0.48389512", "0.48374635", "0.48304754", "0.48261607" ]
0.49921095
58
create a new numerical integer data domain of the given size
public static MockDataDomain createNumericalInteger(int numCols, int numRows, AValueFactory r, int max) { DataSetDescription dataSetDescription = createDataSetDecription(r); dataSetDescription.setDataDescription(createNumericalIntegerDataDecription(max)); DataDescription dataDescription = dataSetDescription.getDataDescription(); MockDataDomain dataDomain = createDataDomain(dataSetDescription); NumericalTable table = new NumericalTable(dataDomain); table.setDataCenter(0.0); for (int i = 0; i < numCols; ++i) { IntContainer container = new IntContainer(numRows); NumericalColumn<IntContainer, Integer> column = new NumericalColumn<>(dataDescription); column.setRawData(container); for (int j = 0; j < numRows; ++j) { container.add(r.nextInt(max)); } table.addColumn(column); } dataDomain.setTable(table); TableAccessor.postProcess(table, 0, max); return dataDomain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createNew(int size);", "public static IntegerVarArray make(int size, PrimArray from, int sourceOffset, int count, int destOffset) {\n\t\treturn new IntegerVarArray(size, from, sourceOffset, count, destOffset);\n\t}", "DS (int size) {sz = size; p = new int [sz]; for (int i = 0; i < sz; i++) p[i] = i; R = new int[sz];}", "BigONotation(int size) {\n\t\tarraySize = size;\n\t\ttheArray = new int[size];\n\t}", "void init(int size) {\n int numOfElements = size / MAX_BITS;\n if (size % MAX_BITS > 0)\n numOfElements++;\n\n values = new long[numOfElements];\n }", "public IntMap(int size){\r\n hashMask=size-1;\r\n indexMask=(size<<1)-1;\r\n data=new int[size<<1];\r\n }", "static Nda<Integer> of( int... value ) { return Tensor.of( Integer.class, Shape.of( value.length ), value ); }", "public void makeArray(int size) {\n\t\t\n\t}", "public void initialize(int size);", "private ArrayIntList buildList(int size) {\n\t\tArrayIntList list = new ArrayIntList();\n\t\tfor (int i=1;i<=size;i++)\n\t\t\tlist.add(i);\n\t\treturn list; \n\t}", "public List<Integer> generateList(int size){\n List<Integer> data = new ArrayList<>();\n for (int i = 0; i < size; i++){\n data.add(i);\n }\n return data;\n }", "private void createBin(int size) \n\t{\n\t// create an array of the appropriate type\n\tfBin = (Object[]) Array.newInstance(fClass, size);\t\n\t}", "public IntegerList(int size)\n {\n list = new int[size];\n }", "protected AbstractDistribution(int size) {\n\t\tthis.size = size;\n\t}", "private ArrayList<Integer> fillDomain() {\n ArrayList<Integer> elements = new ArrayList<>();\n\n for (int i = 1; i <= 10; i++) {\n elements.add(i);\n }\n\n return elements;\n }", "Dimension createDimension();", "public Hylle(int size) {\n a = (T[]) new Object[size];\n this.size = size;\n }", "public void testCrearArrayEnForEspecificado(int size) {\n\t\tfor (int i = 1; i <= size; i++) { \n\t\t\tint[] array = new int[i]; //tempLocal = (size * (size + 1))/2\t\n\t\t}\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "DomainNumber createDomainNumber();", "public IntegerList(int size)\n {\n list = new int[size];\n }", "@Override\n public ImageData[] newArray(int size) {\n return new ImageData[size];\n }", "OrderedIntList(int size)\n\t{\n\t\tdata = new int[size];\n\t\tcount = 0;\n\t}", "void assignSize (int size) {\n array = new int[size];\n }", "private int[] createArrays(int size) {//creating method, using variable \"SIZE\"\n\t\tint [] array = new int[size];\n\t\treturn array;\n\t}", "Dimension_Dimension createDimension_Dimension();", "public void initialize(int size) {\n setMaxSize(size);\n }", "public Set<Integer> generateSet(int size){\n Set<Integer> data = new HashSet<>();\n for (int i = 0; i < size; i++){\n data.add(i);\n }\n return data;\n }", "public SampleMemory(int size) {\n this.memory = new double[size];\n this.pointer = 0;\n }", "@ProtoFactory\n public LinkedList<E> create(int size) {\n return new LinkedList<>();\n }", "Length createLength();", "public Map<Integer, Integer> generateMap(int size){\n Map<Integer, Integer> data = new HashMap<>();\n for (int i = 0; i < size; i++){\n data.put(i, i);\n }\n return data;\n }", "public Item[] newArray(int size) {\n return new Item[size]; \n }", "private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }", "public void testCrearArrayEspecificado(int size) {\n\t\tint[] array = new int[size]; //tempLocal = size : size >=1\n\t}", "int fixedSize();", "public static List<Integer> randomData(final int size) {\n\t\tfinal List<Integer> output = new ArrayList<Integer>();\n\n\t\tfor (int i = 0; i < size; i++)\n\t\t\toutput.add((int)(Math.random() * MAX_VALUE));\n\n\t\treturn output;\n\t}", "BusinessLogic(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t\tgenerator = new Random();\r\n\t\tnumbers = new ArrayList<Integer>();\r\n\t}", "public void testCrearArrayEnForNoEspecificado(int size) {\n\t\tfor (int i = 1; i <= size; i++) { \n\t\t\tint[] array = new int[i]; //tempLocal = size : size >=1\t \n\t\t}\n\t}", "public final com.francetelecom.admindm.model.Parameter createSize()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"Size\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setActiveNotificationDenied(true);\n\t\tparam.setType(ParameterType.UINT);\n\t\tparam.addCheck(new CheckMinimum(0));\n\t\tparam.addCheck(new CheckMaximum(4294967295L));\n\t\tparam.setValue(new Long(0));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}", "@Override\n public Element[] newArray(int size) {\n return new Element[size];\n }", "public IntegerGenotype create() \r\n\t{\n\t\tIntegerGenotype genotype = new IntegerGenotype(1,3);\r\n\t\tgenotype.init(new Random(), Data.numeroCuardillas); \r\n\t\t\r\n\t\treturn genotype;\r\n\t}", "public static IntegerVarArray make(int count) {\n\t\treturn new IntegerVarArray(count);\n\t}", "BigInteger getDimension();", "public void setSize(Integer size) {\n this.size = size;\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }", "public int Init(int sz){\n\tsize = sz ;\n\tnumber = new int[sz] ;\n\t\n\tnumber[0] = 20 ;\n\tnumber[1] = 7 ; \n\tnumber[2] = 12 ;\n\tnumber[3] = 18 ;\n\tnumber[4] = 2 ; \n\tnumber[5] = 11 ;\n\tnumber[6] = 6 ; \n\tnumber[7] = 9 ; \n\tnumber[8] = 19 ; \n\tnumber[9] = 5 ;\n\t\n\treturn 0 ;\t\n }" ]
[ "0.61808217", "0.6073584", "0.6055009", "0.5991334", "0.59378374", "0.58682734", "0.58503574", "0.5802037", "0.57074726", "0.5665054", "0.5623775", "0.56034136", "0.5568499", "0.55588365", "0.5546977", "0.5513035", "0.55061245", "0.54956615", "0.5478956", "0.5471719", "0.546569", "0.54410774", "0.54387367", "0.5400774", "0.5391139", "0.5387459", "0.5351803", "0.5344756", "0.5343741", "0.53414494", "0.53325206", "0.53166145", "0.5313346", "0.53120106", "0.5299413", "0.52916384", "0.52842706", "0.52798426", "0.5276978", "0.5276794", "0.52614063", "0.52580845", "0.52564734", "0.52560407", "0.52546287", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.52519155", "0.5251748", "0.5251748", "0.5251748", "0.5251748", "0.5251748" ]
0.0
-1
create a new categorical homogeneous data domain with the given size and categories
@SuppressWarnings("unchecked") public static MockDataDomain createCategorical(int numCols, int numRows, AValueFactory r, String... categories) { DataSetDescription dataSetDescription = createDataSetDecription(r); dataSetDescription.setDataDescription(createCategoricalDataDecription(categories)); DataDescription dataDescription = dataSetDescription.getDataDescription(); MockDataDomain dataDomain = createDataDomain(dataSetDescription); CategoricalTable<String> table = new CategoricalTable<>(dataDomain); table.setCategoryDescritions((CategoricalClassDescription<String>) dataDescription.getCategoricalClassDescription()); for (int i = 0; i < numCols; ++i) { CategoricalContainer<String> container = new CategoricalContainer<>(numRows, EDataType.STRING, CategoricalContainer.UNKNOWN_CATEOGRY_STRING); CategoricalColumn<String> column = new CategoricalColumn<>(dataDescription); column.setRawData(container); for (int j = 0; j < numRows; ++j) { container.add(categories[r.nextInt(categories.length)]); } table.addColumn(column); } dataDomain.setTable(table); TableAccessor.postProcess(table); return dataDomain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic Categoria[] newArray(int size) {\n\t\t\treturn new Categoria[size];\n\t\t}", "@Override\n public ProductCategories[] newArray(int size) {\n return new ProductCategories[size];\n }", "public static CategoryDataset createDataset() {\r\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\r\n dataset.addValue(1.0, \"First\", \"C1\");\r\n dataset.addValue(4.0, \"First\", \"C2\");\r\n dataset.addValue(3.0, \"First\", \"C3\");\r\n dataset.addValue(5.0, \"First\", \"C4\");\r\n dataset.addValue(5.0, \"First\", \"C5\");\r\n dataset.addValue(7.0, \"First\", \"C6\");\r\n dataset.addValue(7.0, \"First\", \"C7\");\r\n dataset.addValue(8.0, \"First\", \"C8\");\r\n dataset.addValue(5.0, \"Second\", \"C1\");\r\n dataset.addValue(7.0, \"Second\", \"C2\");\r\n dataset.addValue(6.0, \"Second\", \"C3\");\r\n dataset.addValue(8.0, \"Second\", \"C4\");\r\n dataset.addValue(4.0, \"Second\", \"C5\");\r\n dataset.addValue(4.0, \"Second\", \"C6\");\r\n dataset.addValue(2.0, \"Second\", \"C7\");\r\n dataset.addValue(1.0, \"Second\", \"C8\");\r\n dataset.addValue(4.0, \"Third\", \"C1\");\r\n dataset.addValue(3.0, \"Third\", \"C2\");\r\n dataset.addValue(2.0, \"Third\", \"C3\");\r\n dataset.addValue(3.0, \"Third\", \"C4\");\r\n dataset.addValue(6.0, \"Third\", \"C5\");\r\n dataset.addValue(3.0, \"Third\", \"C6\");\r\n dataset.addValue(4.0, \"Third\", \"C7\");\r\n dataset.addValue(3.0, \"Third\", \"C8\");\r\n return dataset;\r\n }", "CategoriesType createCategoriesType();", "CategoriesType createCategoriesType();", "CategoryType createCategoryType();", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "public abstract Cut<C> a(BoundType boundType, DiscreteDomain<C> discreteDomain);", "Dimension_Dimension createDimension_Dimension();", "protected CategorySeries buildCategoryDataset(String title, List<Evenement> values) {\n CategorySeries series = new CategorySeries(title);\n int k = 0;\n for (Evenement value : values) {\n series.add(value.getDescription(), value.getNb_participants());\n }\n\n return series;\n }", "Category(int num) {\n this.num = num;\n }", "public Cut<C> c(DiscreteDomain<C> discreteDomain) {\n return this;\n }", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "public abstract C a(DiscreteDomain<C> discreteDomain);", "public abstract Cut<C> b(BoundType boundType, DiscreteDomain<C> discreteDomain);", "public @NotNull Category newCategory();", "public void createSpaceClasses(){\n\t//add the number of classe demand in a list of superchannel\n\t\tspaceSC_List = new ArrayList<OpticalSuperChannel>();\n\t\tfor ( int i = 1 ; i < this.spatialDimension+1 ; i++ ) {\n\t\t\tspaceSC_List.add(new OpticalSuperChannel( i , this.signalBw, this.channelSpacing, this.bandGuard,\n\t\t\t\t\tthis.slotBw, this.modulationFormat));\n\t\t}\n\n\n\t}", "@Test\r\n public void testCategory() {\n Category createdCategory1 = createCategory(getRootCategory());\r\n\r\n // verify if created\r\n Category newRoot = getBuilder(\"/category/1\").get(Category.class);\r\n Assert.assertTrue(newRoot.contains(createdCategory1.getId()));\r\n\r\n // create a new category\r\n Category createdCategory2 = createCategory(getRootCategory());\r\n\r\n // verify if created\r\n Category newRoot2 = getBuilder(\"/category/1\").get(Category.class);\r\n Assert.assertTrue(newRoot2.contains(createdCategory1.getId()));\r\n Assert.assertTrue(newRoot2.contains(createdCategory2.getId()));\r\n\r\n Category actualCat2 = getBuilder(\"/category/\" + createdCategory2.getId()).get(Category.class);\r\n\r\n Dimension saved1 = createDimension();\r\n Category catHasDim = getBuilder(\"/category/add-dimension/\" + createdCategory1.getId() + \"/\" + saved1.getId()).post(Category.class, \" \");\r\n Assert.assertTrue(catHasDim.hasDimension(saved1.getId()));\r\n\r\n Dimension saved2 = createDimension();\r\n Category cat3 = getBuilder(\"/category/add-dimension/\" + createdCategory1.getId() + \"/\" + saved2.getId()).post(Category.class, \" \");\r\n Assert.assertTrue(cat3.hasDimension(saved1.getId()));\r\n Assert.assertTrue(cat3.hasDimension(saved2.getId()));\r\n\r\n // remove dim1\r\n getBuilder(\"/dimension/remove/\" + saved1.getId()).post(\" \");\r\n\r\n try {\r\n getBuilder(\"/dimension/\" + saved1.getId()).get(String.class);\r\n Assert.assertTrue(false);\r\n } catch (UniformInterfaceException e) {\r\n Assert.assertEquals(ServiceError.NotFound.getErrorCode(), e.getResponse().getStatus());\r\n }\r\n\r\n Category cat4 = getBuilder(\"/category/\" + createdCategory1.getId()).get(Category.class);\r\n Assert.assertFalse(cat4.hasDimension(saved1.getId()));\r\n }", "private void crearDimensionContable()\r\n/* 201: */ {\r\n/* 202:249 */ this.dimensionContable = new DimensionContable();\r\n/* 203:250 */ this.dimensionContable.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 204:251 */ this.dimensionContable.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 205:252 */ this.dimensionContable.setNumero(getDimension());\r\n/* 206:253 */ verificaDimension();\r\n/* 207: */ }", "private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }", "public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }", "private void setCategoriesArraySize(int i) {\r\n\t\tp_category_name = new String[i];\r\n\t}", "public Category build()\n {\n return new Category(\n new MultiSelectOption(fValue), fUpperBound, fUpperInclusive);\n }", "Dimension createDimension();", "@Test\n public void testCreateCategorizationLearner()\n {\n int ensembleSize = 3 + random.nextInt(1000);\n double baggingFraction = random.nextDouble();\n double dimensionsFraction = random.nextDouble();\n int maxTreeDepth = 3 + random.nextInt(10);\n int minLeafSize = 4 + random.nextInt(10);\n Random random = new Random();\n BaggingCategorizerLearner<Vector, String> result\n = RandomForestFactory.createCategorizationLearner(ensembleSize,\n baggingFraction, dimensionsFraction, maxTreeDepth, minLeafSize,\n random);\n assertEquals(ensembleSize, result.getMaxIterations());\n assertEquals(baggingFraction, result.getPercentToSample(), 0.0);\n assertSame(random, result.getRandom());\n @SuppressWarnings(\"rawtypes\")\n CategorizationTreeLearner treeLearner = \n (CategorizationTreeLearner) result.getLearner();\n assertEquals(maxTreeDepth, treeLearner.getMaxDepth());\n assertTrue(treeLearner.getLeafCountThreshold() >= 2 * minLeafSize);\n RandomSubVectorThresholdLearner<?> randomSubspace = (RandomSubVectorThresholdLearner<?>)\n treeLearner.getDeciderLearner();\n assertEquals(dimensionsFraction, randomSubspace.getPercentToSample(), 0.0);\n assertSame(random, randomSubspace.getRandom());\n VectorThresholdInformationGainLearner<?> splitLearner = (VectorThresholdInformationGainLearner<?>)\n randomSubspace.getSubLearner();\n assertEquals(minLeafSize, splitLearner.getMinSplitSize());\n }", "public abstract C b(DiscreteDomain<C> discreteDomain);", "public Categorie addCategorie(Categorie c);", "@Test\n public void test59() throws Throwable {\n DefaultKeyedValues2DDataset defaultKeyedValues2DDataset0 = new DefaultKeyedValues2DDataset();\n NumberAxis numberAxis0 = new NumberAxis(\"w9!(d\");\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"w9!(d\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultKeyedValues2DDataset0, (CategoryAxis) extendedCategoryAxis0, (ValueAxis) numberAxis0, (CategoryItemRenderer) null);\n CategoryPlot categoryPlot1 = (CategoryPlot)categoryPlot0.clone();\n }", "private List<ExploreSitesCategory> createDefaultCategoryTiles() {\n List<ExploreSitesCategory> categoryList = new ArrayList<>();\n\n // Sport category.\n ExploreSitesCategory category = new ExploreSitesCategory(\n SPORT, getContext().getString(R.string.explore_sites_default_category_sports));\n category.setDrawable(getVectorDrawable(R.drawable.ic_directions_run_blue_24dp));\n categoryList.add(category);\n\n // Shopping category.\n category = new ExploreSitesCategory(\n SHOPPING, getContext().getString(R.string.explore_sites_default_category_shopping));\n category.setDrawable(getVectorDrawable(R.drawable.ic_shopping_basket_blue_24dp));\n categoryList.add(category);\n\n // Food category.\n category = new ExploreSitesCategory(\n FOOD, getContext().getString(R.string.explore_sites_default_category_cooking));\n category.setDrawable(getVectorDrawable(R.drawable.ic_restaurant_menu_blue_24dp));\n categoryList.add(category);\n return categoryList;\n }", "public Cut<C> c(DiscreteDomain<C> discreteDomain) {\n Comparable a = a(discreteDomain);\n return a != null ? b(a) : Cut.e();\n }", "public abstract void build(ClassifierData<U> inputData);", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "@Before\n\tpublic void buildCategories()\n\t{\n\t\t// make a root node for the tree (i.e. like a franchise in the CR data set\n\t\tCategoryNode rootParent = null;\n\t\taRootCategory = new CategoryNode(\"rootCategoryId\", \"rootCategoryName\", rootParent);\n\t\t\n\t\t// Add a subtree containing a singleton. The singleton should get removed\n\t\tCategoryNode singleton = new CategoryNode(\"singletonId\", \"singletonName\", aRootCategory);\n\t\taRootCategory.addSubcategory(singleton);\n\t\tCategoryNode childOfSingleton = new CategoryNode(\"childOfSingletonId\", \"childOfSingletonName\", singleton);\n\t\tsingleton.addSubcategory(childOfSingleton);\n\t\tCategoryNode leaf0 = new CategoryNode(\"leaf0Id\", \"leaf0Name\", childOfSingleton);\n\t\tchildOfSingleton.addSubcategory(leaf0);\n\t\tCategoryNode leaf1 = new CategoryNode(\"leaf1Id\", \"leaf1Name\", childOfSingleton);\n\t\tchildOfSingleton.addSubcategory(leaf1);\n\t\t\n\t\t// Add a subtree will have similar leaves, so the subtree should be turned into an equivalence class\n\t\tCategoryNode equivalenceClass = new CategoryNode(\"equivalenceClassId\", \"equivalenceClassName\", aRootCategory);\n\t\taRootCategory.addSubcategory(equivalenceClass);\n\t\tCategoryNode similarNode0 = new CategoryNode(\"similarNode0Id\", \"similarNode0Name\", equivalenceClass);\n\t\tequivalenceClass.addSubcategory(similarNode0);\n\t\tCategoryNode similarNode1 = new CategoryNode(\"similarNode1Id\", \"similarNode1Name\", equivalenceClass);\n\t\tequivalenceClass.addSubcategory(similarNode1);\n\t\t\n\t\t// This subtree has dissimilar leaves, so the subtree shouldn't be turned into an equivalence class\n\t\tCategoryNode nonEquivalenceClass = new CategoryNode(\"nonEquivalenceClassId\", \"nonEquivalenceClassName\", aRootCategory);\n\t\taRootCategory.addSubcategory(nonEquivalenceClass);\n\t\tCategoryNode dissimilarNode0 = new CategoryNode(\"dissimilarNode0Id\", \"dissimilarNode0Name\", nonEquivalenceClass);\n\t\tnonEquivalenceClass.addSubcategory(dissimilarNode0);\n\t\tCategoryNode dissimilarNode1 = new CategoryNode(\"dissimilarNode1Id\", \"dissimilarNode1Name\", nonEquivalenceClass);\n\t\tnonEquivalenceClass.addSubcategory(dissimilarNode1);\n\t}", "public void createProductCategory(HttpServletRequest request){\n \n HttpSession session = request.getSession();\n \n DAOFactory mySqlFactory = DAOFactory.getDAOFactory();\n ProductCategoryDAO riverProductCategoryDAO = mySqlFactory.getProductCategoryDAO();\n ProductCategoryDAO productCategoryDAO = new MySQLProductCategoryDAOImpl();\n \n List productCategories = productCategoryDAO.getAllProductCategories();\n \n //productCategories\n ProductCategory tmp3 = null;\n String[][] productCategoriesMatrix = new String[productCategories.size()][2];\n\n for(int i=0; i<productCategories.size(); i++){\n\n tmp3 = (ProductCategory)productCategories.get(i);\n\n productCategoriesMatrix[i][0] = Integer.toString(tmp3.getPCID());\n productCategoriesMatrix[i][1] = tmp3.getName();\n \n }\n \n session.setAttribute(\"productCategories\", productCategoriesMatrix);\n \n }", "public Hylle(int size) {\n a = (T[]) new Object[size];\n this.size = size;\n }", "private static CategoryDataset createSortedDataset(List<Number> values, List<String> rows, List<NumberOnlyBuildLabel> columns) {\n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n\t\tTreeSet<String> rowSet = new TreeSet<String>(rows);\n\t\tTreeSet<ChartUtil.NumberOnlyBuildLabel> colSet = new TreeSet<ChartUtil.NumberOnlyBuildLabel>(\n\t\t\t\tcolumns);\n\n\t\tComparable[] _rows = rowSet.toArray(new Comparable[rowSet.size()]);\n\t\tComparable[] _cols = colSet.toArray(new Comparable[colSet.size()]);\n\n\t\t// insert rows and columns in the right order, reverse rows\n\t\tfor (int i = _rows.length - 1; i >= 0; i--)\n\t\t\tdataset.setValue(null, _rows[i], _cols[0]);\n\t\tfor (Comparable c : _cols)\n\t\t\tdataset.setValue(null, _rows[0], c);\n\n\t\tfor (int i = 0; i < values.size(); i++)\n\t\t\tdataset.addValue(values.get(i), rows.get(i), columns.get(i));\n\t\treturn dataset;\n\t}", "int sizeOfClassificationArray();", "Dimension_hauteur createDimension_hauteur();", "public Category() {}", "public void create(int id, DVD dvd, Categorie categorie);", "@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}", "public static CourseCategory[] createCategoryResponse() {\n CourseCategory[] categories = new CourseCategory[1];\n categories[0] = new CourseCategory();\n categories[0].setCategory(\"Math\");\n CourseSubject[] subjects = new CourseSubject[2];\n subjects[0] = new CourseSubject(\"Addition\", \"Math/Addition\", 1);\n subjects[1] = new CourseSubject(\"Subtration\", \"Math/Subtration\", 2);\n categories[0].setCourseSubject(subjects);\n return categories;\n }", "public void randomizeCategory() {\n this.group = (int) (3*Math.random()+1);\n }", "public void newCategory() {\n btNewCategory().push();\n }", "Category(int colorId) {\n this.colorId = colorId;\n }", "@Test\n public void test42() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.mapDatasetToDomainAxis(3699, 2);\n }", "@Override\n\tpublic Categories create(Categories cate) {\n\t\treturn categoriesDAO.create(cate);\n\t}", "Integer checkCategory(Integer choice, \n List<DvdCategory> categories) throws DvdStoreException;", "@SuppressWarnings(\"unchecked\")\n public static Observable.Transformer<SetList, List<Category>> mapSetToCategory() {\n return categoryTransformer;\n }", "LengthDistinct createLengthDistinct();", "@Override\n public ProductCategories createFromParcel(Parcel parcel_in) {\n return new ProductCategories(parcel_in);\n }", "@Test\n public void test64() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n CategoryDataset categoryDataset0 = categoryPlot0.getDataset(557);\n }", "public CwmDimensionedObject createCwmDimensionedObject();", "public MySet(int size) {\n table = (HashNode<E>[]) new HashNode[size];\n }", "public CategoricalResults(){\n\n }", "@Test\n public void test24() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n Number[][] numberArray0 = new Number[2][6];\n Number[] numberArray1 = new Number[0];\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[6];\n int int0 = ICC_Profile.icHdrDeviceClass;\n numberArray2[0] = (Number) 12;\n int int1 = SystemColor.CONTROL_SHADOW;\n numberArray2[1] = (Number) 21;\n int int2 = TransferHandler.NONE;\n numberArray2[2] = (Number) 0;\n byte byte0 = Character.DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR;\n numberArray2[3] = (Number) (byte)4;\n int int3 = Calendar.SEPTEMBER;\n numberArray2[4] = (Number) 8;\n int int4 = AffineTransform.TYPE_GENERAL_TRANSFORM;\n numberArray2[5] = (Number) 32;\n numberArray0[1] = numberArray2;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n combinedDomainCategoryPlot0.setDataset((CategoryDataset) defaultIntervalCategoryDataset0);\n }", "public JFreeChart createChart(CategoryDataset dataset) {\n CategoryAxis categoryAxis = new CategoryAxis(\"\");\n ValueAxis valueAxis = new NumberAxis(\"\");\n valueAxis.setVisible(false);\n BarRenderer renderer = new BarRenderer() {\n\n @Override\n public Paint getItemPaint(int row, int column) {\n return Color.blue;\n// switch (column) {\n// case 0:\n// return Color.red;\n// case 1:\n// return Color.yellow;\n// case 2:\n// return Color.blue;\n// case 3:\n// return Color.orange;\n// case 4:\n// return Color.gray;\n// case 5:\n// return Color.green.darker();\n// default:\n// return Color.red;\n// }\n }\n };\n renderer.setDrawBarOutline(false);\n renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator());\n renderer.setBasePositiveItemLabelPosition(new ItemLabelPosition(\n ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER));\n renderer.setBaseItemLabelsVisible(Boolean.TRUE);\n renderer.setBarPainter(new StandardBarPainter());\n CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis, renderer);\n JFreeChart chart = new JFreeChart(\"\", JFreeChart.DEFAULT_TITLE_FONT, plot, false);\n chart.setBackgroundPaint(Color.white);\n return chart;\n }", "CategoryExtentType getCategoryExtent();", "@Override\n\tpublic ItemTypeCategory create(long itemTypeCategoryId) {\n\t\tItemTypeCategory itemTypeCategory = new ItemTypeCategoryImpl();\n\n\t\titemTypeCategory.setNew(true);\n\t\titemTypeCategory.setPrimaryKey(itemTypeCategoryId);\n\n\t\treturn itemTypeCategory;\n\t}", "private void createBin(int size) \n\t{\n\t// create an array of the appropriate type\n\tfBin = (Object[]) Array.newInstance(fClass, size);\t\n\t}", "public void createCombination(String subjects, int size) {\n Combination combination = new Combination(subjects, size);\n combinations.add(combination);\n }", "public Graph(int size){\n this.size=size;\n Matrix=new boolean[size][size];\n color=new int[size];\n }", "Graph_chromosome(int size, int colors)\r\n\t{\r\n\t\tchromosome_size = size;\r\n\t\tnum_colors = colors;\r\n\t\tchromosome = new int[size];\r\n\t}", "private SortedSet<Classification<F, C>> categoryProbabilities(Collection<F> features) {\n\n /*\n * Sort the set according to the possibilities. Because we have to sort\n * by the mapped value and not by the mapped key, we can not use a\n * sorted tree (TreeMap) and we have to use a set-entry approach to\n * achieve the desired functionality. A custom comparator is therefore\n * needed.\n */\n SortedSet<Classification<F, C>> probabilities =\n new TreeSet<Classification<F, C>>(new Comparator<Classification<F, C>>() {\n\n @Override\n public int compare(Classification<F, C> o1, Classification<F, C> o2) {\n int toReturn = Double.compare(o1.getProbability(), o2.getProbability());\n if ((toReturn == 0) && !o1.getCategory().equals(o2.getCategory())) {\n toReturn = -1;\n }\n return toReturn;\n }\n });\n\n for (C category : this.getCategories()) {\n probabilities.add(new Classification<F, C>(\n features, category, this.categoryProbability(features, category)));\n }\n return probabilities;\n }", "public Set<Integer> generateSet(int size){\n Set<Integer> data = new HashSet<>();\n for (int i = 0; i < size; i++){\n data.add(i);\n }\n return data;\n }", "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "@Test\n public void test18() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"ut[\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n combinedDomainCategoryPlot0.clearDomainMarkers();\n }", "public void findFrequency(int size) {\r\n\t\tfor(i=0;i<size;i++) {\r\n\t\t\tfor (Entry en : dataEntries) {\t\t\r\n\t\t\t\ttemperature.add(en.getTemperature());\r\n\t\t\t\taches.add(en.getAches());\r\n\t\t\t\tcough.add(en.getCough());\r\n\t\t\t\tsoreThroat.add(en.getSoreThroat());\r\n\t\t\t\tdangerZone.add(en.getDangerZone());\r\n\t\t\t\thasCOVID19.add(en.getHasCOVID19());\r\n\t\t\t\t\r\n\t\t\t\tif (en.getHasCOVID19().equals(\"yes\")) {\r\n\t\t\t\t\ttemperatureIfCOVID19.add(en.getTemperature());\r\n\t\t\t\t\tachesIfCOVID19.add(en.getAches());\r\n\t\t\t\t\tcoughIfCOVID19.add(en.getCough());\r\n\t\t\t\t\tsoreThroatIfCOVID19.add(en.getSoreThroat());\r\n\t\t\t\t\tdangerZoneIfCOVID19.add(en.getDangerZone());\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Cut<Comparable<?>> c(DiscreteDomain<Comparable<?>> discreteDomain) {\n try {\n return Cut.b(discreteDomain.minValue());\n } catch (NoSuchElementException unused) {\n return this;\n }\n }", "public Categorie getCategorieById(long id);", "public static void processDomain(Domain fieldDomain, Class<?> clazz_type) {\n\t\tif (clazz_type == Boolean.TYPE || clazz_type == Boolean.class)\t{\t/* set discrete*/\n//\t\t\tfieldDomain.setCategorical(true);\t// BY DEFAULT it is categorical\n\t\t\tfieldDomain.addCategory(Boolean.TRUE);\n\t\t\tfieldDomain.addCategory(Boolean.FALSE);\n\t\t\tfieldDomain.setFixed(true);\n\t\t} else if (clazz_type.isEnum()) {//f.isEnumConstant()) {\n\t\t\tClass<?> enum_f = clazz_type;\n\t\t\t//for (E e:enum_f.getEnumConstants())\n\t\t\t//fieldDomain.setFixed(true);\n\t\t} else if (clazz_type == String.class) {\t\n\t\t\t/* BY DEFAULT it is categorical*/\n\t\t} \n\t\t\n\t}", "private void generateModel() {\n // Initialize a new model object\n mCm = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n mCm[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n }", "public static ExerciseCategory createEntity() {\n ExerciseCategory exerciseCategory = new ExerciseCategory()\n .name(DEFAULT_NAME);\n return exerciseCategory;\n }", "public Category newCategory() {\n\t\tCategory page = new Category();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\tpage.setWpWeight(0);\r\n\t\treturn page;\r\n\t}", "Category addNewCategory(Category category);", "@GetMapping(\"/category/{type}\")\n public CategoryPage showOne(@PathVariable(\"type\") Integer categoryType,\n @RequestParam(value = \"page\", defaultValue = \"1\") Integer page,\n @RequestParam(value = \"size\", defaultValue = \"3\") Integer size) {\n\n ProductCategory cat = categoryService.findByCategoryType(categoryType);\n PageRequest request = PageRequest.of(page - 1, size);\n Page<ProductInfo> productInCategory = productService.findAllInCategory(categoryType, request);\n var tmp = new CategoryPage(\"\", productInCategory);\n tmp.setCategory(cat.getCategoryName());\n return tmp;\n }", "GeneralizationSet createGeneralizationSet();", "CreateCategoryResponse createCategory(CreateCategoryRequest request);", "@Override\n\tpublic Category create(long categoryId) {\n\t\tCategory category = new CategoryImpl();\n\n\t\tcategory.setNew(true);\n\t\tcategory.setPrimaryKey(categoryId);\n\n\t\tcategory.setCompanyId(CompanyThreadLocal.getCompanyId());\n\n\t\treturn category;\n\t}", "@Test\n public void test22() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n CategoryAxis[] categoryAxisArray0 = new CategoryAxis[2];\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"Null 'marker' not permitted.\");\n categoryAxisArray0[0] = (CategoryAxis) extendedCategoryAxis0;\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n categoryAxisArray0[1] = (CategoryAxis) categoryAxis3D0;\n combinedRangeCategoryPlot0.setDomainAxes(categoryAxisArray0);\n }", "public Cgg_veh_categoria(){}", "boolean hasDomainCategory();", "Category selectCategory(long id);", "public SubsetFilter createFilter(Dimension dimension);", "public static IntegerVarArray make(int size, PrimArray from, int sourceOffset, int count, int destOffset) {\n\t\treturn new IntegerVarArray(size, from, sourceOffset, count, destOffset);\n\t}", "private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }", "public void createNew(int size);", "public category() {\r\n }", "public void makeArray(int size) {\n\t\t\n\t}", "public static CategoryDataset createDataSetForBuild(AbstractBuild<?,?> build) {\n\t\tList<Number> values = new ArrayList<Number>();\n\t\tList<String> rows = new ArrayList<String>();\n\t\tList<NumberOnlyBuildLabel> columns = new ArrayList<NumberOnlyBuildLabel>();\n\n\t\tfor (; build != null; build = build\n\t\t\t\t.getPreviousBuild()) {\n\t\t\tRobotBuildAction action = build.getAction(RobotBuildAction.class);\n\n\t\t\tNumber failed = 0, passed = 0;\n\t\t\tif (action != null && action.getResult() != null) {\n\t\t\t\tfailed = action.getResult().getOverallFailed();\n\t\t\t\tpassed = action.getResult().getOverallPassed();\n\t\t\t}\n\n\t\t\t// default 'zero value' must be set over zero to circumvent\n\t\t\t// JFreeChart stacked area rendering problem with zero values\n\t\t\tif (failed.intValue() < 1)\n\t\t\t\tfailed = 0.01f;\n\t\t\tif (passed.intValue() < 1)\n\t\t\t\tpassed = 0.01f;\n\n\t\t\tChartUtil.NumberOnlyBuildLabel label = new ChartUtil.NumberOnlyBuildLabel(\n\t\t\t\t\tbuild);\n\n\t\t\tvalues.add(passed);\n\t\t\trows.add(Messages.robot_trendgraph_passed());\n\t\t\tcolumns.add(label);\n\n\t\t\tvalues.add(failed);\n\t\t\trows.add(Messages.robot_trendgraph_failed());\n\t\t\tcolumns.add(label);\n\t\t}\n\n\t\treturn createSortedDataset(values, rows, columns);\n\t}", "public interface TraitFromDimensions\n{\n /**\n * Number of dimensions needed to initialize an object (e.g., 1 for a\n * Sphere).\n *\n * @return number of required double values\n */\n int numberOfDimensions();\n\n /**\n * Take an array of size {@code this.numberOfDimensions} and re-set all\n * dimensions.\n *\n * @param theDims array of double values\n */\n void fromDimensions(double[] theDims);\n}", "@Test\n public void categoryFitsTypeTest() {\n final Category cardio = Category.CARDIO;\n final Type endurance = Type.ENDURANCE;\n final Type strength = Type.STRENGTH;\n\n assertEquals(\"Cardio category of Endurance Type\", cardio.getType(), endurance);\n assertNotEquals(\"Cardio category is not of Strength Type\", cardio.getType(), strength);\n }", "@Test\n public void typeCategoriesTest() {\n final Category cardio = Category.CARDIO;\n final Category core = Category.CORE;\n final Category fullBody = Category.FULL_BODY;\n final Type endurance = Type.ENDURANCE;\n\n final List<Category> myCategories = new ArrayList<>();\n\n myCategories.add(cardio);\n myCategories.add(core);\n assertEquals(\"Categories of Endurance Type\", myCategories, endurance.getCategories());\n\n myCategories.add(fullBody);\n assertNotEquals(\"Not all the Categories are of Endurance Type\", myCategories, endurance.getCategories());\n\n }", "@Override\n public CategoricalTypeConstants getCategoricalTypeConstant() {\n return CategoricalTypeConstants.SPECIFIC;\n }", "public Cut<Comparable<?>> a(BoundType boundType, DiscreteDomain<Comparable<?>> discreteDomain) {\n throw new AssertionError(\"this statement should be unreachable\");\n }", "private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification insertNewClassification(int i);", "@Test\n public void test66() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n int int0 = categoryPlot0.getRangeAxisCount();\n JDBCCategoryDataset jDBCCategoryDataset0 = null;\n try {\n jDBCCategoryDataset0 = new JDBCCategoryDataset((Connection) null);\n } catch(NullPointerException e) {\n //\n // A connection must be supplied.\n //\n assertThrownBy(\"org.jfree.data.jdbc.JDBCCategoryDataset\", e);\n }\n }", "public Cut<Comparable<?>> a(BoundType boundType, DiscreteDomain<Comparable<?>> discreteDomain) {\n throw new IllegalStateException();\n }" ]
[ "0.6266864", "0.6150042", "0.5553725", "0.542438", "0.542438", "0.5363381", "0.5322607", "0.52896965", "0.52868724", "0.52183676", "0.51043934", "0.50820124", "0.5078368", "0.50301754", "0.50165075", "0.5006415", "0.49811488", "0.49696133", "0.49359277", "0.4930308", "0.49132547", "0.49132204", "0.4892744", "0.48880783", "0.4876318", "0.48596784", "0.48074067", "0.480329", "0.4792417", "0.4783875", "0.4756647", "0.47471857", "0.47425875", "0.47374034", "0.47225183", "0.46933112", "0.46929416", "0.46877238", "0.46816987", "0.46767157", "0.4675663", "0.46599296", "0.46531203", "0.4651821", "0.46464586", "0.46420056", "0.46410108", "0.46363828", "0.4635756", "0.46357265", "0.46284473", "0.46275327", "0.46221173", "0.4619504", "0.46107343", "0.46081224", "0.460564", "0.46007317", "0.45988584", "0.459262", "0.4582615", "0.45820856", "0.45799217", "0.4559863", "0.454237", "0.45403782", "0.45317104", "0.45167458", "0.45152292", "0.45145792", "0.45123285", "0.4510704", "0.45040676", "0.45032328", "0.45019922", "0.45008454", "0.44952995", "0.44940192", "0.44886276", "0.44852835", "0.44762033", "0.4469559", "0.4468165", "0.44533616", "0.4442374", "0.44420505", "0.444151", "0.44410506", "0.44377437", "0.44226667", "0.44160897", "0.44143963", "0.44137034", "0.44124252", "0.44089392", "0.44014105", "0.44013855", "0.4398661", "0.43968728", "0.43947327" ]
0.6240085
1
create and register a new record grouping using the given group sizes
public static TablePerspective addRecGrouping(MockDataDomain dataDomain, int... groups) { return addGrouping(dataDomain, EDimension.RECORD, true, groups); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGroupingSize(int newValue) {\n groupingSize = (byte) newValue;\n }", "public void allocateGroupId(){\n\t\trecords.add(new pair(this.groupname,currentId));\n\t\tthis.groupid = currentId;\n\t\tcurrentId++;\n\t\tConnection c = null;\n\t\tStatement stmt = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"group setup\");\n\t\t\tSystem.out.println(this.groupid);\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ifoundclassmate\");\n\t\t\tc.setAutoCommit(false);\n\t\t\tstmt = c.createStatement();\n\t\t\tString sql = \"INSERT INTO GROUPS (GROUPID,GROUPNAME,DESCRIPTION) \"+\n\t\t\t\t\t\"VALUES (\" + this.groupid + \", \" + \"'\" +this.groupname + \"'\"\n\t\t\t\t\t+\" , \" + \"'\" + this.description + \"' \" + \");\" ;\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t} catch (Exception e ){\n\t\t\tSystem.out.println(e.getClass().getName() + e.getMessage() );\n\t\t\treturn;\n\t\t}\n\t\treturn;\n\t}", "@Override\r\n\tpublic void addProductGroup() {\r\n\t\tString newProductGroupName = getView().getProductGroupName();\r\n\t\tString supplyValue = getView().getSupplyValue();\r\n\t\tSizeUnits supplyUnit = getView().getSupplyUnit();\r\n\t\t\r\n\t\tProductGroup pg = new ProductGroup();\r\n\t\tpg.setName(newProductGroupName);\r\n\t\tUnitSize threeMounthSup = null;\r\n\t\ttry {\r\n\t\t\tthreeMounthSup = new UnitSize(supplyValue, supplyUnit.toString() );\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"fail in addProductGroupController\");\r\n\t\t}\r\n\t\t\r\n\t\tpg.setThreeMonthSup(threeMounthSup);\r\n\t\t\r\n\t\tpg.setContainer(_parent);\r\n\t\t\r\n\t\t_productGroupFacade.addProductGroup(pg);\r\n\t\t\r\n\t\tPersistor persistor = Configuration.getInstance().getPersistor();\r\n\t\tpersistor.insertProductContainer(pg);\r\n\t}", "@Override\n public Map<String, Object> createTaskGroup(User loginUser, String name, String description, Integer groupSize) {\n Map<String, Object> result = new HashMap<>();\n if (isNotAdmin(loginUser, result)) {\n return result;\n }\n if (name == null) {\n putMsg(result, Status.NAME_NULL);\n return result;\n }\n if (groupSize <= 0) {\n putMsg(result, Status.TASK_GROUP_SIZE_ERROR);\n return result;\n\n }\n TaskGroup taskGroup1 = taskGroupMapper.queryByName(loginUser.getId(), name);\n if (taskGroup1 != null) {\n putMsg(result, Status.TASK_GROUP_NAME_EXSIT);\n return result;\n }\n TaskGroup taskGroup = new TaskGroup(0, name, description,\n groupSize, loginUser.getId());\n Date date = new Date(System.currentTimeMillis());\n taskGroup.setCreateTime(date);\n taskGroup.setUpdateTime(date);\n int insert = taskGroupMapper.insert(taskGroup);\n logger.info(\"insert result:\", insert);\n putMsg(result, Status.SUCCESS);\n\n return result;\n }", "private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public GroupOfCards(int givenSize)\r\n {\r\n size = givenSize;\r\n }", "GroupsType createGroupsType();", "@Override\n public void modify( MemoryGroupByMeta someMeta ) {\n someMeta.allocate( 5, 5 );\n }", "private void createRpBlockConsistencyGroups() {\n DbClient dbClient = this.getDbClient();\n List<URI> protectionSetURIs = dbClient.queryByType(ProtectionSet.class, false);\n\n Iterator<ProtectionSet> protectionSets =\n dbClient.queryIterativeObjects(ProtectionSet.class, protectionSetURIs);\n\n while (protectionSets.hasNext()) {\n ProtectionSet ps = protectionSets.next();\n Project project = dbClient.queryObject(Project.class, ps.getProject());\n\n BlockConsistencyGroup cg = new BlockConsistencyGroup();\n cg.setId(URIUtil.createId(BlockConsistencyGroup.class));\n cg.setLabel(ps.getLabel());\n cg.setDeviceName(ps.getLabel());\n cg.setType(BlockConsistencyGroup.Types.RP.toString());\n cg.setProject(new NamedURI(project.getId(), project.getLabel()));\n cg.setTenant(project.getTenantOrg());\n\n dbClient.createObject(cg);\n\n log.debug(\"Created ConsistencyGroup (id={}) based on ProtectionSet (id={})\",\n cg.getId().toString(), ps.getId().toString());\n\n // Organize the volumes by replication set\n for (String protectionVolumeID : ps.getVolumes()) {\n URI uri = URI.create(protectionVolumeID);\n Volume protectionVolume = dbClient.queryObject(Volume.class, uri);\n protectionVolume.addConsistencyGroup(cg.getId().toString());\n\n dbClient.persistObject(protectionVolume);\n\n log.debug(\"Volume (id={}) added to ConsistencyGroup (id={})\",\n protectionVolume.getId().toString(), cg.getId().toString());\n }\n }\n }", "GroupType createGroupType();", "GroupType createGroupType();", "public void setGroupingSize(AVT v)\n {\n m_groupingSize_avt = v;\n }", "public GroupCreateBean() {\n\t\tsuper();\n\t\tthis.initializeNumbers();\t\t\n\t}", "public void sizeBy(float size) {\n internalGroup.sizeBy(size);\n dataTrait.width = internalGroup.getWidth();\n dataTrait.height = internalGroup.getHeight();\n resetSprite();\n }", "public RecordObject addGroup(String token, Object record) throws RestResponseException;", "int insert(SbGroupDetail record);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement addNewFinancialStatementsGroup();", "@Test\n\tpublic void testGroupNumerousKeys() {\n\t\tint max = 1000;\n\t\tint oldsize = 0;\n\t\tint newsize = 0;\n\t\ttry {\n\t\t\toldsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\t\tVintageConfigWebUtils.batchregister(groupString, keyString, valueString, 1, max);\n\t\t\t\n\t\t\tnewsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\t\tassertEquals(oldsize + max, newsize);\n\n\t\t\tfor (int i = 0; i < max; i++) {\n\t\t\t\tList<String> nodesList = VintageConfigWebUtils.lookup(groupString, keyString+i);\n\t\t\t\tString nodevalue = getValueFromConfigNode(nodesList.get(0));\n\t\t\t\tassertEquals(nodevalue, valueString+i);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.print(e.getMessage());\n\t\t\tfail(\"error in testGroupNumerousKeys\");\n\t\t} finally {\n\t\t\tVintageConfigWebUtils.batchunregister(groupString, keyString, 0, max);\n\t\t\tassertEquals(oldsize, VintageConfigWebUtils.lookup(groupString).size());\n\t\t}\n\t}", "@Override\n public void groupBy(StructuredRecord record, Emitter<StructuredRecord> emitter) throws Exception {\n StructuredRecord.Builder builder = StructuredRecord.builder(getGroupKeySchema(record.getSchema()));\n for (String groupByField : conf.getGroupByFields()) {\n builder.set(groupByField, record.get(groupByField));\n }\n emitter.emit(builder.build());\n }", "public void setSizeGroupId(String value) {\n setAttributeInternal(SIZEGROUPID, value);\n }", "public SELF withRowGroupSize(int rowGroupSize) {\n this.rowGroupSize = rowGroupSize;\n return self();\n }", "LoadGroup createLoadGroup();", "private void loadGroup(IMemento group)\n\t{\n\t\tRegistersGroupData groupData = new RegistersGroupData();\n\n\t\t// get group name\n\t\tString groupName = group.getString(FIELD_NAME);\n\t\tif (groupName == null)\n\t\t\treturn;\n\n\t\t// get group size\n\t\tIMemento mem = group.getChild(ELEMENT_TOTAL);\n\t\tif (mem == null)\n\t\t\treturn;\n\n\t\tInteger tempInt = mem.getInteger(FIELD_SIZE);\n\t\tif (tempInt == null)\n\t\t\treturn;\n\n\t\tgroupData.totalSize = tempInt.intValue();\n\n\t\t// check add total field\n\t\tgroupData.addTotalField = true;\n\t\tString tempStr = mem.getString(FIELD_ADD_TOTAL);\n\t\tif (tempStr != null && tempStr.equalsIgnoreCase(\"false\"))\n\t\t\tgroupData.addTotalField = false;\n\n\t\t// get sub-division\n\t\tIMemento[] mems = group.getChildren(ELEMENT_SUB);\n\t\tgroupData.indicies = new int[mems.length];\n\t\tgroupData.sizes = new int[mems.length];\n\t\tgroupData.names = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t{\n\t\t\ttempInt = mems[ind].getInteger(FIELD_INDEX);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.indicies[ind] = tempInt.intValue();\n\n\t\t\ttempInt = mems[ind].getInteger(FIELD_SIZE);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.sizes[ind] = tempInt.intValue();\n\n\t\t\tgroupData.names[ind] = mems[ind].getString(FIELD_NAME);\n\t\t\tif (groupData.names[ind] == null)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// add group data\n\t\tmapper.addGroup(groupName/*, groupData*/);\n\n\t\tmems = group.getChildren(ELEMENT_REGISTER);\n\t\tString[] register = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t\tregister[ind] = mems[ind].getString(FIELD_NAME);\n\n\t\t// add registers\n\t\tmapper.addRegisters(groupName, register);\n\t}", "static final List<RecordGroup> generateRecordGroups(List<AbstractRecord> records) {\n List<RecordGroup> recordGroups = new LinkedList<>();\n if (records.isEmpty()) {\n return recordGroups;\n }\n\n RecordGroup group = new RecordGroup();\n recordGroups.add(group);\n splitIntoGroups(recordGroups, group, records);\n\n return recordGroups;\n }", "int insert(SeGroup record);", "public void setGroupsCount(long groupsCount) {\r\n this.groupsCount = groupsCount;\r\n }", "ID create(NewRoamingGroup group);", "public boolean createGroup(GroupsGen group) {\n \n super.create(group);\n return true;\n }", "private static CurveBuildingBlock toBlock(CurveGroupDefinition groupDefn) {\n ImmutableList.Builder<CurveParameterSize> builder = ImmutableList.builder();\n for (CurveGroupEntry entry : groupDefn.getEntries()) {\n NodalCurveDefinition defn = entry.getCurveDefinition();\n builder.add(CurveParameterSize.of(defn.getName(), defn.getParameterCount()));\n }\n return CurveBuildingBlock.of(builder.build());\n }", "GroupCell createGroupCell();", "@Test\n\tpublic void testGroupNumerousKeysValues() {\n\t\tint max = 1000;\n\t\tint oldsize = 0;\n\t\tint newsize = 0;\n\t\tString valueTemp = \"\";\n\t\tStringBuilder sBuilder = new StringBuilder();\n\n\t\tfor (int i = 0; i < 2000; i++) {\n\t\t\tsBuilder = sBuilder.append('a');\n\t\t}\n\n\t\tvalueTemp = sBuilder.toString();\n\n\t\ttry {\n\t\t\toldsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\t\tVintageConfigWebUtils.batchregister(groupString, keyString, valueTemp, 1, max);\n\n\t\t\tnewsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\t\tSystem.out.print(oldsize + max);\n\t\t\tSystem.out.print(\"newsize:\" + newsize);\n\t\t\tassertEquals(oldsize + max, newsize);\n\n\t\t\tfor (int i = 0; i < max; i++) {\n\t\t\t\tList<String> nodesList = VintageConfigWebUtils.lookup(groupString, keyString+i);\n\t\t\t\tString nodevalue = getValueFromConfigNode(nodesList.get(0));\n\t\t\t\tassertEquals(nodevalue, valueTemp+i);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.print(e.getMessage());\n\t\t\tfail(\"error in testGroupNumerousKeys\");\n\t\t} finally {\n\t\t\tVintageConfigWebUtils.batchunregister(groupString, keyString, 0, max);\n\t\t\tassertEquals(oldsize, VintageConfigWebUtils.lookup(groupString).size());\n\t\t}\n\t}", "int getGroupingSize() {\n return groupingSize;\n }", "interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {\n }", "@Override\n\tpublic void getGroupAndCount(RpcController controller, ExpandAggregationRequest request,\n\t\t\tRpcCallback<ExpandAggregationResponse> done) {\n\t\tInternalScanner scanner = null;\n\t\ttry {\n\t\t\t// 通过protobuf传来的Scan,scan已经添加groupBy column和count lie\n\t\t\tScan scan = ProtobufUtil.toScan(request.getScan());\n\t\t\tscanner = environment.getRegion().getScanner(scan);\n\t\t\tList<ExpandCell> groupList = request.getGroupColumnsList();\n\t\t\tList<ExpandCell> countList = request.getCountColumnsList();\n\t\t\tboolean hashNext = false;\n\t\t\tList<Cell> results = new ArrayList<Cell>();\n\t\t\tArrayList<TempRow> rows = new ArrayList<TempRow>();\n\t\t\tdo {\n\t\t\t\thashNext = scanner.next(results);//id 4\n\t\t\t\tTempRow tempRow = new TempRow();\n\t\t\t\tfor (Cell cell : results) {\n\t\t\t\t\tString family = Bytes.toString(cell.getFamilyArray(), cell.getFamilyOffset(),\n\t\t\t\t\t\t\tcell.getFamilyLength());\n\t\t\t\t\tString qualify = Bytes.toString(cell.getQualifierArray(), cell.getQualifierOffset(),\n\t\t\t\t\t\t\tcell.getQualifierLength());\n\t\t\t\t\tfor (ExpandCell gCell : groupList) {\n\t\t\t\t\t\tif (family.equals(gCell.getFamily()) && qualify.equals(gCell.getQualify())) {\n\t\t\t\t\t\t\tString value = Bytes.toString(cell.getValueArray(), cell.getValueOffset(),\n\t\t\t\t\t\t\t\t\tcell.getValueLength());\n\t\t\t\t\t\t\tSystem.out.println(value);\n\t\t\t\t\t\t\ttempRow.setKey(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (Cell cell : results) {\n\t\t\t\t\tString family = Bytes.toString(cell.getFamilyArray(), cell.getFamilyOffset(),\n\t\t\t\t\t\t\tcell.getFamilyLength());\n\t\t\t\t\tString qualify = Bytes.toString(cell.getQualifierArray(), cell.getQualifierOffset(),\n\t\t\t\t\t\t\tcell.getQualifierLength());\n\t\t\t\t\tfor (ExpandCell gCell : countList) {\n\t\t\t\t\t\tif (family.equals(gCell.getFamily()) && qualify.equals(gCell.getQualify())) {\n\t\t\t\t\t\t\tString value = Bytes.toString(cell.getValueArray(), cell.getValueOffset(),\n\t\t\t\t\t\t\t\t\tcell.getValueLength());\n\t\t\t\t\t\t\ttempRow.setValue(value);\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\trows.add(tempRow);\n\t\t\t} while (hashNext);\n\t\t\tArrayList<ResultRow> ResultRows = analyzeRow(rows);\n\t\t\tArrayList<RpcResultRow> rpcResultRows = changeToRpcResultRow(ResultRows);\n\t\t\tWxsGroupByProto3.ExpandAggregationResponse.Builder responsBuilder = WxsGroupByProto3.ExpandAggregationResponse\n\t\t\t\t\t.newBuilder();\n\t\t\tfor (RpcResultRow rpcResultRow : rpcResultRows) {\n\t\t\t\tresponsBuilder.addResults(rpcResultRow);\n\t\t\t}\n\t\t\tdone.run(responsBuilder.build());\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tscanner.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public void newGroup() {\n addGroup(null, true);\n }", "private NameBuilderGroup(int groupNumber, String minimalWidth) {\r\n\t\t\tthis.groupNumber = groupNumber;\r\n\t\t\tthis.minimalWidth = minimalWidth;\r\n\t\t}", "CreateParameterGroupResult createParameterGroup(CreateParameterGroupRequest createParameterGroupRequest);", "int insert(CmGroupRelIndustry record);", "public com.ext.portlet.model.ModelInputGroup create(long modelInputGroupPK);", "public void createTaskGroup(String id, String taskFamily, int count) {\n String taskType = taskFamily.split(\":\")[0];\n TaskFactory taskFactory = null;\n Class<? extends Task> taskClass = null;\n if (taskType.equals(KeyingTask.TASKTYPEID)) {\n taskClass = KeyingTask.class;\n taskFactory = new KeyingTaskFactory();\n } else if (taskType.equals(MultiChoiceTask.TASKTYPEID)) {\n taskClass = MultiChoiceTask.class;\n taskFactory = new MultiChoiceTaskFactory();\n } else if (taskType.equals(MarkerTask.TASKTYPEID)) {\n taskClass = MarkerTask.class;\n taskFactory = new MarkerTaskFactory();\n } else {\n log.error(\"Invalid task family {}\", taskFamily);\n return;\n }\n // create a task group\n @SuppressWarnings(\"unchecked\")\n TaskGroup<Task> tg = (TaskGroup<Task>) taskService.createTaskGroup(id, taskClass);\n tg.setFamily(taskFamily);\n // reset random generator\n random.setSeed(id.hashCode());\n // create tasks\n while(count-- > 0) {\n tg.add(taskFactory.create());\n }\n // save to cache\n taskGroups.put(id, tg);\n }", "protected int createGroup() {\n\t\tint id = _motherGroupID + 1;\n\t\twhile (_soundNodes.containsKey(id)) { id++; }\n\t\tcreateGroup(id);\n\t\treturn id;\n\t}", "public void createNew(int size);", "private GridData newGridData(int horizSpan) {\n GridData gd = new GridData();\n gd.horizontalSpan = horizSpan;\n return gd;\n }", "Long insert(MessageGroup record);", "OperandListGroup createOperandListGroup();", "private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}", "public void setRecordSize(int recordSize)\r\n\t{\r\n\t\tthis.recordSize = recordSize;\r\n\t}", "int insertSelective(SbGroupDetail record);", "@Override\n public MetricsCollectorSpark<? extends MetricsArgumentCollection> createCollector(\n final String outputBaseName,\n final Set<MetricAccumulationLevel> metricAccumulationLevel,\n final List<Header> defaultHeaders,\n final SAMFileHeader samHeader)\n {\n final String localBaseName = outputBaseName + \".\" + InsertSizeMetrics.getUniqueNameSuffix();\n\n final InsertSizeMetricsArgumentCollection isArgs = new InsertSizeMetricsArgumentCollection();\n isArgs.output = localBaseName + \".txt\";\n isArgs.histogramPlotFile = localBaseName + \".pdf\";\n isArgs.metricAccumulationLevel.accumulationLevels = metricAccumulationLevel;\n\n final InsertSizeMetricsCollectorSpark collector = new InsertSizeMetricsCollectorSpark();\n collector.initialize(isArgs, samHeader, defaultHeaders);\n\n return collector;\n }", "void add(R group);", "int insert(GrpTagKey record);", "private static ArrayList<String> createRowHeaders(int size) {\n var rowHeaders = new ArrayList<String>();\n for (int i = 1; i <= size; i++) {\n rowHeaders.add(\"Group: \" + i);\n }\n return rowHeaders;\n }", "public static boolean checkGroupSize(int size){\n \n boolean r = true;\n \n if (size < 2 || size >= allEITs.length) \n r = false;\n \n return r;\n }", "protected void createGroup(int id) {\n\t\tcreateGroup(id, _motherGroupID);\n\t}", "interface WithGroup\n extends GroupableResource.DefinitionStages.WithGroup<DefinitionStages.WithSku> {\n }", "UserGroup createGroup(String companyId, String name, String groupLead);", "private List<Group> generateAndPersistGroups(int count) {\n \t\tArrayList<Group> groups = new ArrayList<Group>(count);\n \t\tGroup lastGroup = null;\n \t\tGroupDao groupDao = this.frontlineController.getGroupDao();\n \t\twhile(--count >= 0) {\n \t\t\tString name = getRandomGroupName() + \" \" + getRandomGroupName();\n \t\t\tboolean isOrphan = randy.nextBoolean();\n \t\t\tGroup newGroup = new Group(isOrphan ? null : lastGroup, name);\n \t\t\ttry {\n \t\t\t\tgroupDao.saveGroup(newGroup);\n \t\t\t\tgroups.add(newGroup);\n \t\t\t\tlastGroup = newGroup;\n \t\t\t} catch (DuplicateKeyException e) {\n \t\t\t\t// Discard duplicates\n \t\t\t}\n \t\t}\n \t\treturn groups;\n \t}", "void setGroupInfo(String groupName, int groupNumber, char insertionCode,\n\t\t\tString groupType, int atomCount, int bondCount, char singleLetterCode, \n\t\t\tint sequenceIndex, int secondaryStructureType);", "private void createGroupsForBranchPoints(SignalGroupsData signalGroups) {\n Id<SignalSystem> idSystem2 = Id.create(\"signalSystem2\", SignalSystem.class);\r\n\t\tSignalGroupData groupLeftTurn12 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalLeftTurn1_2\", SignalGroup.class));\r\n\t\tgroupLeftTurn12.addSignalId(Id.create(\"signal1_2.2_3\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn12);\r\n\r\n\t\tSignalGroupData groupLeftTurn72 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalLeftTurn7_2\", SignalGroup.class));\r\n\t\tgroupLeftTurn72.addSignalId(Id.create(\"signal7_2.2_1\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn72);\r\n\t\t\r\n\t\tSignalGroupData groupRightTurns1232 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalRightTurns2\", SignalGroup.class));\r\n\t\tgroupRightTurns1232.addSignalId(Id.create(\"signal1_2.2_7\", Signal.class));\r\n\t\tgroupRightTurns1232.addSignalId(Id.create(\"signal3_2.2_1\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupRightTurns1232);\r\n\t\t\r\n\t\t// create groups for system 5\r\n\t\tId<SignalSystem> idSystem5 = Id.create(\"signalSystem5\", SignalSystem.class);\r\n\t\tSignalGroupData groupLeftTurn65 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalLeftTurn6_5\", SignalGroup.class));\r\n\t\tgroupLeftTurn65.addSignalId(Id.create(\"signal6_5.5_8\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn65);\r\n\r\n\t\tSignalGroupData groupLeftTurn45 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalLeftTurn4_5\", SignalGroup.class));\r\n\t\tgroupLeftTurn45.addSignalId(Id.create(\"signal4_5.5_6\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn45);\r\n\t\t\r\n\t\tSignalGroupData groupRightTurns6585 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalRightTurns5\", SignalGroup.class));\r\n\t\tgroupRightTurns6585.addSignalId(Id.create(\"signal6_5.5_4\", Signal.class));\r\n\t\tgroupRightTurns6585.addSignalId(Id.create(\"signal8_5.5_6\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupRightTurns6585);\r\n\t\t\r\n\t\tif (TtCreateParallelNetworkAndLanes.checkNetworkForSecondODPair(this.scenario.getNetwork())) {\r\n\t\t\t// create groups for system 10\r\n\t\t\tId<SignalSystem> idSystem10 = Id.create(\"signalSystem10\", SignalSystem.class);\r\n\t\t\tSignalGroupData groupLeftTurn910 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalLeftTurn9_10\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn910.addSignalId(Id.create(\"signal9_10.10_4\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn910);\r\n\r\n\t\t\tSignalGroupData groupLeftTurn310 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalLeftTurn3_10\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn310.addSignalId(Id.create(\"signal3_10.10_9\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn310);\r\n\t\t\t\r\n\t\t\tSignalGroupData groupRightTurns910410 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalRightTurns10\", SignalGroup.class));\r\n\t\t\tgroupRightTurns910410.addSignalId(Id.create(\"signal9_10.10_3\", Signal.class));\r\n\t\t\tgroupRightTurns910410.addSignalId(Id.create(\"signal4_10.10_9\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupRightTurns910410);\r\n\t\t\t\r\n\t\t\t// create groups for system 11\r\n\t\t\tId<SignalSystem> idSystem11 = Id.create(\"signalSystem11\", SignalSystem.class);\r\n\t\t\tSignalGroupData groupLeftTurn1211 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalLeftTurn12_11\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn1211.addSignalId(Id.create(\"signal12_11.11_7\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn1211);\r\n\r\n\t\t\tSignalGroupData groupLeftTurn811 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalLeftTurn8_11\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn811.addSignalId(Id.create(\"signal8_11.11_12\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn811);\r\n\t\t\t\r\n\t\t\tSignalGroupData groupRightTurns1211711 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalRightTurns11\", SignalGroup.class));\r\n\t\t\tgroupRightTurns1211711.addSignalId(Id.create(\"signal12_11.11_8\", Signal.class));\r\n\t\t\tgroupRightTurns1211711.addSignalId(Id.create(\"signal7_11.11_12\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupRightTurns1211711);\r\n\t\t}\r\n\t}", "public UsersGroupsRecord() {\n\t\tsuper(org.kallithea.ldap.sync.jooq.tables.UsersGroups.USERS_GROUPS);\n\t}", "private void addGroup(StreamTokenizer st) throws IOException {\n\t\tcurrentGroups.clear();\n\t\tst.nextToken();\n\t\tString gName = \"default\";\n\t\tif (st.ttype == StreamTokenizer.TT_EOL) {\n\t\t\tLoggingSystem.getLogger(this).fine(\"Warning: empty group name\");\n\t\t\tst.pushBack();\n\t\t} else\n\t\t\tgName = st.sval;\n\t\t// System.out.println(\"adding \"+gName+\" to current groups. [\"+st.nval+\",\"+st.sval+\",\"+st.ttype+\"]\");\n\t\tcurrentGroups.add(gName);\n\t\tif (groups.get(gName) == null) {\n\t\t\tGroup g = new Group(gName);\n\t\t\tgroups.put(gName, g);\n\t\t}\n\t\twhile (st.nextToken() != StreamTokenizer.TT_EOL) {\n\t\t}\n\t}", "GroupRefType createGroupRefType();", "ExpRunGroupMapTable createRunGroupMapTable(String name, UserSchema schema, ContainerFilter cf);", "public Group() {\n\t\t\tfirst = last = null;\n\t\t\tsize = 0;\n\t\t}", "@RequestMapping(value = \"/group\", method = RequestMethod.POST)\n public ModelAndView addGroup(HttpServletRequest request,\n @RequestParam(name = \"name\") String name,\n @RequestParam(name = \"num\") String num) {\n\n return new ModelAndView(\"group\");\n }", "ExprGroup createExprGroup();", "public FacetRequestGroup createGroup(String groupName) {\n FacetRequestGroup group = new FacetRequestGroup(\n groupName, order, reverse, locale, maxTags, minCount, offset, prefix,\n hierarchical, levels, delimiter, startPath);\n groups.add(group);\n return group;\n }", "public StringBuilder adminBatchAddBlackGroupInfo(HttpServletRequest req) throws Exception {\n StringBuilder sBuilder = new StringBuilder(512);\n try {\n WebParameterUtils.reqAuthorizeCheck(master, brokerConfManager,\n req.getParameter(\"confModAuthToken\"));\n String createUser =\n WebParameterUtils.validStringParameter(\"createUser\",\n req.getParameter(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n true, \"\");\n Date createDate =\n WebParameterUtils.validDateParameter(\"createDate\",\n req.getParameter(\"createDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, new Date());\n List<Map<String, String>> jsonArray =\n WebParameterUtils.checkAndGetJsonArray(\"groupNameJsonSet\",\n req.getParameter(\"groupNameJsonSet\"),\n TBaseConstants.META_VALUE_UNDEFINED, true);\n if ((jsonArray == null) || (jsonArray.isEmpty())) {\n throw new Exception(\"Null value of groupNameJsonSet, please set the value first!\");\n }\n Set<String> configuredTopicSet = brokerConfManager.getTotalConfiguredTopicNames();\n HashMap<String, BdbBlackGroupEntity> inBlackGroupEntityMap = new HashMap<>();\n for (int j = 0; j < jsonArray.size(); j++) {\n Map<String, String> groupObject = jsonArray.get(j);\n try {\n String groupName =\n WebParameterUtils.validGroupParameter(\"groupName\",\n groupObject.get(\"groupName\"),\n TBaseConstants.META_MAX_GROUPNAME_LENGTH,\n true, \"\");\n String groupTopicName =\n WebParameterUtils.validStringParameter(\"topicName\",\n groupObject.get(\"topicName\"),\n TBaseConstants.META_MAX_TOPICNAME_LENGTH,\n true, \"\");\n String groupCreateUser =\n WebParameterUtils.validStringParameter(\"createUser\",\n groupObject.get(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n false, null);\n Date groupCreateDate =\n WebParameterUtils.validDateParameter(\"createDate\",\n groupObject.get(\"createDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, null);\n if ((TStringUtils.isBlank(groupCreateUser))\n || (groupCreateDate == null)) {\n groupCreateUser = createUser;\n groupCreateDate = createDate;\n }\n if (!configuredTopicSet.contains(groupTopicName)) {\n throw new Exception(sBuilder.append(\"Topic \").append(groupTopicName)\n .append(\" not configure in master configure, please configure first!\").toString());\n }\n String recordKey = sBuilder.append(groupName)\n .append(\"-\").append(groupTopicName).toString();\n sBuilder.delete(0, sBuilder.length());\n inBlackGroupEntityMap.put(recordKey,\n new BdbBlackGroupEntity(groupTopicName,\n groupName, groupCreateUser, groupCreateDate));\n } catch (Exception ee) {\n sBuilder.delete(0, sBuilder.length());\n throw new Exception(sBuilder.append(\"Process data exception, data is :\")\n .append(groupObject.toString())\n .append(\", exception is : \")\n .append(ee.getMessage()).toString());\n }\n }\n if (inBlackGroupEntityMap.isEmpty()) {\n throw new Exception(\"Not found record in groupNameJsonSet parameter\");\n }\n for (BdbBlackGroupEntity tmpBlackGroupEntity\n : inBlackGroupEntityMap.values()) {\n brokerConfManager.confAddBdbBlackConsumerGroup(tmpBlackGroupEntity);\n }\n sBuilder.append(\"{\\\"result\\\":true,\\\"errCode\\\":0,\\\"errMsg\\\":\\\"OK\\\"}\");\n } catch (Exception e) {\n sBuilder.delete(0, sBuilder.length());\n sBuilder.append(\"{\\\"result\\\":false,\\\"errCode\\\":400,\\\"errMsg\\\":\\\"\")\n .append(e.getMessage()).append(\"\\\"}\");\n }\n return sBuilder;\n }", "HttpStatus createGroup(final String groupName);", "private void createOncomingGroupsForBranchPoints(SignalGroupsData signalGroups) {\n Id<SignalSystem> idSystem2 = Id.create(\"signalSystem2\", SignalSystem.class);\r\n\t\tSignalGroupData signalIn2 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalIn2\", SignalGroup.class));\r\n\t\tsignalIn2.addSignalId(Id.create(\"signal1_2.2_3\", Signal.class));\r\n\t\tsignalIn2.addSignalId(Id.create(\"signal1_2.2_7\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(signalIn2);\r\n\r\n\t\tSignalGroupData signalOut2 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalLeftTurn7_2\", SignalGroup.class));\r\n\t\tsignalOut2.addSignalId(Id.create(\"signal7_2.2_1\", Signal.class));\r\n\t\tsignalOut2.addSignalId(Id.create(\"signal3_2.2_1\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(signalOut2);\r\n\t\t\r\n\t\t// create groups for system 5\r\n\t\tId<SignalSystem> idSystem5 = Id.create(\"signalSystem5\", SignalSystem.class);\r\n\t\tSignalGroupData signalIn5 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalIn5\", SignalGroup.class));\r\n\t\tsignalIn5.addSignalId(Id.create(\"signal6_5.5_8\", Signal.class));\r\n\t\tsignalIn5.addSignalId(Id.create(\"signal6_5.5_4\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(signalIn5);\r\n\r\n\t\tSignalGroupData signalOut5 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalOut5\", SignalGroup.class));\r\n\t\tsignalOut5.addSignalId(Id.create(\"signal4_5.5_6\", Signal.class));\r\n\t\tsignalOut5.addSignalId(Id.create(\"signal8_5.5_6\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(signalOut5);\r\n\t\t\r\n\t\tif (TtCreateParallelNetworkAndLanes.checkNetworkForSecondODPair(this.scenario.getNetwork())) {\r\n\t\t\t// create groups for system 10\r\n\t\t\tId<SignalSystem> idSystem10 = Id.create(\"signalSystem10\", SignalSystem.class);\r\n\t\t\tSignalGroupData signalIn10 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalIn10\", SignalGroup.class));\r\n\t\t\tsignalIn10.addSignalId(Id.create(\"signal9_10.10_4\", Signal.class));\r\n\t\t\tsignalIn10.addSignalId(Id.create(\"signal9_10.10_3\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(signalIn10);\r\n\r\n\t\t\tSignalGroupData signalOut10 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalOut10\", SignalGroup.class));\r\n\t\t\tsignalOut10.addSignalId(Id.create(\"signal3_10.10_9\", Signal.class));\r\n\t\t\tsignalOut10.addSignalId(Id.create(\"signal4_10.10_9\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(signalOut10);\r\n\t\t\t\r\n\t\t\t// create groups for system 11\r\n\t\t\tId<SignalSystem> idSystem11 = Id.create(\"signalSystem11\", SignalSystem.class);\r\n\t\t\tSignalGroupData signalIn11 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalIn11\", SignalGroup.class));\r\n\t\t\tsignalIn11.addSignalId(Id.create(\"signal12_11.11_7\", Signal.class));\r\n\t\t\tsignalIn11.addSignalId(Id.create(\"signal12_11.11_8\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(signalIn11);\r\n\r\n\t\t\tSignalGroupData signalOut11 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalOut11\", SignalGroup.class));\r\n\t\t\tsignalOut11.addSignalId(Id.create(\"signal8_11.11_12\", Signal.class));\r\n\t\t\tsignalOut11.addSignalId(Id.create(\"signal7_11.11_12\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(signalOut11);\r\n\t\t}\r\n\t}", "public SmilGroup() {\n\t\tsmilFiles = new LinkedList<D202SmilFile>();\n\t\tdiskUsage = -1;\n\t\tallFiles = new HashSet<FilesetFile>();\n\t\t//System.err.println(\"new group\");\n\t}", "public void setHeightGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.HEIGHT.toString(), num);\n\t}", "private void prepareListData(Set<String> cartItems, Map<String, List<OrderColourSize.ColourSizeItem>> cartItemMap) {\n // заполняем коллекцию групп из массива с названиями групп\n groupData = new ArrayList<Map<String, String>>();\n childData = new ArrayList<ArrayList<Map<String, String>>>();\n\n int sarea = 0;\n\n\n for (String group : cartItems) {\n // заполняем список аттрибутов для каждой группы\n m = new HashMap<String, String>();\n m.put(\"groupName\", group); // имя компании\n groupData.add(m);\n\n childDataItem = new ArrayList<Map<String, String>>();\n // заполняем список аттрибутов для каждого элемента\n for (OrderColourSize.ColourSizeItem item : cartItemMap.get(group)) {\n String phone = item.content;\n sarea += DatabaseOpenHelper.getInstance(null).getSizeAreaById(item.size_id) * item.quantity / 10000;\n m = new HashMap<String, String>();\n m.put(\"phoneName\", phone); // название телефона\n childDataItem.add(m);\n }\n // добавляем в коллекцию коллекций\n childData.add(childDataItem);\n }\n\n TOTAL_AREA = sarea;\n mTotalAreaView.setText(String.valueOf(TOTAL_AREA));\n // список аттрибутов групп для чтения\n String groupFrom[] = new String[]{\"groupName\"};\n // список ID view-элементов, в которые будет помещены аттрибуты групп\n int groupTo[] = new int[]{android.R.id.text1};\n\n // список аттрибутов элементов для чтения\n String childFrom[] = new String[]{\"phoneName\"};\n // список ID view-элементов, в которые будет помещены аттрибуты элементов\n int childTo[] = new int[]{android.R.id.text1};\n\n seAdapter = new SimpleExpandableListAdapter(\n this,\n groupData,\n android.R.layout.simple_expandable_list_item_1,\n groupFrom,\n groupTo,\n childData,\n android.R.layout.simple_list_item_1,\n childFrom,\n childTo);\n// listDataHeader = new ArrayList<String>();\n// listDataChild = new HashMap<String, List<String>>();\n//\n// // Adding child data\n// listDataHeader.add(\"Top 250\");\n// listDataHeader.add(\"Now Showing\");\n// listDataHeader.add(\"Coming Soon..\");\n//\n// // Adding child data\n// List<String> top250 = new ArrayList<String>();\n// top250.add(\"The Shawshank Redemption\");\n// top250.add(\"The Godfather\");\n// top250.add(\"The Godfather: Part II\");\n// top250.add(\"Pulp Fiction\");\n// top250.add(\"The Good, the Bad and the Ugly\");\n// top250.add(\"The Dark Knight\");\n// top250.add(\"12 Angry Men\");\n//\n// List<String> nowShowing = new ArrayList<String>();\n// nowShowing.add(\"The Conjuring\");\n// nowShowing.add(\"Despicable Me 2\");\n// nowShowing.add(\"Turbo\");\n// nowShowing.add(\"Grown Ups 2\");\n// nowShowing.add(\"Red 2\");\n// nowShowing.add(\"The Wolverine\");\n//\n// List<String> comingSoon = new ArrayList<String>();\n// comingSoon.add(\"2 Guns\");\n// comingSoon.add(\"The Smurfs 2\");\n// comingSoon.add(\"The Spectacular Now\");\n// comingSoon.add(\"The Canyons\");\n// comingSoon.add(\"Europa Report\");\n//\n// listDataChild.put(listDataHeader.get(0), top250); // Header, Child data\n// listDataChild.put(listDataHeader.get(1), nowShowing);\n// listDataChild.put(listDataHeader.get(2), comingSoon);\n }", "public ServiceGroup create(String shortName, String title, int cid) throws Exception;", "int insertSelective(SeGroup record);", "private void createCommonGroupForBranchPoints(SignalGroupsData signalGroups) {\n SignalGroupData group2 = signalGroups.getFactory().createSignalGroupData(Id.create(\"signalSystem2\", SignalSystem.class), \r\n\t\t\t\tId.create(\"signal2\", SignalGroup.class));\r\n\t\tgroup2.addSignalId(Id.create(\"signal1_2.2_3\", Signal.class));\r\n\t\tgroup2.addSignalId(Id.create(\"signal7_2.2_1\", Signal.class));\r\n\t\tgroup2.addSignalId(Id.create(\"signal1_2.2_7\", Signal.class));\r\n\t\tgroup2.addSignalId(Id.create(\"signal3_2.2_1\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(group2);\r\n\t\t\r\n\t\t// create groups for system 5\r\n\t\tSignalGroupData group5 = signalGroups.getFactory().createSignalGroupData(Id.create(\"signalSystem5\", SignalSystem.class), \r\n\t\t\t\tId.create(\"signal5\", SignalGroup.class));\r\n\t\tgroup5.addSignalId(Id.create(\"signal6_5.5_8\", Signal.class));\r\n\t\tgroup5.addSignalId(Id.create(\"signal4_5.5_6\", Signal.class));\r\n\t\tgroup5.addSignalId(Id.create(\"signal6_5.5_4\", Signal.class));\r\n\t\tgroup5.addSignalId(Id.create(\"signal8_5.5_6\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(group5);\r\n\t\t\r\n\t\tif (TtCreateParallelNetworkAndLanes.checkNetworkForSecondODPair(this.scenario.getNetwork())) {\r\n\t\t\t// create groups for system 10\r\n\t\t\tSignalGroupData group10 = signalGroups.getFactory().createSignalGroupData(Id.create(\"signalSystem10\", SignalSystem.class), \r\n\t\t\t\t\tId.create(\"signal10\", SignalGroup.class));\r\n\t\t\tgroup10.addSignalId(Id.create(\"signal9_10.10_4\", Signal.class));\r\n\t\t\tgroup10.addSignalId(Id.create(\"signal3_10.10_9\", Signal.class));\r\n\t\t\tgroup10.addSignalId(Id.create(\"signal9_10.10_3\", Signal.class));\r\n\t\t\tgroup10.addSignalId(Id.create(\"signal4_10.10_9\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(group10);\r\n\r\n\t\t\t// create groups for system 11\r\n\t\t\tSignalGroupData group11 = signalGroups.getFactory().createSignalGroupData(Id.create(\"signalSystem11\", SignalSystem.class), \r\n\t\t\t\t\tId.create(\"signal11\", SignalGroup.class));\r\n\t\t\tgroup11.addSignalId(Id.create(\"signal12_11.11_7\", Signal.class));\r\n\t\t\tgroup11.addSignalId(Id.create(\"signal8_11.11_12\", Signal.class));\r\n\t\t\tgroup11.addSignalId(Id.create(\"signal12_11.11_8\", Signal.class));\r\n\t\t\tgroup11.addSignalId(Id.create(\"signal7_11.11_12\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(group11);\r\n\t\t}\r\n\t}", "private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tArrayList<String> groupingAtts = new ArrayList<String>();\n\t\tgroupingAtts.add(\"o_orderdate\");\n\t\tgroupingAtts.add(\"o_orderstatus\");\n\n\t\tHashMap<String, AggFunc> myAggs = new HashMap<String, AggFunc>();\n\t\tmyAggs.put(\"att1\", new AggFunc(\"none\",\n\t\t\t\t\"Str(\\\"status: \\\") + o_orderstatus\"));\n\t\tmyAggs.put(\"att2\", new AggFunc(\"none\", \"Str(\\\"date: \\\") + o_orderdate\"));\n\t\tmyAggs.put(\"att3\", new AggFunc(\"avg\", \"o_totalprice * Int (100)\"));\n\t\tmyAggs.put(\"att4\", new AggFunc(\"sum\", \"Int (1)\"));\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Grouping(inAtts, outAtts, groupingAtts, myAggs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private GroupBinding createGroupBinding (Schema.Group g, Class<?> tgtType,\n Schema.Group origin)\n throws BlinkException\n {\n ArrayList<Field> bindingFields = new ArrayList<Field> ();\n GroupBinding b = new GroupBindingImpl (origin, tgtType, bindingFields);\n grpBndByName.put (origin.getName (), b);\n grpBndByClass.put (tgtType, b);\n\n long tid = b.getCompactTypeId ();\n if (grpBndByTid.containsKey (tid))\n {\n addAmbiguousTypeIdError (origin, tid);\n grpBndByTid.remove (tid);\n }\n else\n {\n if (! conflictByTid.containsKey (tid))\n grpBndByTid.put (tid, b);\n }\n\n HashMap<String, Method> allMethods = new HashMap<String, Method> ();\n getAllMethods (tgtType, allMethods);\n mapFields (g, allMethods, bindingFields);\n return b;\n }", "@Test\n public void testSmallAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + SMALL_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 150000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{11270}, 1L, 815409257L, 1215316262, 1328642550, 788414092L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + SMALL_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 30645L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{242920}, 3L, 4348938306L, 407993712, 296467636, 5803888725L, 3L);\n }", "private void createPartitions() {\n \tfor (int attrOrd : splitAttrs) {\n \t\tFeatureField featFld = schema.findFieldByOrdinal(attrOrd);\n \t\tif (featFld.isInteger()) {\n \t\t\t//numerical\n \t\t\tList<Integer[]> splitList = new ArrayList<Integer[]>();\n \t\t\tInteger[] splits = null;\n \t\t\tcreateNumPartitions(splits, featFld, splitList);\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (Integer[] thisSplit : splitList) {\n \t\t\t\tsplitHandler.addIntSplits(attrOrd, thisSplit);\n \t\t\t}\n \t\t} else if (featFld.isCategorical()) {\n \t\t\t//categorical\n \t\t\tint numGroups = featFld.getMaxSplit();\n \t\t\tif (numGroups > maxCatAttrSplitGroups) {\n \t\t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"more than \" + maxCatAttrSplitGroups + \" split groups not allwed for categorical attr\");\n \t\t\t}\n \t\t\t\n \t\t\t//try all group count from 2 to max\n \t\t\tList<List<List<String>>> finalSplitList = new ArrayList<List<List<String>>>();\n \t\t\tfor (int gr = 2; gr <= numGroups; ++gr) {\n \t\t\t\tLOG.debug(\"num of split sets:\" + gr);\n \t\t\t\tList<List<List<String>>> splitList = new ArrayList<List<List<String>>>();\n \t\t\t\tcreateCatPartitions(splitList, featFld.getCardinality(), 0, gr);\n \t\t\t\tfinalSplitList.addAll(splitList);\n \t\t\t}\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (List<List<String>> splitSets : finalSplitList) {\n \t\t\t\tsplitHandler.addCategoricalSplits(attrOrd, splitSets);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }", "public void patch(Long id, GroupDto groupDto)\n\t{\n\t\tGroup group = new Group();\n\t\tif (groupDto.getName() != null) group.setName(groupDto.getName());\n\t\t\n\t\tif (groupDto.getSize() != null) group.setSize(groupDto.getSize());\n\t\t\n\t}", "public StudentGroup(int length) {\n\t\tthis.students = new Student[length];\n\t}", "protected void createGroup(int id, int parentGroupID) {\n\t\tsendMessage(\"/g_new\", new Object[] { id, 0, parentGroupID });\n\n\t}", "private void createGroupState(ConnectionGroup connectionGroup, String connectionEntityAddress, LocalDate modificationDate,\n Integer validityDuration) {\n energy.usef.core.model.Connection connection = connectionRepository.findOrCreate(connectionEntityAddress);\n\n // create new state\n ConnectionGroupState newConnectionGroupState = new ConnectionGroupState();\n newConnectionGroupState.setConnection(connection);\n newConnectionGroupState.setConnectionGroup(connectionGroup);\n newConnectionGroupState.setValidFrom(modificationDate);\n newConnectionGroupState.setValidUntil(modificationDate.plusDays(validityDuration));\n connectionGroupStateRepository.persist(newConnectionGroupState);\n }", "int insert(PolicyGroup record);", "public StudentGroup(int length) {\r\n\t\tthis.students = new Student[length];\r\n\t}", "private void createNewGroup() {\r\n if(selectedNode != null) { \r\n DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode)selectedNode.getNextNode();\r\n if(selectedNode.isLeaf() && !selectedNode.getAllowsChildren()) {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1254\"));\r\n return;\r\n } else if(selTreePath.getPathCount() == 10) {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1255\"));\r\n return;\r\n }else if (nextNode != null && nextNode.isLeaf()) {\r\n CoeusOptionPane.showInfoDialog(\"The group '\"+selectedNode.toString()+\"' has sponsors assigned to it. \\nCannot create subgroups for this group.\");\r\n return;\r\n }else {\r\n nextNode = new DefaultMutableTreeNode(\"New Group - \"+(selectedNode.getLevel()+1)+\".\"+selectedNode.getChildCount(),true);\r\n model.insertNodeInto(nextNode, selectedNode, selectedNode.getChildCount());\r\n TreePath newSelectionPath = selTreePath.pathByAddingChild(nextNode);\r\n sponsorHierarchyTree.clearSelection();\r\n sponsorHierarchyTree.addSelectionPath(newSelectionPath);\r\n sponsorHierarchyTree.startEditingAtPath(newSelectionPath);\r\n newGroup = true;\r\n saveRequired = true;\r\n }\r\n }\r\n }", "int insertSelective(CmGroupRelIndustry record);", "private void assignGroups(int numSupportedGroups) {\n if (mSendDeviceId == Device.DEVICE_ID_UNKNOWN)\n return;\n // Check the number of supported groups matches the number requested to be set.\n if (numSupportedGroups >= mNewGroups.size()) {\n\n mGroupAcksWaiting = 0;\n\n // Make a copy of existing groups for this device.\n mGroupsToSend = mDeviceStore.getSingleDevice(mSendDeviceId).getGroupMembershipValues();\n // Loop through existing groups.\n for (int i = 0; i < mGroupsToSend.size(); i++) {\n int groupId = mGroupsToSend.get(i);\n if (groupId != 0) {\n int foundIndex = mNewGroups.indexOf(groupId);\n if (foundIndex > -1) {\n // The device is already a member of this group so remove it from the list of groups to add.\n mNewGroups.remove(foundIndex);\n }\n else {\n // The device should no longer be a member of this group, so set that index to -1 to flag\n // that a message must be sent to update this index.\n mGroupsToSend.set(i, -1);\n }\n }\n }\n // Now loop through currentGroups, and for every index set to -1 or zero send a group update command for\n // that index with one of our new groups if one is available. If there are no new groups to set, then just\n // send a message for all indices set to -1, to set them to zero.\n boolean commandSent = false;\n for (int i = 0; i < mGroupsToSend.size(); i++) {\n int groupId = mGroupsToSend.get(i);\n if (groupId == -1 || groupId == 0) {\n if (mNewGroups.size() > 0) {\n int newGroup = mNewGroups.get(0);\n mNewGroups.remove(0);\n commandSent = true;\n sendGroupCommands(mSendDeviceId, i, newGroup);\n }\n else if (groupId == -1) {\n commandSent = true;\n sendGroupCommands(mSendDeviceId, i, 0);\n }\n }\n }\n if (!commandSent) {\n // There were no changes to the groups so no updates were sent. Just tell the listener\n // that the operation is complete.\n if (mGroupAckListener != null) {\n mGroupAckListener.groupsUpdated(mSendDeviceId, true, stActivity.getString(R.string.group_no_changes));\n }\n }\n }\n else {\n // Not enough groups supported on device.\n if (mGroupAckListener != null) {\n mGroupAckListener.groupsUpdated(mSendDeviceId, false,\n stActivity.getString(R.string.group_max_fail) + \" \" + numSupportedGroups + \" \" + stActivity.getString(R.string.groups));\n }\n }\n }", "public static /*! #if ($TemplateOptions.KTypeGeneric) !*/ <KType> /*! #end !*/\n ChainedKTypeList<KType> newInstanceWithCapacity(int ... sizes)\n {\n int n = sizes.length;\n\n KType[][] outer = newArray(n);\n\n for (int i = 0; i < n; i++) {\n outer[i] = /*! #if ($TemplateOptions.KTypePrimitive)\n new KType[sizes[i]];\n #else !*/\n newArray(sizes[i]);\n /*! #end !*/\n }\n\n ChainedKTypeList<KType> output = new ChainedKTypeList<KType>();\n output.setBuffers(outer);\n return output;\n }", "public void instantiateGroups(ResultSet groupResultSet, ResultSet memberResultSet) throws SQLException {\n\t\t// Handle group names first\n\n\t\tHashMap<Integer, Group> groups = new HashMap<>();\n\t\t\n\t\twhile (groupResultSet.next()) {\n\t\t\tString name = groupResultSet.getString(GroupColumns.Name.colNr());\n\t\t\tint groupId = groupResultSet.getInt(GroupColumns.Id.colNr());\n\t\t\t\n\t\t\tgroups.put(new Integer(groupId), new Group(name));\n\t\t}\n\t\t\n\t\t// Handle members of groups\n\n\t\t\n\t\twhile (memberResultSet.next()) {\n\t\t\t// Get relevant employee\n\t\t\tEmployee employee = model.getEmployee(\n\t\t\t\t\tmemberResultSet.getString(MemberOfColumns.EmployeeEmail.colNr())\n\t\t\t\t);\n\t\t\t\n\t\t\t// Find group and add employee\n\t\t\tint groupId = memberResultSet.getInt(MemberOfColumns.GroupId.colNr());\n\t\t\tgroups.get(new Integer(groupId)).addEmployee(employee);\n\t\t}\n\t\t\n\t\t// Add groups to model\n\t\tfor (Group group : groups.values()) {\n\t\t\tmodel.addGroup(group);\n\t\t}\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement insertNewFinancialStatementsGroup(int i);", "@Override\n\tpublic LinkGroup create(long linkgroupId) {\n\t\tLinkGroup linkGroup = new LinkGroupImpl();\n\n\t\tlinkGroup.setNew(true);\n\t\tlinkGroup.setPrimaryKey(linkgroupId);\n\n\t\tlinkGroup.setCompanyId(companyProvider.getCompanyId());\n\n\t\treturn linkGroup;\n\t}", "private void createNumPartitions(Integer[] splits, FeatureField featFld, \n \t\tList<Integer[]> newSplitList) {\n \t\tint min = (int)(featFld.getMin() + 0.01);\n \t\tint max = (int)(featFld.getMax() + 0.01);\n \t\tint binWidth = featFld.getBucketWidth();\n \tif (null == splits) {\n \t\t//first time\n \t\tfor (int split = min + binWidth ; split < max; split += binWidth) {\n \t\t\tInteger[] newSplits = new Integer[1];\n \t\t\tnewSplits[0] = split;\n \t\t\tnewSplitList.add(newSplits);\n \t\t\tcreateNumPartitions(newSplits, featFld,newSplitList);\n \t\t}\n \t} else {\n \t\t//create split based off last split that will contain one additinal split point\n \t\tint len = splits.length;\n \t\tif (len < featFld.getMaxSplit() -1) {\n\t \t\tfor (int split = splits[len -1] + binWidth; split < max; split += binWidth) {\n\t \t\t\tInteger[] newSplits = new Integer[len + 1];\n\t \t\t\tint i = 0;\n\t \t\t\tfor (; i < len; ++i) {\n\t \t\t\t\tnewSplits[i] = splits[i];\n\t \t\t\t}\n\t \t\t\tnewSplits[i] = split;\n\t \t\t\tnewSplitList.add(newSplits);\n\t \t\t\t\n\t \t\t\t//recurse to generate additional splits\n\t \t\t\tcreateNumPartitions(newSplits, featFld,newSplitList);\n\t \t\t}\n \t\t}\n \t}\n }", "public StringBuilder adminBatchAddConsumeGroupSetting(HttpServletRequest req) throws Exception {\n StringBuilder sBuilder = new StringBuilder(512);\n try {\n WebParameterUtils.reqAuthorizeCheck(master, brokerConfManager,\n req.getParameter(\"confModAuthToken\"));\n String createUser =\n WebParameterUtils.validStringParameter(\"createUser\",\n req.getParameter(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n true, \"\");\n Date createDate =\n WebParameterUtils.validDateParameter(\"createDate\",\n req.getParameter(\"createDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, new Date());\n int enableBind =\n WebParameterUtils.validIntDataParameter(\"enableBind\",\n req.getParameter(\"enableBind\"),\n false, 0, 0);\n int allowedBClientRate =\n WebParameterUtils.validIntDataParameter(\"allowedBClientRate\",\n req.getParameter(\"allowedBClientRate\"),\n false, 0, 0);\n List<Map<String, String>> groupNameJsonArray =\n WebParameterUtils.checkAndGetJsonArray(\"groupNameJsonSet\",\n req.getParameter(\"groupNameJsonSet\"),\n TBaseConstants.META_VALUE_UNDEFINED, true);\n if ((groupNameJsonArray == null) || (groupNameJsonArray.isEmpty())) {\n throw new Exception(\"Null value of groupNameJsonSet, please set the value first!\");\n }\n HashMap<String, BdbConsumeGroupSettingEntity> inOffsetRstGroupEntityMap =\n new HashMap<>();\n for (int j = 0; j < groupNameJsonArray.size(); j++) {\n Map<String, String> groupObject = groupNameJsonArray.get(j);\n try {\n String groupName =\n WebParameterUtils.validGroupParameter(\"groupName\",\n groupObject.get(\"groupName\"),\n TBaseConstants.META_MAX_GROUPNAME_LENGTH,\n true, \"\");\n String groupCreateUser =\n WebParameterUtils.validStringParameter(\"createUser\",\n groupObject.get(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n false, createUser);\n Date groupCreateDate =\n WebParameterUtils.validDateParameter(\"createDate\",\n groupObject.get(\"createDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, createDate);\n int groupEnableBind =\n WebParameterUtils.validIntDataParameter(\"enableBind\",\n groupObject.get(\"enableBind\"),\n false, enableBind, 0);\n int groupAllowedBClientRate =\n WebParameterUtils.validIntDataParameter(\"allowedBClientRate\",\n groupObject.get(\"allowedBClientRate\"),\n false, allowedBClientRate, 0);\n inOffsetRstGroupEntityMap.put(groupName,\n new BdbConsumeGroupSettingEntity(groupName,\n groupEnableBind, groupAllowedBClientRate,\n \"\", groupCreateUser, groupCreateDate));\n } catch (Exception ee) {\n throw new Exception(sBuilder.append(\"Process data exception, data is :\")\n .append(groupObject.toString())\n .append(\", exception is : \")\n .append(ee.getMessage()).toString());\n }\n }\n if (inOffsetRstGroupEntityMap.isEmpty()) {\n throw new Exception(\"Not found record in groupNameJsonSet parameter\");\n }\n for (BdbConsumeGroupSettingEntity tmpGroupEntity\n : inOffsetRstGroupEntityMap.values()) {\n brokerConfManager.confAddBdbConsumeGroupSetting(tmpGroupEntity);\n }\n sBuilder.append(\"{\\\"result\\\":true,\\\"errCode\\\":0,\\\"errMsg\\\":\\\"OK\\\"}\");\n } catch (Exception e) {\n sBuilder.delete(0, sBuilder.length());\n sBuilder.append(\"{\\\"result\\\":false,\\\"errCode\\\":400,\\\"errMsg\\\":\\\"\")\n .append(e.getMessage()).append(\"\\\"}\");\n }\n return sBuilder;\n }", "public void createGroup(String group_name){\r\n\t\t/* \r\n\t\t * Create a new entry in group database using the information\r\n\t\t * given by the parameters\r\n\t\t */\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n \tContentValues values = new ContentValues();\r\n \t\r\n\t\tvalues.put(DBHelper.COLUMN_GROUPNAME, group_name);\r\n\t\t\r\n\t\tdb.insert(DBHelper.GROUP_TABLE_NAME, null, values);\r\n\t\tdb.close();\r\n\t}", "public void createShardGroup(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.CreateClusterShardGroupRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateShardGroupMethod(), getCallOptions()), request, responseObserver);\n }", "@Test\n public void testRecordSize() {\n System.out.println(\"recordSize\");\n RecordFile instance = new RecordFile();\n \n Assert.assertEquals(0, instance.recordSize(0));\n \n byte[] bytes = new byte[10];\n instance.insert(bytes, 0);\n Assert.assertEquals(10, instance.recordSize(0));\n \n bytes = new byte[12];\n instance.write(bytes, 0);\n Assert.assertEquals(12, instance.recordSize(0));\n \n bytes = new byte[100];\n instance.insert(bytes, 0);\n Assert.assertEquals(100, instance.recordSize(0));\n Assert.assertEquals(12, instance.recordSize(1));\n }", "WithCreate withDiskSizeGB(Integer diskSizeGB);" ]
[ "0.6300643", "0.58040655", "0.57761145", "0.5665423", "0.5637898", "0.54920304", "0.5488615", "0.5431199", "0.53992426", "0.5368274", "0.5347605", "0.5347605", "0.5340359", "0.5320464", "0.52987486", "0.52817065", "0.5258069", "0.5252902", "0.5242741", "0.5235668", "0.52042484", "0.5192683", "0.5189015", "0.5178375", "0.51708966", "0.5110228", "0.51068705", "0.51056445", "0.50987923", "0.50973845", "0.5090745", "0.5088152", "0.50874877", "0.5063634", "0.5050666", "0.5048722", "0.50353414", "0.5034873", "0.50284505", "0.50124586", "0.50087726", "0.49899176", "0.49730602", "0.49549955", "0.49534622", "0.49479926", "0.49388534", "0.4922123", "0.48964322", "0.48936138", "0.488895", "0.48827663", "0.48694536", "0.48692954", "0.48634544", "0.48621243", "0.48582986", "0.48551357", "0.48458698", "0.4845507", "0.48427656", "0.48340702", "0.4827413", "0.48159292", "0.48009172", "0.48001292", "0.47978768", "0.4796979", "0.47874004", "0.4772337", "0.4770655", "0.47512585", "0.4736162", "0.4732668", "0.47305357", "0.47264212", "0.4712724", "0.47100183", "0.4701008", "0.46986863", "0.46974438", "0.4691332", "0.46912295", "0.46885115", "0.46850133", "0.4681589", "0.46802232", "0.46800584", "0.46699867", "0.4663406", "0.46592999", "0.46479937", "0.46371254", "0.46351838", "0.46342584", "0.46332046", "0.46309698", "0.46171907", "0.46103558", "0.46096173" ]
0.5220397
20
Creates a new EventLikeTimingSpecifier object.
public EventLikeTimingSpecifier(TimedElement owner, boolean isBegin, float offset) { super(owner, isBegin, offset); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TimerType createTimerType();", "public TimedEvent() {\n this(DEFAULT_LABEL + nextTaskID, DEFAULT_DATE, DEFAULT_TIME); // assigning default values\n }", "BasicEvent createBasicEvent();", "Event createEvent();", "Event createEvent();", "public T caseTimeEventSpec(TimeEventSpec object) {\r\n\t\treturn null;\r\n\t}", "public final EObject ruleEventSpec() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_RegularEventSpec_0 = null;\r\n\r\n EObject this_TimeEventSpec_1 = null;\r\n\r\n EObject this_BuiltinEventSpec_2 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1894:28: ( (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1895:1: (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1895:1: (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec )\r\n int alt34=3;\r\n switch ( input.LA(1) ) {\r\n case RULE_ID:\r\n {\r\n alt34=1;\r\n }\r\n break;\r\n case 58:\r\n case 59:\r\n {\r\n alt34=2;\r\n }\r\n break;\r\n case 39:\r\n case 40:\r\n case 41:\r\n case 42:\r\n case 43:\r\n case 44:\r\n {\r\n alt34=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 34, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt34) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1896:5: this_RegularEventSpec_0= ruleRegularEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getRegularEventSpecParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleRegularEventSpec_in_ruleEventSpec4164);\r\n this_RegularEventSpec_0=ruleRegularEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_RegularEventSpec_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1906:5: this_TimeEventSpec_1= ruleTimeEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getTimeEventSpecParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleTimeEventSpec_in_ruleEventSpec4191);\r\n this_TimeEventSpec_1=ruleTimeEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_TimeEventSpec_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1916:5: this_BuiltinEventSpec_2= ruleBuiltinEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getBuiltinEventSpecParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBuiltinEventSpec_in_ruleEventSpec4218);\r\n this_BuiltinEventSpec_2=ruleBuiltinEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BuiltinEventSpec_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public TickEventMap(long tickRoundingFactor)\n {\n this.tickRoundingFactor = tickRoundingFactor;\n }", "public org.landxml.schema.landXML11.TimingDocument.Timing addNewTiming()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.TimingDocument.Timing target = null;\r\n target = (org.landxml.schema.landXML11.TimingDocument.Timing)get_store().add_element_user(TIMING$2);\r\n return target;\r\n }\r\n }", "EventUses createEventUses();", "public WorkTimeEvent() {\r\n super();\r\n }", "public Event(int eventType, double eventTime){\n this.eventType = eventType;\n this.eventTime = eventTime;\n }", "public com.google.protobuf.Duration.Builder getSpeechEventOffsetBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getSpeechEventOffsetFieldBuilder().getBuilder();\n }", "public EventTimeline() {\n this(0, 0, 91, 9);\n }", "@Override\n public TimerEvent createActivity(TBoundaryEvent src, Hashtable keyedContext){\n\n return new TimerEvent();\n\n }", "public TimedEvent(String label, Date date, Time time) {\n super(label, date); // using the constructor of its superclass\n this.setTime(time); // assigns the time argument value to the attribute\n }", "public Event() {}", "EventUse createEventUse();", "EventChannel create();", "public HopSpec(String name, String selector) {\n this(name, selector, true);\n }", "public EventTime(float interval, boolean repeat) {\n\t\tthis.timer = new Timer(interval);\n\t\tthis.repeat = repeat;\n\t}", "public Timer() {}", "SystemEvent createSystemEvent();", "@Test\r\n public void testTimestampDuration() throws Exception\r\n {\r\n Timestamp ts = new Timestamp(100110L).applyTimeOrigin(0L);\r\n\r\n GCEvent e = getGCEventToTest(ts, 7L);\r\n\r\n // time (dedicated accessor and generic field)\r\n assertEquals(100110L, e.getTime().longValue());\r\n assertEquals(100110L, ((Long)e.get(FieldType.TIME).getValue()).longValue());\r\n\r\n // offset (dedicated accessor and generic field)\r\n assertEquals(100110L, e.getOffset().longValue());\r\n assertEquals(\"100.110\", e.get(FieldType.OFFSET).getValue());\r\n\r\n // duration (dedicated accessor and generic field)\r\n assertEquals(7L, e.getDuration());\r\n assertEquals(7L, ((Long) e.get(FieldType.DURATION).getValue()).longValue());\r\n }", "Builder addTimeRequired(Duration value);", "public static TimeTakenLogEntry create() {\n return builder().build();\n }", "private TimeRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public final EObject ruleTimeEventSpec() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token lv_value_1_0=null;\r\n Enumerator lv_type_0_0 = null;\r\n\r\n Enumerator lv_unit_2_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1980:28: ( ( ( (lv_type_0_0= ruleTimeEventType ) ) ( (lv_value_1_0= RULE_INT ) ) ( (lv_unit_2_0= ruleTimeUnit ) )? ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1981:1: ( ( (lv_type_0_0= ruleTimeEventType ) ) ( (lv_value_1_0= RULE_INT ) ) ( (lv_unit_2_0= ruleTimeUnit ) )? )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1981:1: ( ( (lv_type_0_0= ruleTimeEventType ) ) ( (lv_value_1_0= RULE_INT ) ) ( (lv_unit_2_0= ruleTimeUnit ) )? )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1981:2: ( (lv_type_0_0= ruleTimeEventType ) ) ( (lv_value_1_0= RULE_INT ) ) ( (lv_unit_2_0= ruleTimeUnit ) )?\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1981:2: ( (lv_type_0_0= ruleTimeEventType ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1982:1: (lv_type_0_0= ruleTimeEventType )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1982:1: (lv_type_0_0= ruleTimeEventType )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1983:3: lv_type_0_0= ruleTimeEventType\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTimeEventSpecAccess().getTypeTimeEventTypeEnumRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleTimeEventType_in_ruleTimeEventSpec4401);\r\n lv_type_0_0=ruleTimeEventType();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTimeEventSpecRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"type\",\r\n \t\tlv_type_0_0, \r\n \t\t\"TimeEventType\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1999:2: ( (lv_value_1_0= RULE_INT ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2000:1: (lv_value_1_0= RULE_INT )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2000:1: (lv_value_1_0= RULE_INT )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2001:3: lv_value_1_0= RULE_INT\r\n {\r\n lv_value_1_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleTimeEventSpec4418); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getTimeEventSpecAccess().getValueINTTerminalRuleCall_1_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getTimeEventSpecRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_1_0, \r\n \t\t\"INT\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2017:2: ( (lv_unit_2_0= ruleTimeUnit ) )?\r\n int alt35=2;\r\n int LA35_0 = input.LA(1);\r\n\r\n if ( ((LA35_0>=82 && LA35_0<=85)) ) {\r\n alt35=1;\r\n }\r\n switch (alt35) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2018:1: (lv_unit_2_0= ruleTimeUnit )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2018:1: (lv_unit_2_0= ruleTimeUnit )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2019:3: lv_unit_2_0= ruleTimeUnit\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTimeEventSpecAccess().getUnitTimeUnitEnumRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleTimeUnit_in_ruleTimeEventSpec4444);\r\n lv_unit_2_0=ruleTimeUnit();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTimeEventSpecRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"unit\",\r\n \t\tlv_unit_2_0, \r\n \t\t\"TimeUnit\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Stopwatch(Ticker ticker) {\n/* 92 */ this.ticker = Preconditions.<Ticker>checkNotNull(ticker);\n/* */ }", "public StopWatch() {\n }", "StartEvent createStartEvent();", "PrioritySpecifierType createPrioritySpecifierType();", "public static FailureLogEvent create(final long pStartTime)\n {\n return new FailureLogEvent(pStartTime); \n }", "public static TimePickerBuilder create() {\n\t\treturn new TimePickerBuilder();\n\t}", "public Event(String description, String a) throws DateTimeParseException {\n super(description);\n this.at = Task.generateTime(a);\n }", "public NcrackClient withTimingTemplate(TimingTemplate template) {\n this.timing = Optional.of(template);\n return this;\n }", "public Eventd() {\n }", "public final EObject entryRuleTimeEventSpec() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleTimeEventSpec = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1969:2: (iv_ruleTimeEventSpec= ruleTimeEventSpec EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1970:2: iv_ruleTimeEventSpec= ruleTimeEventSpec EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getTimeEventSpecRule()); \r\n }\r\n pushFollow(FOLLOW_ruleTimeEventSpec_in_entryRuleTimeEventSpec4345);\r\n iv_ruleTimeEventSpec=ruleTimeEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleTimeEventSpec; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleTimeEventSpec4355); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public Event() {\n\n }", "public Event(EventType type, String eventKey) \n\t{\n\t\tsuper();\n\t\tthis.evntType = type;\n\t\tthis.key = eventKey;\n\t\tthis.uuid = UUID.randomUUID().toString();\n\t\tthis.milliseconds = 0;\n\t\tthis.repeated = false;\n\t}", "Event(int start, int end, String eventName) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = \"\";\r\n }", "TimerSchedule createTimerSchedule();", "public ScheduleEvent()\n\t{\n\n\t}", "public ApplianceTimedEvent generateUsageHour(int startTime, int span, Time interval) {\n\n Time start = new Time(startTime);\n Time currentTime = universe.getUniverseTime();\n /*BUG FIX by Darius... The generated time was in the past so we need to make sure\n the new TimedEvent is in the future. I have added this code to adjust it therefore.*/\n if(start.compare(currentTime) < 0){\n\n start = new Time(start.getCurrentHour(), start.getCurrentDay());\n if(start.compare(currentTime) < 0) start = start.advanceTime(new Time(0,0,1,0,0));\n }\n //Determine end time\n Time end = start.clone();\n\n end = end.advanceTime(new Time(span, 0, 0, 0, 0));\n\n //Create timed event to represent usage period\n ApplianceTimedEvent ate = new ApplianceTimedEvent(this,\n start,\n end,\n new ApplianceUseCommand(this),\n interval);\n\n //return timed event\n return ate;\n\n\n }", "public Builder setSpeechEventOffset(com.google.protobuf.Duration value) {\n if (speechEventOffsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n speechEventOffset_ = value;\n } else {\n speechEventOffsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public Event() {\n\t}", "TimeConstant createTimeConstant();", "public\n CreateEvent()\n {}", "public Event() {\r\n\r\n\t}", "public <T> Builder put(@NotNull String name, @NotNull T value) {\n event.put(name, value);\n return this;\n }", "public Event() {\n }", "public Event() {\n }", "Stream<T> assignEventTime(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> assigner);", "public ApplianceTimedEvent generateUsageHour() {\n Random r = new Random();\n return generateUsageHour(earliestUsageStart + r.nextInt(latestUsageStart - earliestUsageStart),\n duration);\n\n }", "public static AbsTime factory() throws Time.Ex_TimeNotAvailable\n {\n return new AbsTime();\n }", "public Timer() {\n\t\tthis.start = 0L;\n\t\tthis.end = 0L;\n\t}", "private void createWaveTimer()\n\t{\n\t\twaveTimer = new WaveTimer(\n\t\t\t\titemManager.getImage(INFERNAL_CAPE),\n\t\t\t\tthis,\n\t\t\t\tInstant.now().minus(Duration.ofSeconds(6)),\n\t\t\t\tnull\n\t\t);\n\t\tif (config.waveTimer())\n\t\t{\n\t\t\tinfoBoxManager.addInfoBox(waveTimer);\n\t\t}\n\t}", "EventItem(double absoluteTime_, double relativeTime_) {\n absoluteTime = absoluteTime_;\n relativeTime = relativeTime_;\n link = null;\n }", "BasicEvents createBasicEvents();", "Event(int start, int end, String eventName, String description) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = description;\r\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Duration,\n com.google.protobuf.Duration.Builder,\n com.google.protobuf.DurationOrBuilder>\n getSpeechEventOffsetFieldBuilder() {\n if (speechEventOffsetBuilder_ == null) {\n speechEventOffsetBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Duration,\n com.google.protobuf.Duration.Builder,\n com.google.protobuf.DurationOrBuilder>(\n getSpeechEventOffset(), getParentForChildren(), isClean());\n speechEventOffset_ = null;\n }\n return speechEventOffsetBuilder_;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorNegativeHoursOne(){\n \tCountDownTimer s = new CountDownTimer(-5, 5, 20);\n }", "private static void hackTooltipStartTiming(Tooltip tooltip) {\n try {\n Field fieldBehavior = tooltip.getClass().getDeclaredField(\"BEHAVIOR\");\n fieldBehavior.setAccessible(true);\n Object objBehavior = fieldBehavior.get(tooltip);\n\n Field fieldTimer = objBehavior.getClass().getDeclaredField(\"activationTimer\");\n fieldTimer.setAccessible(true);\n Timeline objTimer = (Timeline) fieldTimer.get(objBehavior);\n\n objTimer.getKeyFrames().clear();\n objTimer.getKeyFrames().add(new KeyFrame(new Duration(5)));\n } catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) {\n System.out.println(e);\n }\n }", "public interface Timer\n\textends SampledProbe<TimerSnapshot>\n{\n\t/**\n\t * Start timing something.\n\t */\n\tStopwatch start();\n}", "protected abstract T create(final double idealStartTime);", "public static AbsTime factory(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // The value to return.\n AbsTime result;\n\n // Check for ASAP and NEVER.\n if (t.equals(\"ASAP\")) {\n // No need to make a new object.\n result = ASAP;\n } else if (t.equals(\"NEVER\")) {\n // No need to make a new object.\n result = NEVER;\n } else if (t.equals(\"NOW\")) {\n // Make a new object using null constructor.\n result = new AbsTime();\n } else {\n // Not a special case. Need to make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }", "public EventQueue(){}", "SwTimerResource createSwTimerResource();", "CatchingEvent createCatchingEvent();", "public EatTime() {\n }", "@Test\n public void constructor() {\n Event event1 = new Event(\"Eat Apple\", \"2020-12-12 12:00\", \"2020-12-12 13:00\",\n false);\n Event event2 = new Event(\"Write paper\", \"2020-05-05 12:00\", \"2020-05-06 23:59\",\n true);\n\n assertEquals(\"Eat Apple\", event1.description);\n assertEquals(LocalDateTime.parse(\"2020-12-12 12:00\", Event.PARSER_FORMATTER), event1.startAt);\n assertEquals(LocalDateTime.parse(\"2020-12-12 13:00\", Event.PARSER_FORMATTER), event1.endAt);\n assertEquals(false, event1.isDone);\n assertEquals(\"Write paper\", event2.description);\n assertEquals(LocalDateTime.parse(\"2020-05-05 12:00\", Event.PARSER_FORMATTER), event2.startAt);\n assertEquals(LocalDateTime.parse(\"2020-05-06 23:59\", Event.PARSER_FORMATTER), event2.endAt);\n assertEquals(true, event2.isDone);\n }", "private TimeUtil() {}", "public T caseEventSpec(EventSpec object) {\r\n\t\treturn null;\r\n\t}", "public Duration()\n\t{\n\t}", "TimeUnit() {\n }", "Event generateEventWithName(String description) throws Exception {\n fordate++;\n return new Event(\n new Description(description),\n new StartTime(\"0800\"),\n new StartDate(Integer.toString(Integer.parseInt(\"100301\") + fordate)),\n new EndTime(\"1200\"),\n new EndDate(Integer.toString(Integer.parseInt(\"100301\") + fordate)),\n new Location(\"House of 1\"),\n new UniqueTagList(new Tag(\"tag\"))\n );\n }", "public ApplianceTimedEvent generateUsageHour(int startTime, int span) {\n\n return generateUsageHour(startTime, span, null);\n\n }", "Builder addTimeRequired(Duration.Builder value);", "public Duration() {\n this(0, 0, 0, 0, 0, 0.0);\n }", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorBadSecondsOne() {\n CountDownTimer s = new CountDownTimer(5, 5, 300);\n\n }", "public Event(double dt, Particle a, Particle b) { // create event\n\n if (Double.isNaN(dt))\n throw new IllegalEventException(\"illegal time: NaN\");\n\n if (dt < 0.0)\n throw new IllegalEventException(\"negative time\");\n\n this.eTime = dt + sTime;\n this.a = a;\n this.b = b;\n this.countA = (a != null) ? a.getCount() : 0;\n this.countB = (b != null) ? b.getCount() : 0;\n }", "Enumeration createEnumeration();", "public Builder setEvent(EventType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n event_ = value.getNumber();\n onChanged();\n return this;\n }", "public SimpleSandTimer(final TemporalAmount duration) {\n this(duration, Instant::now);\n }", "public Event() {\n // Unique random UID number for each event\n UID = UUID.randomUUID().toString().toUpperCase();\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n Calendar cal = Calendar.getInstance(tz);\n\n /* get time stamp */\n int hour = cal.get(Calendar.HOUR);\n int minute = cal.get(Calendar.MINUTE);\n int second = cal.get(Calendar.SECOND);\n\n /* check current time */\n currentTime = \"\";\n if (hour < 10) {\n currentTime += \"0\" + hour;\n }\n else {\n currentTime += \"\" + hour;\n }\n if (minute < 10) {\n currentTime += \"0\" + minute;\n }\n else {\n currentTime += \"\" + minute;\n }\n if (second < 10) {\n currentTime += \"0\" + second;\n }\n else {\n currentTime += \"\" + second;\n }\n\n /* get date stamp */\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n /* check date */\n currentDate = \"\";\n if (year < 10) {\n currentDate += \"0\" + year;\n }\n else {\n currentDate += \"\" + year;\n }\n\n if (month < 10) {\n currentDate += \"0\" + month;\n }\n else {\n currentDate += \"\" + month;\n }\n if (day < 10) {\n currentDate += \"0\" + day;\n }\n else {\n currentDate += \"\" + day;\n }\n }", "@Override\n protected AngularSpeed createMeasurement(double value, AngularSpeedUnit unit) {\n return new AngularSpeed(value, unit);\n }", "public SseEmitter(Long timeout)\n/* */ {\n/* 61 */ super(timeout);\n/* */ }", "Builder addTimeRequired(String value);", "public Event(Long timestamp) {\r\n \tthis.timestamp = timestamp;\r\n }", "public Event(){\n\n }", "public static RequirementType create(String name) {\n throw new IllegalStateException(\"Enum not extended\");\n }", "public void testCtor2() {\n assertNotNull(\"Failed to create a new WayPointEvent instance.\", new WayPointEvent(edge, 0, offset));\n }", "public interface LongTaskTimer extends Meter {\n static Builder builder(String name) {\n return new Builder(name);\n }\n\n /**\n * Create a timer builder from a {@link Timed} annotation.\n *\n * @param timed The annotation instance to base a new timer on.\n * @return This builder.\n */\n static Builder builder(Timed timed) {\n if (!timed.longTask()) {\n throw new IllegalArgumentException(\"Cannot build a long task timer from a @Timed annotation that is not marked as a long task\");\n }\n\n if (timed.value().isEmpty()) {\n throw new IllegalArgumentException(\"Long tasks instrumented with @Timed require the value attribute to be non-empty\");\n }\n\n return new Builder(timed.value())\n .tags(timed.extraTags())\n .description(timed.description().isEmpty() ? null : timed.description());\n }\n\n /**\n * Executes the callable {@code f} and records the time taken.\n *\n * @param f Function to execute and measure the execution time.\n * @param <T> The return type of the {@link Callable}.\n * @return The return value of {@code f}.\n * @throws Exception Any exception bubbling up from the callable.\n */\n default <T> T recordCallable(Callable<T> f) throws Exception {\n Sample sample = start();\n try {\n return f.call();\n } finally {\n sample.stop();\n }\n }\n\n /**\n * Executes the callable {@code f} and records the time taken.\n *\n * @param f Function to execute and measure the execution time.\n * @param <T> The return type of the {@link Supplier}.\n * @return The return value of {@code f}.\n */\n default <T> T record(Supplier<T> f) {\n Sample sample = start();\n try {\n return f.get();\n } finally {\n sample.stop();\n }\n }\n\n /**\n * Executes the runnable {@code f} and records the time taken.\n *\n * @param f Function to execute and measure the execution time with a reference to the\n * timer id useful for looking up current duration.\n */\n default void record(Consumer<Sample> f) {\n Sample sample = start();\n try {\n f.accept(sample);\n } finally {\n sample.stop();\n }\n }\n\n /**\n * Executes the runnable {@code f} and records the time taken.\n *\n * @param f Function to execute and measure the execution time.\n */\n default void record(Runnable f) {\n Sample sample = start();\n try {\n f.run();\n } finally {\n sample.stop();\n }\n }\n\n /**\n * Start keeping time for a task.\n *\n * @return A task id that can be used to look up how long the task has been running.\n */\n Sample start();\n\n /**\n * Mark a given task as completed.\n *\n * @param task Id for the task to stop. This should be the value returned from {@link #start()}.\n * @return Duration for the task in nanoseconds. A -1 value will be returned for an unknown task.\n */\n long stop(long task);\n\n /**\n * The current duration for an active task.\n *\n * @param task Id for the task to stop. This should be the value returned from {@link #start()}.\n * @param unit The time unit to scale the duration to.\n * @return Duration for the task in nanoseconds. A -1 value will be returned for an unknown task.\n */\n double duration(long task, TimeUnit unit);\n\n /**\n * @param unit The time unit to scale the duration to.\n * @return The cumulative duration of all current tasks in nanoseconds.\n */\n double duration(TimeUnit unit);\n\n /**\n * @return The current number of tasks being executed.\n */\n int activeTasks();\n\n @Override\n default Iterable<Measurement> measure() {\n return Arrays.asList(\n new Measurement(() -> (double) activeTasks(), Statistic.ACTIVE_TASKS),\n new Measurement(() -> duration(TimeUnit.NANOSECONDS), Statistic.DURATION)\n );\n }\n\n class Sample {\n private final LongTaskTimer timer;\n private final long task;\n\n public Sample(LongTaskTimer timer, long task) {\n this.timer = timer;\n this.task = task;\n }\n\n /**\n * Records the duration of the operation\n *\n * @return The duration that was stop in nanoseconds\n */\n public long stop() {\n return timer.stop(task);\n }\n\n public double duration(TimeUnit unit) {\n return timer.duration(task, unit);\n }\n }\n\n /**\n * Fluent builder for long task timers.\n */\n class Builder {\n private final String name;\n private final List<Tag> tags = new ArrayList<>();\n\n @Nullable\n private String description;\n\n private Builder(String name) {\n this.name = name;\n }\n\n /**\n * @param tags Must be an even number of arguments representing key/value pairs of tags.\n * @return The long task timer builder with added tags.\n */\n public Builder tags(String... tags) {\n return tags(Tags.of(tags));\n }\n\n /**\n * @param tags Tags to add to the eventual long task timer.\n * @return The long task timer builder with added tags.\n */\n public Builder tags(Iterable<Tag> tags) {\n tags.forEach(this.tags::add);\n return this;\n }\n\n /**\n * @param key The tag key.\n * @param value The tag value.\n * @return The long task timer builder with a single added tag.\n */\n public Builder tag(String key, String value) {\n tags.add(Tag.of(key, value));\n return this;\n }\n\n /**\n * @param description Description text of the eventual long task timer.\n * @return The long task timer builder with added description.\n */\n public Builder description(@Nullable String description) {\n this.description = description;\n return this;\n }\n\n /**\n * Add the long task timer to a single registry, or return an existing long task timer in that registry. The returned\n * long task timer will be unique for each registry, but each registry is guaranteed to only create one long task timer\n * for the same combination of name and tags.\n *\n * @param registry A registry to add the long task timer to, if it doesn't already exist.\n * @return A new or existing long task timer.\n */\n public LongTaskTimer register(MeterRegistry registry) {\n return registry.more().longTaskTimer(new Meter.Id(name, tags, null, description, Type.LONG_TASK_TIMER));\n }\n }\n}", "public Event(){\n \n }", "public EventException() {\n super(\"OOPS!!! The description or time of an event cannot be empty.\");\n }", "public Timeslot() {\n }", "public Event(int id, String eventName){\n this.id = id;\n this.event = eventName;\n this.location = null;\n this.date = 0;\n this.startTime = \"00:00 AM\";\n this.endTime = \"00:00 AM\";\n this.notes = \"No notes\";\n this.allDay = false;\n this.bigId = -1;\n this.alarm = -1;\n\n }", "T getEventTime();", "public SimulatorEvent( long timestamp ) {\r\n // Store the timestamp\r\n this.timestamp = timestamp;\r\n // Set the next sequence number (ignore wrap around :P)\r\n this.sequenceNumber = SimulatorEvent.nextSequenceNumber++;\r\n }", "protected WrapperTickEvent()\n {\n }" ]
[ "0.5191712", "0.5140379", "0.50828993", "0.5035257", "0.5035257", "0.49159712", "0.48985508", "0.47342888", "0.47286794", "0.46727148", "0.46371615", "0.46272126", "0.4604753", "0.4603431", "0.45677665", "0.4566478", "0.45611262", "0.45259213", "0.44909316", "0.44851342", "0.4474402", "0.44573647", "0.44544727", "0.4431078", "0.44122836", "0.44072238", "0.4406962", "0.44054344", "0.43858868", "0.4353824", "0.43484247", "0.43347952", "0.43269733", "0.4325157", "0.4321041", "0.42925552", "0.42863354", "0.42682078", "0.42660397", "0.42634103", "0.4255351", "0.4245821", "0.42444992", "0.42348883", "0.42303076", "0.42211157", "0.42178455", "0.42142096", "0.4204381", "0.4202594", "0.41986305", "0.41986305", "0.41898906", "0.41817716", "0.41595444", "0.414409", "0.414281", "0.41426528", "0.4141624", "0.41378194", "0.41320178", "0.41317448", "0.41299722", "0.41273895", "0.4127024", "0.41252092", "0.41169563", "0.41124946", "0.41085523", "0.41063204", "0.4101647", "0.40860176", "0.40835845", "0.40791848", "0.40698004", "0.4069463", "0.40673357", "0.40669066", "0.40629658", "0.40626636", "0.40581307", "0.40427285", "0.40340987", "0.40286636", "0.40210307", "0.4013552", "0.40112552", "0.40094045", "0.4006042", "0.40001073", "0.3998412", "0.3994642", "0.39933577", "0.39888144", "0.39756438", "0.39717123", "0.39540467", "0.39476812", "0.39466032", "0.39456388" ]
0.66005474
0
Returns whether this timing specifier is eventlike (i.e., if it is an eventbase, accesskey or a repeat timing specifier).
public boolean isEventCondition() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@objid (\"0480e45a-6886-42c0-b13c-78b8ab8f713d\")\n boolean isIsEvent();", "public boolean isTimeSpecificEvent() {\n return timeSpecificEvent;\n }", "boolean hasEvent();", "public boolean hasEventTimestamp() {\n return fieldSetFlags()[14];\n }", "boolean getIsEventLegendary();", "public boolean hasEventId() {\n return fieldSetFlags()[13];\n }", "public boolean hasSpeechEventOffset() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "private boolean isWholeGameEvent(String eventType){\n return eventType.equals(\"Stonks\") || eventType.equals(\"Riot\") || eventType.equals(\"Mutate\") || eventType.equals(\"WarpReality\");\n }", "public boolean check(EventType event);", "public boolean isEvent(String eventName) {\r\n\t\tboolean result = false;\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.getName().equals(eventName)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public boolean isAvailable(Event event){\n\t\tfor(Event e : events){\n\t\t\tif(e.timeOverlap(event))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isCorrectEvent()\n {\n return m_fCorrectEvent;\n }", "boolean eventEnabled(AWTEvent e) {\n return false;\n }", "boolean isSetEvent();", "public boolean handleEvent(Event e){\r\n\t\tthis.handledEvents++;\r\n\t\tif(this.ptModes.contains(super.getMode())){\r\n\t\t\thandler.handleEvent(e);\r\n\t\t\tif(this.handledEvents == this.nrOfExpEvents){\r\n\t\t\t\thandler.finish(this);\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif(first == null){\r\n\t\t\t\tfirst = e.getTime();\r\n\t\t\t}else{\r\n\t\t\t\tlast = e.getTime();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.handledEvents == nrOfExpEvents){\r\n\t\t\t\tthis.tripTTime = last - first;\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract boolean canHandle(Object event);", "@Override\n\tpublic boolean isEventStarted() {\n\t\treturn status>=EventStarted;\n\t}", "@java.lang.Override\n public boolean hasSpeechEventOffset() {\n return speechEventOffset_ != null;\n }", "protected boolean shouldStartEditingTimer(EventObject event) {\n\tif((event instanceof MouseEvent) &&\n\t SwingUtilities.isLeftMouseButton((MouseEvent)event)) {\n\t MouseEvent me = (MouseEvent)event;\n\n\t return (me.getClickCount() == 1 &&\n\t\t inHitRegion(me.getX(), me.getY()));\n\t}\n\treturn false;\n }", "public boolean overlap(Event e)\n\t{\n\t\tTimeInterval compare = e.getTI();\n\t\tif ((compare.st.getHour() <= this.st.getHour()) && (this.st.getHour() <= compare.et.getHour()))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse if ((this.st.getHour() <= compare.st.getHour()) && (compare.st.getHour() <= this.et.getHour()))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSelfMessageProcessingEvent();", "protected boolean isValidOnTimerSetting(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 2)) return false;\n\t\treturn true;\n\t}", "static boolean isInteresting(String mode, RecordedEvent event) {\n String name = event.getEventType().getName();\n switch(mode) {\n case \"cpu\":\n return (name.equals(\"jdk.ExecutionSample\") || name.equals(\"jdk.NativeMethodSample\")) &&\n !isGradlePollThread(event.getThread(\"sampledThread\"));\n case \"heap\":\n return (name.equals(\"jdk.ObjectAllocationInNewTLAB\") || name.equals(\"jdk.ObjectAllocationOutsideTLAB\")) &&\n !isGradlePollThread(event.getThread(\"eventThread\"));\n default:\n throw new UnsupportedOperationException(event.toString());\n }\n }", "public boolean areControlsTriggered ( @NotNull final KeyEvent event )\n {\n return SwingUtils.isShortcut ( event ) == isCtrl &&\n SwingUtils.isAlt ( event ) == isAlt &&\n SwingUtils.isShift ( event ) == isShift;\n }", "public boolean isTriggered ( @NotNull final KeyEvent event )\n {\n return areControlsTriggered ( event ) && isKeyTriggered ( event );\n }", "public boolean hasKeyComponents(){\n\n // Event is valid if it has an event name date\n if(event == null || date == 0 || startTime == null || endTime == null){\n return false;\n }\n return true;\n }", "private boolean isClashing() {\n\t\tArrayList<Item> events = getEvents();\n\t\tfor (Item t : events) {\n\t\t\tif (isTimeOverlap(t)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasTimeSpoutBoltF() {\n return ((bitField0_ & 0x08000000) == 0x08000000);\n }", "public boolean hasTimeSpoutBoltF() {\n return ((bitField0_ & 0x08000000) == 0x08000000);\n }", "public boolean hasTuesdayTimeRanges() {\n return fieldSetFlags()[4];\n }", "boolean hasExchangeTime();", "public boolean hasRelatedIMEventMsg() {\n return fieldSetFlags()[8];\n }", "public boolean isMovement() {\n return isMovementEvent;\n }", "private static boolean hasHtcPenEventClass(final Context context) {\r\n\t\ttry {\r\n\t\t\tif (null != Class.forName(PEN_EVENT_CLASS_NAME)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t} catch (final ClassNotFoundException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean impliesIgnoreEventTypeMask( WrapperEventPermission p2 )\n {\n if ( getName().equals( p2.getName() ) )\n {\n return true;\n }\n \n if ( p2.getName().endsWith( \"*\" ) )\n {\n if ( getName().startsWith( p2.getName().substring( 0, p2.getName().length() - 1 ) ) )\n {\n return true;\n }\n }\n return false;\n }", "public boolean hasTimeBoltHBoltE() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "@Override\n protected boolean acceptEvent(BuilderEvent event)\n {\n if (getEventType() == null)\n {\n return false;\n }\n assert event != null : \"Event is null!\";\n\n Class<?> eventClass = event.getClass();\n try\n {\n Method method = eventClass.getMethod(METHOD_TYPE);\n Object eventType = method.invoke(event);\n if (eventType instanceof Enum<?>)\n {\n return getEventType().equals(((Enum<?>) eventType).name());\n }\n }\n catch (Exception ex)\n {\n // All exceptions cause the event to be not accepted\n }\n\n return false;\n }", "public boolean hasTimeBoltHBoltE() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "boolean hasTimeBoltHBoltE();", "public static boolean isSingleDayEvent(String test) {\n String[] components = test.split(\" \");\n String startTime = components[1];\n\n //If the format is dd/mm/yyyy hhmm k\n if (components.length == 3) {\n String duration = components[2];\n return endOnTheSameDay (startTime, duration);\n //If the format is dd/mm/yyyy hhmm to hhmm\n } else if (components.length == 4) {\n String endtime = components[3];\n return endTimeAfterStart(startTime, endtime);\n } else {\n return false;\n }\n }", "public boolean isSameEvent(Event event) {\n if (this == event) {\n return true;\n } else if (event == null) {\n return false;\n } else {\n return this.getName().equals(event.getName())\n && this.getTime().equals(event.getTime());\n }\n }", "public boolean match(Event e);", "private boolean isTimeKey(int keyCode) {\n\t\tif (keyCode >= 48 && keyCode <= 57) {\n\t\t\treturn true;\n\t\t}\n\t\t// 0 - 9 keys on number pad\n\t\tif (keyCode >= 96 && keyCode <= 105) {\n\t\t\treturn true;\n\t\t}\n\t\t// QWERTYUIOP keys\n\t\tif (keyCode == 81 || keyCode == 87 || keyCode == 69 || keyCode == 82\n\t\t\t\t|| keyCode == 84 || keyCode == 89 || keyCode == 85\n\t\t\t\t|| keyCode == 37 || keyCode == 79 || keyCode == 80) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isEventsSuppressed() {\r\n\t\treturn eventsSuppressed;\r\n\t}", "boolean hasDesiredTime();", "public boolean shouldTrack( ScannedRobotEvent e )\r\n {\n return ( enemy.none() || e.getDistance() < enemy.getDistance() - 70\r\n || e.getName().equals( enemy.getName() ) );\r\n }", "boolean eventEnabled(AWTEvent e) {\n if (e.id == ActionEvent.ACTION_PERFORMED) {\n if ((eventMask & AWTEvent.ACTION_EVENT_MASK) != 0 ||\n actionListener != null) {\n return true;\n }\n return false;\n }\n return super.eventEnabled(e);\n }", "boolean typeIsTimed() {\n return true;\n }", "@Override\n public boolean isCorrespondingTo(Event event){\n String n = event.getName();\n return n.equals(name) || n.equals(name_lt) || n.equals(name_gt);\n }", "public boolean isTime() {\n return false;\n }", "private boolean isTimeOverlap(Item t) {\n\t\treturn t.getEndDate().equals(event.getEndDate());\n\t}", "boolean hasTime();", "boolean hasTime();", "public boolean isKeyTriggered ( @NotNull final KeyEvent event )\n {\n return keyCode != null && event.getKeyCode () == keyCode;\n }", "public boolean timeValidated(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tLocalTime stime = e.sTime;\n\t\tLocalTime etime = e.eTime;\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent evnt = list.get(i);\n\n\t\t\t\tif(e.sTime.equals(evnt.sTime) || e.eTime.equals(evnt.eTime)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t//check for start times\n\t\t\t\tif(e.sTime.isBefore(evnt.sTime)) {\n\t\t\t\t\tif(!e.eTime.isBefore(evnt.sTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//check for end time\n\t\t\t\tif(e.sTime.isAfter(evnt.sTime)) {\n\t\t\t\t\tif(!e.sTime.isAfter(evnt.eTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isRoomEvent() {\n return roomEvent;\n }", "public boolean hasMondayTimeRanges() {\n return fieldSetFlags()[3];\n }", "public boolean isClockDriver(EdifCell cell) {\n String str = cell.getName().toLowerCase();\n if (str.startsWith(\"bufg\"))\n return true;\n if (str.startsWith(\"dcm\"))\n return true;\n if (str.contains(\"dll\"))\n return true;\n return false;\n }", "public final EObject ruleEventSpec() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_RegularEventSpec_0 = null;\r\n\r\n EObject this_TimeEventSpec_1 = null;\r\n\r\n EObject this_BuiltinEventSpec_2 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1894:28: ( (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1895:1: (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1895:1: (this_RegularEventSpec_0= ruleRegularEventSpec | this_TimeEventSpec_1= ruleTimeEventSpec | this_BuiltinEventSpec_2= ruleBuiltinEventSpec )\r\n int alt34=3;\r\n switch ( input.LA(1) ) {\r\n case RULE_ID:\r\n {\r\n alt34=1;\r\n }\r\n break;\r\n case 58:\r\n case 59:\r\n {\r\n alt34=2;\r\n }\r\n break;\r\n case 39:\r\n case 40:\r\n case 41:\r\n case 42:\r\n case 43:\r\n case 44:\r\n {\r\n alt34=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 34, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt34) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1896:5: this_RegularEventSpec_0= ruleRegularEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getRegularEventSpecParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleRegularEventSpec_in_ruleEventSpec4164);\r\n this_RegularEventSpec_0=ruleRegularEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_RegularEventSpec_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1906:5: this_TimeEventSpec_1= ruleTimeEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getTimeEventSpecParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleTimeEventSpec_in_ruleEventSpec4191);\r\n this_TimeEventSpec_1=ruleTimeEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_TimeEventSpec_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1916:5: this_BuiltinEventSpec_2= ruleBuiltinEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getEventSpecAccess().getBuiltinEventSpecParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBuiltinEventSpec_in_ruleEventSpec4218);\r\n this_BuiltinEventSpec_2=ruleBuiltinEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BuiltinEventSpec_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "private boolean shouldProcessEvent(TimeSeriesEvent e) {\r\n return modCountOnLastRefresh < e.getSeriesModCount();\r\n }", "public boolean isSystemKey() {\n switch (this) {\n case MENU:\n case SOFT_RIGHT:\n case HOME:\n case BACK:\n case CALL:\n case ENDCALL:\n case VOLUME_UP:\n case VOLUME_DOWN:\n case VOLUME_MUTE:\n case MUTE:\n case POWER:\n case HEADSETHOOK:\n case MEDIA_PLAY:\n case MEDIA_PAUSE:\n case MEDIA_PLAY_PAUSE:\n case MEDIA_STOP:\n case MEDIA_NEXT:\n case MEDIA_PREVIOUS:\n case MEDIA_REWIND:\n case MEDIA_RECORD:\n case MEDIA_FAST_FORWARD:\n case CAMERA:\n case FOCUS:\n case SEARCH:\n case BRIGHTNESS_DOWN:\n case BRIGHTNESS_UP:\n case MEDIA_AUDIO_TRACK:\n return true;\n default:\n return false;\n }\n }", "public boolean isWakeKey() {\n switch (this) {\n case BACK:\n case MENU:\n case WAKEUP:\n case PAIRING:\n case STEM_1:\n case STEM_2:\n case STEM_3:\n return true;\n default:\n return false;\n }\n }", "@Override\n\tpublic boolean \t\t\thasPriorityOver (EventI e)\n\t{\n\t\treturn false;\n\t}", "boolean hasPerformAt();", "public boolean hasSecondsWatched() {\n return fieldSetFlags()[4];\n }", "public static boolean hasPenEvent(final Context context) {\r\n\t\treturn hasHtcPenEventClass(context) && hasPenFeature(context);\r\n\t}", "boolean handlesEventsOfType(RuleEventType type);", "private boolean eventOccured(History.HistoryView stateHistory){\n\t\tif(step-lastEvent >= maxStepInterval){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\t// Check deaths of our footmen\n\t\t\tboolean event = deathOccured(stateHistory, playernum);\n\t\t\t// Check deaths of enemy footmen\n\t\t\tevent = event || deathOccured(stateHistory, playernum);\n\t\t\t// Check if footmen has been hurt\n\t\t\tevent = event || hasBeenDamaged(stateHistory, playernum);\n\t\t\treturn event;\n\t\t}\n\t}", "@Override\n protected boolean isPersonalTell(ChatEvent evt){\n String type = evt.getType();\n return \"tell\".equals(type) || \"say\".equals(type) || \"ptell\".equals(type);\n }", "public boolean isBeepOnInvalidKeyEntry()\n {\n return this.beepOnInvalidKeyEntry;\n }", "public boolean isAcceptedEventType(String classType) {\n\t\treturn acceptedEventTypes.containsKey(classType);\n\t}", "public boolean isSleeping ( ) {\n\t\treturn extract ( handle -> handle.isSleeping ( ) );\n\t}", "public boolean isTimeToSelect();", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "@Override\n public boolean isCorrespondingTo(String eventName) {\n return eventName.equals(name) || eventName.equals(name_lt) || eventName.equals(name_gt) ;\n }", "@DISPID(27)\r\n\t// = 0x1b. The runtime will prefer the VTID if present\r\n\t@VTID(32)\r\n\tboolean enableEventTriggers();", "public boolean isMeasureTime() ;", "@Override\n public boolean isPhysical() {\n return getViewProvider().isEventSystemEnabled();\n }", "boolean hasUseTime();", "boolean hasUseTime();", "public Boolean IsInterrupt() {\n Random r = new Random();\n int k = r.nextInt(100);\n //10%\n if (k <= 10) {\n return true;\n }\n return false;\n }", "boolean hasTimespanConfig();", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "protected boolean isValidOnTimerReservationSetting(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 1)) return false;\n\t\treturn true;\n\t}", "protected boolean isValidOnTimerReservationSetting(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 1)) return false;\n\t\treturn true;\n\t}", "public boolean takeControl() {\r\n\t\treturn (StandardRobot.ts.isPressed() || (StandardRobot.us.getRange() < 25));\r\n\t}", "public boolean shouldTrack( ScannedRobotEvent e )\n {\n // track if we have no enemy, the one we found is significantly\n // closer, or we scanned the one we've been tracking.\n return ( enemy.none() || e.getDistance() < enemy.getDistance() - 70\n || e.getName().equals( enemy.getName() ) );\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isEnabled(UIEvent.Type aType) { return getEventAdapter(true).isEnabled(aType); }", "String getEventType();", "public boolean onTouchEvent(MotionEvent event) {\n\n int action = MotionEventCompat.getActionMasked(event);\n\n switch (action) {\n case (MotionEvent.ACTION_DOWN):\n\n return true;\n case (MotionEvent.ACTION_MOVE):\n\n return true;\n case (MotionEvent.ACTION_UP):\n\n return true;\n case (MotionEvent.ACTION_CANCEL):\n\n return true;\n case (MotionEvent.ACTION_OUTSIDE):\n\n return true;\n default:\n return super.onTouchEvent(event);\n }\n }", "private\n boolean\n allowEvents()\n {\n return itsAllowEvents;\n }", "boolean onEvent(Event event);", "public boolean isMaybeNotDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_NOTDONTENUM) != 0;\n }", "boolean hasCurrentStateTime();", "public boolean hasDontEnum() {\n checkNotUnknown();\n return (flags & ATTR_DONTENUM_ANY) != 0;\n }", "public boolean hasSundayTimeRanges() {\n return fieldSetFlags()[9];\n }", "boolean hasTimeSpoutBoltF();", "final public static boolean isEventEditable(final CalendarEvent event) {\r\n\t\treturn dateManager.after(event.getStartTime(), new Date());\r\n\t}", "private boolean isChessclubSpecificEvent(GameEvent evt){\r\n return (evt instanceof CircleEvent) || (evt instanceof ArrowEvent);\r\n }" ]
[ "0.6913395", "0.66512144", "0.6174055", "0.6047103", "0.5984566", "0.58558893", "0.57958424", "0.57616436", "0.57478577", "0.5733912", "0.56320405", "0.5592417", "0.5534323", "0.5508593", "0.5501032", "0.54693455", "0.545296", "0.5446846", "0.543594", "0.5406284", "0.5400761", "0.5368546", "0.5367593", "0.5362005", "0.5346851", "0.5330263", "0.5325985", "0.5283354", "0.52823824", "0.5280451", "0.5277539", "0.5276649", "0.52756786", "0.5265647", "0.5256556", "0.5248528", "0.52325", "0.52289504", "0.52142787", "0.5206452", "0.52027106", "0.5188964", "0.5186738", "0.5182625", "0.5173297", "0.51693106", "0.5153771", "0.51509434", "0.5143884", "0.5139571", "0.51202524", "0.51169324", "0.51169324", "0.5115311", "0.5114714", "0.5105115", "0.51005375", "0.5096879", "0.50639737", "0.50473726", "0.50469905", "0.50463694", "0.50362307", "0.5035703", "0.5032887", "0.5029535", "0.5018656", "0.5004532", "0.50036573", "0.5000071", "0.49944866", "0.4987043", "0.49809223", "0.49746227", "0.49736604", "0.4943981", "0.49423832", "0.4940729", "0.49368593", "0.49368593", "0.49260488", "0.49257314", "0.49193835", "0.49163222", "0.49163222", "0.49100897", "0.49061725", "0.4892995", "0.48909003", "0.488851", "0.48850632", "0.4883807", "0.4882366", "0.48816127", "0.4874703", "0.48693845", "0.48663512", "0.4864329", "0.48635697", "0.4852632" ]
0.61523724
3
Invoked to resolve an eventlike timing specifier into an instance time.
public abstract void resolve(Event e);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getEventTime();", "public T caseTimeEventSpec(TimeEventSpec object) {\r\n\t\treturn null;\r\n\t}", "public abstract double sensingTime();", "public EventLikeTimingSpecifier(TimedElement owner, boolean isBegin,\n float offset) {\n super(owner, isBegin, offset);\n }", "public abstract double calculateStartTime();", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "TimerType createTimerType();", "public abstract State getStateAtTime(double t);", "private TimeUtil() {}", "default void onCustomStartTimeChanged(LocalTime startTime) {}", "public void setTime(){\r\n \r\n }", "@Override\n\tpublic long getResolution() {\n\t\treturn TIMER_RESOLUTION;\n\t}", "public long getEventTime();", "public void setTime(double time) {_time = time;}", "public void newTimeKey() {\r\n\t\ttimeKeyA = System.nanoTime();\r\n\t}", "static void GetSecondTime() {\n\t}", "public TimedEvent(String label, Date date, Time time) {\n super(label, date); // using the constructor of its superclass\n this.setTime(time); // assigns the time argument value to the attribute\n }", "@DISPID(17)\r\n\t// = 0x11. The runtime will prefer the VTID if present\r\n\t@VTID(23)\r\n\tjava.lang.String lastInstanceElapsedRunTime();", "@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}", "private void reportTime(final DeviceUI.ReportKind kind, final int duration) {\n\t\tif (compositeUnderDisplay != null\n\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\tfinal Display display = top.getDisplay();\n\t\t\tif (display != null && !display.isDisposed()) {\n\t\t\t\tdisplay.asyncExec(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * since this method is run asynchronously, check that\n\t\t\t\t\t\t * the composite was not disposed in the meanwhile\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (!compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t\t\tfinal DeviceUI ui = (DeviceUI) compositeUnderDisplay;\n\t\t\t\t\t\t\tui.updateTimers(deviceUnderDisplay, kind, duration);\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}", "public WorkTimeEvent() {\r\n super();\r\n }", "public double getTime(int timePt);", "public void timeChanged();", "public Unit<Time> second() {return second;}", "Stream<T> assignEventTime(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> assigner);", "void updateActiveTime(int T);", "public TimeField(SdpField sf) {\n\t\tsuper(sf);\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.288 -0500\", hash_original_method = \"01A3FB6B1C784C6B589498BF3E72AF89\", hash_generated_method = \"39FC440E592AD958D3DA1840FF8C82F1\")\n \nprivate static long normalizeTime(long theTime) {\n return theTime;\n }", "abstract public int getTime();", "TimeConstant createTimeConstant();", "public abstract Date getNextFireTime();", "public InspectorEvent (double time,double clock, Inspector insp, factoryComponent fc,EventTypes type){\n eventfTime = time + clock;\n eventsTime = clock;\n this.fc = fc;\n this.insp = insp;\n eventType = type;\n }", "public default int getDuration(int casterLevel){ return Reference.Values.TICKS_PER_SECOND; }", "public double getStartTime();", "@Test\r\n public void testTimestampDuration() throws Exception\r\n {\r\n Timestamp ts = new Timestamp(100110L).applyTimeOrigin(0L);\r\n\r\n GCEvent e = getGCEventToTest(ts, 7L);\r\n\r\n // time (dedicated accessor and generic field)\r\n assertEquals(100110L, e.getTime().longValue());\r\n assertEquals(100110L, ((Long)e.get(FieldType.TIME).getValue()).longValue());\r\n\r\n // offset (dedicated accessor and generic field)\r\n assertEquals(100110L, e.getOffset().longValue());\r\n assertEquals(\"100.110\", e.get(FieldType.OFFSET).getValue());\r\n\r\n // duration (dedicated accessor and generic field)\r\n assertEquals(7L, e.getDuration());\r\n assertEquals(7L, ((Long) e.get(FieldType.DURATION).getValue()).longValue());\r\n }", "public Object enterTransform(Object value) {\n return new Timed(value, this.scheduler.now(this.unit), this.unit);\n }", "Instant getStart();", "public T caseTimeOfExpr(TimeOfExpr object) {\n\t\treturn null;\n\t}", "public static void setTime(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}", "@Override\n public float getTimeInSeconds() {\n return getTime() * INVERSE_TIMER_RESOLUTION;\n }", "public TimedEvent() {\n this(DEFAULT_LABEL + nextTaskID, DEFAULT_DATE, DEFAULT_TIME); // assigning default values\n }", "Timer getTimer();", "private static void hackTooltipStartTiming(Tooltip tooltip) {\n try {\n Field fieldBehavior = tooltip.getClass().getDeclaredField(\"BEHAVIOR\");\n fieldBehavior.setAccessible(true);\n Object objBehavior = fieldBehavior.get(tooltip);\n\n Field fieldTimer = objBehavior.getClass().getDeclaredField(\"activationTimer\");\n fieldTimer.setAccessible(true);\n Timeline objTimer = (Timeline) fieldTimer.get(objBehavior);\n\n objTimer.getKeyFrames().clear();\n objTimer.getKeyFrames().add(new KeyFrame(new Duration(5)));\n } catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) {\n System.out.println(e);\n }\n }", "public double getTime() {return _time;}", "public static void startTiming(CheckType theCheck, UUID identifier) {\n if (!ENABLED) return;\n purge(theCheck);\n\n STARTED_TIMINGS.get(theCheck).put(identifier, System.nanoTime());\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "@Override\n\tpublic void visit(TimeKeyExpression arg0) {\n\t\t\n\t}", "public DateTime getOccurrenceTime() { return occurrenceTime; }", "public long elapsedTime(TimeUnit desiredUnit) {\n/* 153 */ return desiredUnit.convert(elapsedNanos(), TimeUnit.NANOSECONDS);\n/* */ }", "@Test\n @Override\n public void testTime(TestContext ctx) {\n testDecodeGeneric(ctx, \"test_time\", Duration.class, Duration.ofHours(18).plusMinutes(45).plusSeconds(2));\n }", "public interface ITimeProvider {\n\t\n\t/**\n\t * \n\t * @return time in miliseconds since epoch\n\t */\n\tlong getTime();\n}", "public int getTickCount(String symbol);", "public abstract int getTicks();", "@Override protected void doProcess(Time systemTime) {\n }", "protected abstract T create(final double idealStartTime);", "public static void setTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}", "int SystemTimeToVariantTime(SYSTEMTIME lpSystemTime, DoubleByReference pvtime);", "public ClockTime(Timestamp d) {\n super(Property.CLOCKTIME_PROPERTY);\n calValue = Calendar.getInstance();\n calValue.setTimeInMillis(d.getTime());\n normalize();\n }", "@Override\r\n\tpublic void preExcute(long arg0) {\n\t\tstartTime = arg0;\r\n\r\n\t}", "public interface TimeSource {\n public void setTime(int hours, int minutes, int seconds);\n}", "private static float timeForEvent(float simulationTime, int amountEvents) {\r\n float humAmount = (amountEvents * 2) - 1;\r\n float timeInMilli = simulationTime * 3600f;\r\n\r\n return timeInMilli / humAmount;\r\n }", "public static void addTime(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, TIME, value);\r\n\t}", "protected Time() {\n\t}", "protected void setupTime() {\n this.start = System.currentTimeMillis();\n }", "Posn getDuration();", "long getTimeSpoutBoltF();", "public T caseTimeExpr(TimeExpr object) {\n\t\treturn null;\n\t}", "public void timeChanged( int newTime );", "public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }", "public int getTime() { return _time; }", "BusinessCenterTime getValuationTime();", "long getInhabitedTime();", "double getFullTime();", "public SysTimeDescriptor() {\n super();\n _xmlName = \"sysTime\";\n _elementDefinition = true;\n org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\n org.exolab.castor.mapping.FieldHandler handler = null;\n org.exolab.castor.xml.FieldValidator fieldValidator = null;\n //-- initialize attribute descriptors\n \n //-- initialize element descriptors\n \n //-- _syncMode\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(bean.SyncMode.class, \"_syncMode\", \"syncMode\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n SysTime target = (SysTime) object;\n return target.getSyncMode();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n SysTime target = (SysTime) object;\n target.setSyncMode( (bean.SyncMode) value);\n } catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance(java.lang.Object parent) {\n return null;\n }\n };\n desc.setSchemaType(\"bean.SyncMode\");\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n addSequenceElement(desc);\n \n //-- validation code for: _syncMode\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _currTime\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(bean.CurrTime.class, \"_currTime\", \"currTime\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n SysTime target = (SysTime) object;\n return target.getCurrTime();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n SysTime target = (SysTime) object;\n target.setCurrTime( (bean.CurrTime) value);\n } catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance(java.lang.Object parent) {\n return null;\n }\n };\n desc.setSchemaType(\"bean.CurrTime\");\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n addSequenceElement(desc);\n \n //-- validation code for: _currTime\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _ntpServers\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(bean.NtpServers.class, \"_ntpServers\", \"ntpServers\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n SysTime target = (SysTime) object;\n return target.getNtpServers();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n SysTime target = (SysTime) object;\n target.setNtpServers( (bean.NtpServers) value);\n } catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance(java.lang.Object parent) {\n return null;\n }\n };\n desc.setSchemaType(\"bean.NtpServers\");\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n addSequenceElement(desc);\n \n //-- validation code for: _ntpServers\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _vitcSource\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(bean.VitcSource.class, \"_vitcSource\", \"vitcSource\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n SysTime target = (SysTime) object;\n return target.getVitcSource();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n SysTime target = (SysTime) object;\n target.setVitcSource( (bean.VitcSource) value);\n } catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance(java.lang.Object parent) {\n return null;\n }\n };\n desc.setSchemaType(\"bean.VitcSource\");\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n addSequenceElement(desc);\n \n //-- validation code for: _vitcSource\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _sysTimeTimezone\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(bean.SysTimeTimezone.class, \"_sysTimeTimezone\", \"timezone\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n SysTime target = (SysTime) object;\n return target.getSysTimeTimezone();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n SysTime target = (SysTime) object;\n target.setSysTimeTimezone( (bean.SysTimeTimezone) value);\n } catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance(java.lang.Object parent) {\n return null;\n }\n };\n desc.setSchemaType(\"bean.SysTimeTimezone\");\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n addSequenceElement(desc);\n \n //-- validation code for: _sysTimeTimezone\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n }", "java.lang.String getPlayTime();", "public abstract TimeObject add(long time, int val);", "java.lang.String getArrivalTime();", "java.lang.String getArrivalTime();", "public static void main(String[] args) {\n System.out.println(\"Eight Hours in Millis (Direct Conversion): \" + (8*60*60*1000));\n\n long eightHoursInMillisTimeUnit = TimeUnit.HOURS.toMillis(8);\n System.out.println(\"Eight Hours in Millis using TimeUnit: \" + eightHoursInMillisTimeUnit);\n }", "public double getTime() { return time; }", "@Override\n public void referenceClockTimeSync(int timeSyncSeqNum, long value) {\n }", "public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }", "@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}", "double time() throws Throwable;", "@java.lang.Override\n public long getTime() {\n return instance.getTime();\n }", "public static void addTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, TIME, value);\r\n\t}", "public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }", "Expression getReaction_time_parm();", "@Override\n\tpublic void visit(TimeValue arg0) {\n\t\t\n\t}", "@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }", "void setBegin(net.opengis.gml.x32.TimeInstantPropertyType begin);", "private void getOneToteTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public static void registerTiming(CheckType theCheck) {\n if (!ENABLED) return;\n\n STARTED_TIMINGS.put(theCheck, new ConcurrentHashMap<>());\n TIMINGS.put(theCheck, ConcurrentHashMap.newKeySet());\n }", "io.opencannabis.schema.temporal.TemporalInstant.Instant getDesiredTime();", "public interface TimeProvider\n{\n\n\t/** property name for the time being changed\n\t * \n\t */\n\tpublic static final String TIME_CHANGED_PROPERTY_NAME = \"TIME_CHANGED\";\n\t\n\t\n\t/** propery name for the time-period being changed\n\t * \n\t */\n\tpublic static final String PERIOD_CHANGED_PROPERTY_NAME = \"PERIOD_CHANGED\";\n\n\t\n\t/**\n\t * obtain the time period covered by the data\n\t * @return the time period\n\t */\n\tpublic TimePeriod getPeriod();\n\t\n\t/** identifier for this time provider. We create this so that, when restored, an xy plot \n\t * can loop through the open plots to determine which time provider to connect to\n\t * \n\t */\n\tpublic String getId();\n\n\t/**\n\t * obtain the current time\n\t * @return now\n\t */\n\tpublic HiResDate getTime();\n\t\n\t/** let somebody start listening to our changes\n\t * \n\t * @param listener the new listener\n\t * @param propertyType the (optional) property to listen to. Use null if you don't mind\n\t */\n\tpublic void addListener(PropertyChangeListener listener, String propertyType);\n\n\t/** let somebody stop listening to our changes\n\t * \n\t * @param listener the old listener\n\t * @param propertyType the (optional) property to stop listening to. Use null if you don't mind\n\t */\n\tpublic void removeListener(PropertyChangeListener listener, String propertyType);\n\t\n}", "public Map<String, Object> initiateEventWithProperTime(final String programName,\n final String duration, final String eventMode, final boolean precoolOpted)\n throws ParseException;", "public double getSecs( );", "Object getClock();", "public void handleRecordTime(int type, long time) {\n if (type == 4) {\n this.mFingerDown = time;\n } else if (type == 5) {\n this.mFingerSuccess = time;\n } else if (this.mStartTime != 0) {\n if (type != 0) {\n if (type != 1) {\n if (type != 2) {\n if (type != 3) {\n if (type != 6) {\n if (type != 7) {\n if (type == 8 && this.mKeyExitAnim == 0 && this.mKeyGoingAway > 0) {\n this.mKeyExitAnim = time;\n }\n } else if (this.mKeyGoingAway == 0) {\n this.mKeyGoingAway = time;\n }\n } else if (this.mKeyguardDrawn == 0 && this.mBlockScreenOnBegin > 0) {\n this.mKeyguardDrawn = time;\n }\n } else if (this.mBlockScreenOnEnd == 0 && this.mBlockScreenOnBegin > 0) {\n this.mBlockScreenOnEnd = time;\n }\n } else if (this.mBlockScreenOnBegin == 0) {\n this.mBlockScreenOnBegin = time;\n }\n } else if (this.mSetDisplayStateEnd == 0 && this.mSetDisplayStateBegin > 0) {\n this.mSetDisplayStateEnd = time;\n }\n } else if (this.mSetDisplayStateBegin == 0) {\n this.mSetDisplayStateBegin = time;\n }\n }\n }", "protected abstract ACATimer receiveAt(Port p_, Object evt_, double time_);", "public interface TimeEventListener {\r\n\tpublic void onTimeEvent(long count);\r\n}" ]
[ "0.5975329", "0.5815201", "0.5732477", "0.5524577", "0.5472743", "0.54337436", "0.5341201", "0.5313228", "0.52984154", "0.5193016", "0.5182229", "0.5177661", "0.51744056", "0.51617116", "0.51106435", "0.50945807", "0.5090557", "0.50811815", "0.5070383", "0.5055263", "0.50536364", "0.50276625", "0.49965003", "0.49933618", "0.4990945", "0.49786043", "0.49654296", "0.49644434", "0.49387386", "0.4929805", "0.49288052", "0.49205628", "0.4915984", "0.49149632", "0.49135852", "0.49122983", "0.48890004", "0.48678923", "0.48624167", "0.4857925", "0.48494434", "0.48460284", "0.4842829", "0.4841893", "0.48382258", "0.48311082", "0.48283368", "0.48261362", "0.48203784", "0.48165098", "0.48154464", "0.48141307", "0.4809695", "0.48039433", "0.4795944", "0.47935805", "0.47893357", "0.47797707", "0.4778299", "0.47756433", "0.47738564", "0.47714007", "0.47689915", "0.47620186", "0.47608957", "0.47522807", "0.47522774", "0.47502598", "0.47495663", "0.47417003", "0.473695", "0.47354636", "0.47343573", "0.47336522", "0.47303486", "0.47260973", "0.47257027", "0.47257027", "0.47181106", "0.47165686", "0.4714364", "0.4712587", "0.47123826", "0.47102407", "0.470861", "0.47059244", "0.4704842", "0.47045198", "0.47023517", "0.47021556", "0.4701965", "0.4698249", "0.46981812", "0.46965048", "0.4691727", "0.46904963", "0.46809748", "0.46805486", "0.46756804", "0.46730503", "0.46721295" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
private static int getChangingConfigs(Resources resources, int n) { TypedValue typedValue = sTmpTypedValue; synchronized (typedValue) { resources.getValue(n, sTmpTypedValue, true); return AnimatorInflater.sTmpTypedValue.changingConfigurations; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "public void testLoadOrder() throws Exception {\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\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\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\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\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "protected void runBeforeIteration() {}", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void additionalProcessing() {\n\t}", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "private Sort() { }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.55355585", "0.5485665", "0.5452997", "0.5429638", "0.5362422", "0.53089017", "0.528692", "0.52693963", "0.52290606", "0.5193277", "0.5192284", "0.51888967", "0.51690257", "0.5143558", "0.5143558", "0.5113301", "0.506931", "0.50692594", "0.5067579", "0.50606716", "0.5049869", "0.50416094", "0.5038304", "0.50233275", "0.496308", "0.49622124", "0.49238843", "0.4923565", "0.49196935", "0.49105394", "0.49089512", "0.4903638", "0.4903572", "0.49032423", "0.49011973", "0.4887298", "0.48838064", "0.48817047", "0.4881467", "0.4880007", "0.48682097", "0.48632714", "0.4861999", "0.48596114", "0.48493177", "0.48366487", "0.4831251", "0.48301774", "0.48292986", "0.4826926", "0.48255134", "0.4812676", "0.48124668", "0.48060873", "0.48021543", "0.480071", "0.47951633", "0.47856152", "0.47790146", "0.4777946", "0.4775125", "0.4759137", "0.47552705", "0.47533035", "0.47521695", "0.47483465", "0.47476852", "0.47474247", "0.4745454", "0.47431105", "0.47418043", "0.47383016", "0.4732551", "0.47230822", "0.4718114", "0.47107625", "0.47098723", "0.4708912", "0.47057915", "0.46988872", "0.46984923", "0.4694931", "0.4694882", "0.46935546", "0.46918264", "0.46916258", "0.46894163", "0.46890303", "0.46883813", "0.468224", "0.4678564", "0.46692353", "0.46677783", "0.4666053", "0.46658677", "0.46634436", "0.4654929", "0.46531817", "0.46523714", "0.46523327", "0.465196" ]
0.0
-1
/ Enabled aggressive block sorting
private static PropertyValuesHolder getPVH(TypedArray object, int n, int n2, int n3, String object2) { Object object3 = ((TypedArray)object).peekValue(n2); boolean bl = object3 != null; int n4 = bl ? ((TypedValue)object3).type : 0; object3 = ((TypedArray)object).peekValue(n3); boolean bl2 = object3 != null; int n5 = bl2 ? ((TypedValue)object3).type : 0; if (n == 4) { n = bl && AnimatorInflater.isColorType(n4) || bl2 && AnimatorInflater.isColorType(n5) ? 3 : 0; } boolean bl3 = n == 0; if (n == 2) { String string2 = ((TypedArray)object).getString(n2); String string3 = ((TypedArray)object).getString(n3); object = string2 == null ? null : new PathParser.PathData(string2); object3 = string3 == null ? null : new PathParser.PathData(string3); if (object == null) { if (object3 == null) return null; } if (object != null) { PathDataEvaluator pathDataEvaluator = new PathDataEvaluator(); if (object3 != null) { if (!PathParser.canMorph((PathParser.PathData)object, (PathParser.PathData)object3)) { object = new StringBuilder(); ((StringBuilder)object).append(" Can't morph from "); ((StringBuilder)object).append(string2); ((StringBuilder)object).append(" to "); ((StringBuilder)object).append(string3); throw new InflateException(((StringBuilder)object).toString()); } object = PropertyValuesHolder.ofObject((String)object2, (TypeEvaluator)pathDataEvaluator, object, object3); return object; } else { object = PropertyValuesHolder.ofObject((String)object2, (TypeEvaluator)pathDataEvaluator, object); } return object; } else { if (object3 == null) return null; object = PropertyValuesHolder.ofObject((String)object2, (TypeEvaluator)new PathDataEvaluator(), object3); } return object; } object3 = null; if (n == 3) { object3 = ArgbEvaluator.getInstance(); } if (bl3) { if (bl) { float f = n4 == 5 ? ((TypedArray)object).getDimension(n2, 0.0f) : ((TypedArray)object).getFloat(n2, 0.0f); if (bl2) { float f2 = n5 == 5 ? ((TypedArray)object).getDimension(n3, 0.0f) : ((TypedArray)object).getFloat(n3, 0.0f); object = PropertyValuesHolder.ofFloat((String)object2, f, f2); } else { object = PropertyValuesHolder.ofFloat((String)object2, f); } } else { float f = n5 == 5 ? ((TypedArray)object).getDimension(n3, 0.0f) : ((TypedArray)object).getFloat(n3, 0.0f); object = PropertyValuesHolder.ofFloat((String)object2, f); } } else if (bl) { n = n4 == 5 ? (int)((TypedArray)object).getDimension(n2, 0.0f) : (AnimatorInflater.isColorType(n4) ? ((TypedArray)object).getColor(n2, 0) : ((TypedArray)object).getInt(n2, 0)); if (bl2) { n2 = n5 == 5 ? (int)((TypedArray)object).getDimension(n3, 0.0f) : (AnimatorInflater.isColorType(n5) ? ((TypedArray)object).getColor(n3, 0) : ((TypedArray)object).getInt(n3, 0)); object = PropertyValuesHolder.ofInt((String)object2, n, n2); } else { object = PropertyValuesHolder.ofInt((String)object2, n); } } else if (bl2) { n = n5 == 5 ? (int)((TypedArray)object).getDimension(n3, 0.0f) : (AnimatorInflater.isColorType(n5) ? ((TypedArray)object).getColor(n3, 0) : ((TypedArray)object).getInt(n3, 0)); object = PropertyValuesHolder.ofInt((String)object2, n); } else { object = null; } object2 = object; if (object == null) return object2; object2 = object; if (object3 == null) return object2; ((PropertyValuesHolder)object).setEvaluator((TypeEvaluator)object3); return object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortBlocks(){\n\t\tCurrentSets = getCurrentSets();\n\t\tif(CurrentSets == 1){\n\t\t\treturn;\n\t\t}else{\n\t\t\tfor(i = 0; i < CurrentSets - 1; i++){\n\t\t\t\tfor(j = i + 1; j < CurrentSets; j++){\n\t\t\t\t\tif((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16))){\n\t\t\t\t\t\ttemp = blocks[j];\n\t\t\t\t\t\tblocks[j] = blocks[i];\n\t\t\t\t\t\tblocks[i] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sort()throws InterruptedException{\n\t\tfor (int i = 0; i < a.length - 1; i++) {\n\t\t\tint minPos = minPosition(i);\n\t\t\tsortStateLock.lock();\n\t\t\ttry{\n\t\t\t\tswap(minPos, i);\n\t\t\t\t// For animation\n\t\t\t\talreadySorted = i;\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tsortStateLock.unlock();\n\t\t \t\t}\n\t\t\tpause(2);\n\t }\n }", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "private PerfectMergeSort() {}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "public void radixSorting() {\n\t\t\n\t}", "public void sort() {\n }", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "public void setBubbleSort() \n\t{\n\t\tint last = recordCount + NOT_FOUND; //array.length() - 1\n\n\t\twhile(last > RESET_VALUE) //last > 0\n\t\t{\n\t\t\tint localIndex = RESET_VALUE; \n\t\t\tboolean swap = false;\n\n\t\t\twhile(localIndex < last) \n\t\t\t{\n\t\t\t\tif(itemIDs[localIndex] > itemIDs[localIndex + 1]) \n\t\t\t\t{\n\t\t\t\t\tsetSwapArrayElements(localIndex);\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t\t\tlocalIndex++;\n\t\t\t}\n\n\t\t\tif(swap == false) \n\t\t\t{\n\t\t\t\tlast = RESET_VALUE;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tlast = last + NOT_FOUND;\n\t\t\t}\n\n\t\t}//END while(last > RESET_VALUE)\n\t\treturn;\n\t}", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "@Override\n\tvoid sort(int[] array, SortingVisualizer display) {\n\t\tSystem.out.println(\"a\");\n\t\tboolean sorted = false;\n\t\tboolean h = true;\n\t\twhile (sorted == false) {\nh=true;\n\t\t\t// System.out.println(\"1\");\n\t\t\tRandom x = new Random();\n\t\t\tint y = x.nextInt(array.length);\n\n\t\t\tint el1 = array[y];\n\t\t\tint z = x.nextInt(array.length);\n\t\t\tint el2 = array[z];\n\n\t\t\tarray[y] = el2;\n\t\t\tarray[z] = el1;\n\t\t\tfor (int i = 0; i < array.length - 1; i++) {\n/*\n\t\t\t\tif (array[i] < array[i + 1]) {\n\n\t\t\t\t\th = true;\n\n\t\t\t\t}*/\n\n\t\t\t\tif (array[i] > array[i + 1]) {\n\t\t\t\t\th = false;\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (h == true) {\n\n\t\t\t\tsorted = true;\n\t\t\t}\n\n\t\t\tdisplay.updateDisplay();\n\t\t\t\n\t\t}\n\t}", "public List<SimulinkBlock> generateBlockOrder(UnmodifiableCollection<SimulinkBlock> unmodifiableCollection,\n\t\t\tSet<SimulinkBlock> unsortedBlocks) {\n\t\tSet<SimulinkBlock> unsorted = new HashSet<SimulinkBlock>();\n\t\tSet<SimulinkBlock> unsortedRev = new HashSet<SimulinkBlock>();\n\t\tList<SimulinkBlock> sorted = new LinkedList<SimulinkBlock>();\n\n\t\t// start with source blocks without input\n\t\tfor (SimulinkBlock block : unmodifiableCollection) {\n\t\t\tif (block.getInPorts().isEmpty()) {\n\t\t\t\tsorted.add(block);\n\t\t\t} else {\n\t\t\t\tunsorted.add(block);\n\t\t\t}\n\t\t}\n\n\t\tint sizeBefore = 0;\n\t\tint sizeAfter = 0;\n\t\tdo {\n\t\t\tsizeBefore = unsorted.size();\n\t\t\tfor (SimulinkBlock myBlock : unsorted) {\n\t\t\t\tunsortedRev.add(myBlock);\n\t\t\t}\n\t\t\tunsorted.clear();\n\t\t\tfor (SimulinkBlock block : unsortedRev) {\n\t\t\t\tboolean allPredeccesorsAvailable = specialBlockChecking(block, sorted);\n\t\t\t\tif (allPredeccesorsAvailable) {\n\t\t\t\t\tsorted.add(block);\n\t\t\t\t} else {\n\t\t\t\t\tunsorted.add(block);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsizeAfter = unsorted.size();\n\t\t\tunsortedRev.clear();\n\t\t} while ((!(unsorted.isEmpty())) && (!(sizeBefore == sizeAfter)));\n\n\t\tfor (SimulinkBlock block : unsorted) {\n\t\t\t// TODO sort the last unsorted blocks\n\t\t\tPluginLogger\n\t\t\t\t\t.info(\"Currently unsorted after sorting : \" + block.getName() + \" of type \" + block.getType());\n\t\t\tsorted.add(block);\n\t\t\tunsortedBlocks.add(block);\n\t\t}\n\t\treturn sorted;\n\t}", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n\t\tpublic void run() {\n\t\t\tfor (int i = 0; i < 1000000; i++) {\n\t\t\t\tint[] a = Util.generateRandomArray(500, 200000);\n\t\t\t\tint[] b = a.clone();\n\t\t\t\t\n\t\t\t\ta = sort(a);\n\t\t\t\tArrays.sort(b);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < b.length; j++) {\n\t\t\t\t\tUtil.Assert(a[j] == b[j], \"shit\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Heap sort ok\");\n\t\t}", "private Sort() { }", "public void sort() {\n\t\tSystem.out.println(\"Quick Sort Algorithm invoked\");\n\n\t}", "@Override\n public void sortCurrentList(FileSortHelper sort) {\n }", "public String doSort();", "public void sortArray() {\n\t\tSystem.out.println(\"QUICK SORT\");\n\t}", "@Override\n public void sort() throws IOException {\n long i = 0;\n // j represents the turn of writing the numbers either to g1 or g2 (or viceversa)\n long j = 0;\n long runSize = (long) Math.pow(2, i);\n long size;\n\n long startTime = System.currentTimeMillis();\n\n System.out.println(\"Strart sorting \"+ this.inputFileName);\n\n while(i <= Math.ceil(Math.log(this.n) / Math.log(2))){\n j = 0;\n do{\n size = merge(runSize, destinationFiles[(int)j % 2]);\n j += 1;\n }while (size/2 == runSize);\n\n System.out.println(\"iteration: \" + i + \", Run Size:\" + runSize + \", Total time elapsed: \" + (System.currentTimeMillis() - startTime));\n i += 1;\n runSize = (long) Math.pow(2, i);\n swipe();\n }\n System.out.println(\"The file has been sorted! Total time elapsed: \"+(System.currentTimeMillis() - startTime));\n\n destinationFiles[0].close();\n destinationFiles[1].close();\n originFiles[0].close();\n originFiles[1].close();\n\n createFile(OUT_PATH +inputFileName);\n copyFile(new File(originFileNames[0]), new File(\"out/TwoWayMergesort/OUT_\"+inputFileName));\n\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "void order() {\n for (int i = 0; i < numVertices; i++) {\n if (simp[i][numParams] < simp[best][numParams]) {\n best = i;\n }\n if (simp[i][numParams] > simp[worst][numParams]) {\n worst = i;\n }\n }\n nextWorst = best;\n for (int i = 0; i < numVertices; i++) {\n if (i != worst) {\n if (simp[i][numParams] > simp[nextWorst][numParams]) {\n nextWorst = i;\n }\n }\n }\n }", "public void shellSort(int[] a) \n {\n int increment = a.length / 2;\n while (increment > 0) \n {\n \n for (int i = increment; i < a.length; i++) //looping over the array\n {\n int j = i;\n int temp = a[i]; // swapping the values to a temporary array\n try\n {\n if(!orderPanel) // checking for Descending order\n {\n while (j >= increment && a[j - increment] > temp) \n {\n a[j] = a[j - increment]; //swapping the values\n thread.sleep(100);\n repaint();\n this.setThreadState();\n j = j - increment;\n }\n }\n \n else\n {\n while (j >= increment && a[j - increment] < temp) //checking for Ascending order\n {\n a[j] = a[j - increment];\n thread.sleep(200);\n repaint();\n this.setThreadState();\n j = j - increment;\n }\n \n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n a[j] = temp;\n }\n \n if (increment == 2) \n {\n increment = 1;\n } \n else \n {\n increment *= (5.0 / 11);\n }\n }\n }", "void sort();", "void sort();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tif (currentSize >= size)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"MERGESORT END\");\n\t\t\t\t\ttimer.stop();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// deciding the block to to merged\n\t\t\t\telse if (mergeSortCodeFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tif (leftStart >= size - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrentSize = currentSize * 2;\n\t\t\t\t\t\tleftStart = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tmid = leftStart + currentSize - 1;\n\t\t\t\t\t\tif (leftStart + 2 * currentSize - 1 >= size - 1)\n\t\t\t\t\t\t\trightEnd = size - 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\trightEnd = leftStart + 2 * currentSize - 1;\n\t\t\t\t\t\tbox.setBaseColor(BASE_COLOR);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tmergeSortDelayFlag1 = 1;\n\t\t\t\t\t\tmergeSortdelay1 = 0;\n\t\t\t\t\t\tmergeSortCodeFlag = 0;\n\t\t\t\t\t\tif(mid >= rightEnd)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tleftStart += 2 * currentSize;\n\t\t\t\t\t\t\tmergeSortDelayFlag1 = 0;\n\t\t\t\t\t\t\tmergeSortCodeFlag = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (mergeSortDelayFlag1 == 1)\n\t\t\t\t{\n\t\t\t\t\tmergeSortdelay1++;\n\t\t\t\t\tif (mergeSortdelay1 >= DELAY)\n\t\t\t\t\t{\n\t\t\t\t\t\tl = leftStart;\n\t\t\t\t\t\tm = mid;\n\t\t\t\t\t\tr = rightEnd;\n\t\t\t\t\t\tmergeSortDelayFlag1 = 0;\n\t\t\t\t\t\tmergeInitializeFlag = 1;\n\t\t\t\t\t\tleftStart += 2 * currentSize;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Merging the block selected\n\t\t\t\t\n\t\t\t\t// initializing the variables needed by the merge block \n\t\t\t\telse if (mergeInitializeFlag == 1)\n\t\t\t\t{\n\t\t\t\t\ti = l;\n\t\t\t\t\tj = m + 1;\n\t\t\t\t\tindex = 0;\n\t\t\t\t\tcurrentDownCount = 0;\n\t\t\t\t\tindexRightCount = 0;\n\t\t\t\t\tcurrentLeftCount = 0;\n\t\t\t\t\tcurrentUpCount = 0;\n\t\t\t\t\tcodeFlag = 1;\n\t\t\t\t\trightFlag = 0;\n\t\t\t\t\trightBlockFlag = 0;\n\t\t\t\t\tdownFlag = 0;\n\t\t\t\t\tupFlag = 0;\n\t\t\t\t\tleftFlag = 0;\n\t\t\t\t\tdelay1 = 0;\n\t\t\t\t\tdelayFlag1 = 0;\n\t\t\t\t\tdelay2 = 0;\n\t\t\t\t\tdelayFlag2 = 0;\n\t\t\t\t\tcolorFlag1 = 1;\n\t\t\t\t\tcolorDelayFlag1 = 0;\n\t\t\t\t\tcolorDelay1 = 0;\n\t\t\t\t\tcolorFlag2 = 1;\n\t\t\t\t\tcolorDelayFlag2 = 0;\n\t\t\t\t\tcolorDelay2 = 0;\n\t\t\t\t\tbox.setBaseColor(BASE_COLOR);\n\t\t\t\t\tbox.setColorRange(l, m, BLOCK_COLOR1);\n\t\t\t\t\tbox.setColorRange(m + 1, r, BLOCK_COLOR2);\n\t\t\t\t\tpaintBox();\n\t\t\t\t\t\n\t\t\t\t\tmergeFlag = 1;\n\t\t\t\t\tmergeInitializeFlag = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// actual merging starts here\n\t\t\t\telse if (mergeFlag == 1)\n\t\t\t\t{\n\t\t\t\t\t// step zero check whether to continue merging or not\n\t\t\t\t\tif (j > r)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (i >= j)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmergeFlag = 0;\n\t\t\t\t\t\t\tmergeSortCodeFlag = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (colorFlag1 == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbox.getRectangle(i).setColor(END_COLOR);\n\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\tcolorDelay1 = 0;\n\t\t\t\t\t\t\tcolorDelayFlag1 = 1;\n\t\t\t\t\t\t\tcolorFlag1 = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (colorDelayFlag1 == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcolorDelay1++;\n\t\t\t\t\t\t\tif (colorDelay1 >= DELAY)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\t\tcolorDelayFlag1 = 0;\n\t\t\t\t\t\t\t\tcolorFlag1 = 1;\n\t\t\t\t\t\t\t\tcolorDelay1 = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (i >= j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (j > r)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmergeFlag = 0;\n\t\t\t\t\t\t\tmergeSortCodeFlag = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (colorFlag2 == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbox.getRectangle(j).setColor(END_COLOR);\n\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\tcolorDelay2 = 0;\n\t\t\t\t\t\t\tcolorDelayFlag2 = 1;\n\t\t\t\t\t\t\tcolorFlag2 = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (colorDelayFlag2 == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcolorDelay2++;\n\t\t\t\t\t\t\tif (colorDelay2 >= DELAY)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tj++;\n\t\t\t\t\t\t\t\tcolorDelayFlag2 = 0;\n\t\t\t\t\t\t\t\tcolorFlag2 = 1;\n\t\t\t\t\t\t\t\tcolorDelay2 = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Step one Check whether a[i] <= a[j]\n\t\t\t\t\telse if (codeFlag == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tRectangle currRect = box.getRectangle(i);\n\t\t\t\t\t\tRectangle scanRect = box.getRectangle(j);\n\t\t\t\t\t\tcurrRect.setColor(FOCUS_COLOR1);\n\t\t\t\t\t\tscanRect.setColor(FOCUS_COLOR2);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tdelayFlag2 = 1;\n\t\t\t\t\t\tcodeFlag = 0;\n\t\t\t\t\t\tdelay2 = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (delayFlag2 == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelay2++;\n\t\t\t\t\t\tif (delay2 >= DELAY)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRectangle currRect = box.getRectangle(i);\n\t\t\t\t\t\t\tRectangle scanRect = box.getRectangle(j);\n\t\t\t\t\t\t\tif (currRect.getData() < scanRect.getData())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbox.getRectangle(i).setColor(END_COLOR);\n\t\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\t\tdelay1 = 0;\n\t\t\t\t\t\t\t\tdelayFlag2 = 0;\n\t\t\t\t\t\t\t\tdelayFlag1 = 1;\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\tbox.getRectangle(j).setColor(END_COLOR);\n\t\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\t\tdelayFlag2 = 0;\n\t\t\t\t\t\t\t\tdownFlag = 1;\n\t\t\t\t\t\t\t\tcurrentDownCount = 0;\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\telse if (delayFlag1 == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelay1++;\n\t\t\t\t\t\tif (delay1 >= DELAY)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcodeFlag = 1;\n\t\t\t\t\t\t\tdelayFlag1 = 0;\n\t\t\t\t\t\t\ti++;\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// Moving the first rectangle on right down (if it was smaller than the first one on the left)\n\t\t\t\t\telse if (downFlag == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbox.addOffsetRectangle(j, 0, YCHANGE);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tcurrentDownCount += YCHANGE;\n\t\t\t\t\t\tif (currentDownCount >= DOWN)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint excess = currentDownCount - DOWN;\n\t\t\t\t\t\t\tbox.addOffsetRectangle(j, 0, -excess);\n\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\tdownFlag = 0;\n\t\t\t\t\t\t\trightBlockFlag = 1;\n\t\t\t\t\t\t\tindexRightCount = 0;\n\t\t\t\t\t\t\tindex = j - 1;\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// moving each of the rectangles in the block to the right(between the two smallest rectangle on both side)\n\t\t\t\t\t// including the first rectangle\n\t\t\t\t\telse if (rightBlockFlag == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (index < i)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trightBlockFlag = 0;\n\t\t\t\t\t\t\tleftFlag = 1;\n\t\t\t\t\t\t\tcurrentLeftCount = 0;\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\trightFlag = 1;\n\t\t\t\t\t\t\trightBlockFlag = 0;\n\t\t\t\t\t\t\tindexRightCount = 0;\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// moving a rectangle in the block to the right\n\t\t\t\t\telse if (rightFlag == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbox.addOffsetRectangle(index, XCHANGE, 0);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tindexRightCount += XCHANGE;\n\t\t\t\t\t\tif (indexRightCount >= width)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint excess = indexRightCount - width;\n\t\t\t\t\t\t\tbox.addOffsetRectangle(index, -excess, 0);\n\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\trightFlag = 0;\n\t\t\t\t\t\t\trightBlockFlag = 1;\n\t\t\t\t\t\t\tindex--;\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// moving the rectangle left (the smallest in the un-merged block)\n\t\t\t\t\telse if (leftFlag == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbox.addOffsetRectangle(j, -XCHANGE, 0);\n\t\t\t\t\t\tcurrentLeftCount += XCHANGE;\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tif (currentLeftCount >= width * (j - i))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint excess = currentLeftCount - width * (j - i);\n\t\t\t\t\t\t\tbox.addOffsetRectangle(j, excess, 0);\n\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tleftFlag = 0;\n\t\t\t\t\t\t\tupFlag = 1;\n\t\t\t\t\t\t\tcurrentUpCount = 0;\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// moving the rectangle up (the smallest in the un-merged block)\n\t\t\t\t\telse if (upFlag == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbox.addOffsetRectangle(j, 0, -YCHANGE);\n\t\t\t\t\t\tcurrentUpCount += YCHANGE;\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tif (currentUpCount >= DOWN)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint excess = currentUpCount - DOWN;\n\t\t\t\t\t\t\tbox.addOffsetRectangle(j, 0, excess);\n\t\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tRectangle smallestRect = box.getRectangle(j);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int t = j - 1; t >= i; t--)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbox.setRectangle(box.getRectangle(t), t + 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbox.setRectangle(smallestRect, i);\n\t\t\t\t\t\t\tupFlag = 0;\n\t\t\t\t\t\t\tcodeFlag = 1;\n\t\t\t\t\t\t\tj++;\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "public void sortByLength()\n {\n boolean swapMade;//has a swap been made in the most recent pass?\n \n //repeat looking for swaps\n do\n {\n swapMade=false;//just starting this pass, so no swap yet\n \n //go through entire array. looking for swaps that need to be done\n for(int i = 0; i<currentRide-1; i++)\n {\n //if the other RideLines has less people\n if(rides[i].getCurrentPeople()<rides[i+1].getCurrentPeople())\n {\n // standard swap, using a temporary. swap with less people\n RideLines temp = rides[i];\n rides[i]=rides[i+1];\n rides[i+1]=temp;\n \n swapMade=true;//remember this pass made at least one swap\n }\n \n } \n }while(swapMade);//until no swaps were found in the most recent past\n \n redrawLines();//redraw the image\n \n }", "private void sortByAmount(){\n int stopPos = 0;\n while(colours.size()-stopPos > 0){\n int inARow = 1;\n for(int i = colours.size() - 1; i > stopPos; i--){\n if(colours.get(i-1).getAmount() < colours.get(i).getAmount()){\n rgb temp = new rgb(colours.get(i-1));\n colours.set(i-1, colours.get(i));\n colours.set(i, temp);\n }else{\n inARow++;\n }\n }\n stopPos++;\n if(inARow == colours.size()){\n break;\n }\n }\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "public void selectionSort()\r\n {\r\n for(int x = 0; x < numItems; x++)\r\n {\r\n int smallestLoc = x;\r\n for(int y = x+1; y<numItems; y++)\r\n {\r\n if(mArray[y]< mArray[smallestLoc])\r\n {\r\n smallestLoc = y;\r\n }\r\n }\r\n int temp = mArray[x];\r\n mArray[x] = mArray[smallestLoc];\r\n mArray[smallestLoc] = temp;\r\n }\r\n }", "public void sortCompetitors(){\n\t\t}", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "@Override\n\tvoid sort(int[] arr, SortingVisualizer display) {\n\t\tint current = 0;\n\t\tint x;\n\t\tint y;\n\t\tboolean complete = false;\n\t\twhile(complete == false) {\n\t\t\tcurrent = 0;\n\t\t\tcomplete = true;\n\t\t\tfor(int i = 0 ; i < arr.length; i ++) {\n\t\t\t\tdisplay.updateDisplay();\n\t\t\t\tif(arr[current] > arr[i]) {\n\t\t\t\t\tx = arr[i];\n\t\t\t\t\ty = arr[current];\n\t\t\t\t\tarr[i] = y;\n\t\t\t\t\tarr[current] = x;\n\t\t\t\t\tcomplete = false;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\tcurrent = i;\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public BucketSort()\n {\n for(int i = 0; i < 30; i++)\n {\n a[i] = generator.nextInt(50)+1;\n b[i] = a[i];\n }\n }", "@Override\n\tpublic void setSortCounters(boolean sortCounters) {\n\t\t\n\t}", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }", "private void setup() {\r\n final int gsz = _g.getNumNodes();\r\n if (_k==2) {\r\n\t\t\tNodeComparator2 comp = new NodeComparator2();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t} else { // _k==1\r\n\t\t\tNodeComparator4 comp = new NodeComparator4();\r\n\t\t\t_origNodesq = new TreeSet(comp);\r\n\t\t}\r\n for (int i=0; i<gsz; i++) {\r\n _origNodesq.add(_g.getNodeUnsynchronized(i)); // used to be _g.getNode(i)\r\n }\r\n _nodesq = new TreeSet(_origNodesq);\r\n //System.err.println(\"done sorting\");\r\n }", "public void changeSortOrder();", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "private static void selectionSort(ArrayList<Box> BoxArray) { \n\n\t\tfor ( int i = 0; i < BoxArray.size(); i++ ) { \n\t\t\tint lowPos = i; \n\t\t\tfor ( int j = i + 1; j < BoxArray.size(); j++ ) \n\t\t\t\tif ( BoxArray.get(j).volume() < BoxArray.get(lowPos).volume() ) \n\t\t\t\t\tlowPos = j;\n\t\t\tif ( BoxArray.get(lowPos) != BoxArray.get(i) ) { \n\t\t\t\tBox temp = BoxArray.get(lowPos);\n\t\t\t\tBoxArray.set(lowPos, BoxArray.get(i));\n\t\t\t\tBoxArray.set(i, temp);\n\t\t\t}\n\t\t}\n\t}", "public void sort() {\n\t\t\tfor (int j = nowLength - 1; j > 1; j--) {\n\t\t\t\tfor (int i = 0; i < j; i++) {\n\t\t\t\t\tif (ray[i] > ray[i+1]) {\n\t\t\t\t\t\tint tmp = ray [i];\n\t\t\t\t\t\tray[i] = ray[i+1];\n\t\t\t\t\t\tray[i+1] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprint();\n\t\t\t}\n\t}", "public BubSortList() {\n\t\tray = new int[MAXSIZE];\n\t\tnowLength = 0;\n\t}", "public static void s1AscendingTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Ascending\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n Arrays.sort(ai);\n start = System.nanoTime();\n sli.sort1(ai);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static int[] partialSort(int[] a) {\n for (int i = 0; i < 2; i++) {\n for (int j = 0; j < 2 - i; j++) {\n if (a[j] > a[j+1]) {\n int temp = a[j+1];\n a[j+1] = a[j];\n a[j] = temp;\n }\n }\n }\n return a;\n}", "public void setSortOnCPUTime() {\n this.sortedJobList = new TreeSet<Job>(new Comparator<Job>() {\n @Override\n public int compare(Job a, Job b) {\n\n int aCPUUsed = 0;\n int bCPUUsed = 0;\n\n try {\n aCPUUsed = a.getCPUUsed();\n bCPUUsed = b.getCPUUsed();\n } catch (AS400SecurityException e) {\n e.printStackTrace();\n } catch (ErrorCompletingRequestException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ObjectDoesNotExistException e) {\n e.printStackTrace();\n }\n\n if (aCPUUsed == bCPUUsed) return 0;\n else return bCPUUsed - aCPUUsed;\n }\n });\n }", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public void doTheAlgorithm() {\n this.swapCount = 0;\n this.compCount = 0;\n \n\t\tdoQuickSort(0, this.sortArray.length - 1);\n\t}", "@VTID(28)\n boolean getSortUsingCustomLists();", "private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "private static void sort2(int[] a) {\n for(int i=0; i<a.length; i++){\n //find smallest from i to end \n int minIndex=i;\n for(int j=i ; j<a.length; j++)\n if(a[j]<a[minIndex])\n minIndex=j;\n //swap\n int t = a[i];\n a[i] = a[minIndex];\n a[minIndex] = t;\n }\n }", "void sortV();", "private void sortAndEmitUpTo(double maxX)\n {\n /**\n * Heuristic: Check if there are no obvious segments to process\n * and skip sorting & processing if so\n * \n * This is a heuristic only.\n * There may be new segments at the end of the buffer\n * which are less than maxx. But this should be rare,\n * and they will all get processed eventually.\n */\n if (bufferHeadMaxX() >= maxX)\n return;\n \n // this often sorts more than are going to be processed.\n //TODO: Can this be done faster? eg priority queue?\n \n // sort segs in buffer, since they arrived in potentially unsorted order\n Collections.sort(segmentBuffer, ORIENT_COMPARATOR);\n int i = 0;\n int n = segmentBuffer.size();\n LineSeg prevSeg = null;\n \n //reportProcessed(maxX);\n \n while (i < n) {\n LineSeg seg = (LineSeg) segmentBuffer.get(i);\n if (seg.getMaxX() >= maxX)\n \tbreak;\n \n i++;\n if (removeDuplicates) {\n if (prevSeg != null) {\n // skip this segment if it is a duplicate\n if (prevSeg.equals(seg)) {\n // merge in side label of dup seg\n prevSeg.merge(seg);\n continue;\n }\n }\n prevSeg = seg;\n }\n // remove interior segments (for dissolving)\n if (removeInteriorSegs\n && seg.getTopoLabel() == TopologyLabel.BOTH_INTERIOR)\n continue;\n \n segSink.process(seg);\n }\n //System.out.println(\"SegmentStreamSorter: total segs = \" + n + \", processed = \" + i);\n removeSegsFromBuffer(i);\n }", "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "public static void main(String[] args) throws FileNotFoundException{\n int[] quicktimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes1[i] = (int)endTime;\n }\n \n int[] mergetimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes1[i] = (int)endTime;\n }\n \n int[] heaptimes1 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes1[i] = (int)endTime;\n }\n \n int[] quicktimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[i] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes2[i] = (int)endTime;\n }\n \n int[] mergetimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes2[i] = (int)endTime;\n }\n \n int[] heaptimes2 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes2[i] = (int)endTime;\n }\n \n int[] quicktimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes3[i] = (int)endTime;\n }\n \n int[] mergetimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes3[i] = (int)endTime;\n }\n \n int[] heaptimes3 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes3[i] = (int)endTime;\n }\n \n int[] quicktimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes4[i] = (int)endTime;\n }\n \n int[] mergetimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes4[i] = (int)endTime;\n }\n \n int[] heaptimes4 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes4[i] = (int)endTime;\n }\n \n \n //THESE WILL GENERATE THE MERGE/HEAP/QUICK SORT FOR THE REVERSE SORTED ARRAYS OF VARIOUS LENGTHS\n int[] quicktimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes5[i] = (int)endTime;\n }\n \n int[] mergetimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes5[i] = (int)endTime;\n }\n \n int[] heaptimes5 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes5[i] = (int)endTime;\n }\n \n int[] quicktimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes6[i] = (int)endTime;\n }\n \n int[] mergetimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes6[i] = (int)endTime;\n }\n \n int[] heaptimes6 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[10000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes6[i] = (int)endTime;\n }\n \n int[] quicktimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes7[i] = (int)endTime;\n }\n \n int[] mergetimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes7[i] = (int)endTime;\n }\n \n int[] heaptimes7 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[100000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes7[i] = (int)endTime;\n }\n \n int[] quicktimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.quickSort(sarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes8[i] = (int)endTime;\n }\n \n int[] mergetimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.mergeSort(sarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes8[i] = (int)endTime;\n }\n \n int[] heaptimes8 = new int[3];\n for (int i = 0; i < 3; i++){\n int[] sarray = new int[1000000];\n for (int j = 0; j < sarray.length; j++)\n sarray[j] = j;\n for(int k = 0; k < sarray.length / 2; k++){\n int temp = sarray[k];\n sarray[k] = sarray[sarray.length - k - 1];\n sarray[sarray.length - k - 1] = temp;\n }\n long startTime = System.nanoTime();\n Sorting.heapSort(sarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes8[i] = (int)endTime;\n }\n \n //THESE WILL GENERATE THE MERGE/HEAP/QUICK SORT FOR THE RANDOM ARRAYS OF VARIOUS LENGTHS\n int[] quicktimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes9[i] = (int)endTime;\n }\n \n int[] mergetimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes9[i] = (int)endTime;\n }\n \n int[] heaptimes9 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes9[i] = (int)endTime;\n }\n \n int[] quicktimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes10[i] = (int)endTime;\n }\n \n int[] mergetimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes10[i] = (int)endTime;\n }\n \n int[] heaptimes10 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[10000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(9999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes10[i] = (int)endTime;\n }\n \n int[] quicktimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes11[i] = (int)endTime;\n }\n \n int[] mergetimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes11[i] = (int)endTime;\n }\n \n int[] heaptimes11 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[100000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(99999);;\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes11[i] = (int)endTime;\n }\n \n int[] quicktimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.quickSort(rarray);\n long endTime = System.nanoTime() - startTime;\n quicktimes12[i] = (int)endTime;\n }\n \n int[] mergetimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.mergeSort(rarray);\n long endTime = System.nanoTime() - startTime;\n mergetimes12[i] = (int)endTime;\n }\n \n int[] heaptimes12 = new int[10];\n for (int i = 0; i < 10; i++){\n int[] rarray = new int[1000000];\n Random rand = new Random(i);\n for (int j = 0; j < rarray.length; j++)\n rarray[j] = rand.nextInt(999999);\n long startTime = System.nanoTime();\n Sorting.heapSort(rarray);\n long endTime = System.nanoTime() - startTime;\n heaptimes12[i] = (int)endTime;\n }\n \n //PRINTING THE RESULTS OUT INTO FILE\n File f = new File(\"Results.txt\");\n FileOutputStream fos = new FileOutputStream(f);\n PrintWriter pw = new PrintWriter(fos);\n pw.println(\"SORTED ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes1), medVal(quicktimes1), varVal(quicktimes1, meanVal(quicktimes1)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes2), medVal(quicktimes2), varVal(quicktimes2, meanVal(quicktimes2)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes3), medVal(quicktimes3), varVal(quicktimes3, meanVal(quicktimes3)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes4), medVal(quicktimes4), varVal(quicktimes4, meanVal(quicktimes4)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes1), medVal(mergetimes1), varVal(mergetimes1, meanVal(mergetimes1)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes2), medVal(mergetimes2), varVal(mergetimes2, meanVal(mergetimes2)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes3), medVal(mergetimes3), varVal(mergetimes3, meanVal(mergetimes3)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes4), medVal(mergetimes4), varVal(mergetimes4, meanVal(mergetimes4)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes1), medVal(heaptimes1), varVal(heaptimes1, meanVal(heaptimes1)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes2), medVal(heaptimes2), varVal(heaptimes2, meanVal(heaptimes2)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes3), medVal(heaptimes3), varVal(heaptimes3, meanVal(heaptimes3)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes4), medVal(heaptimes4), varVal(heaptimes4, meanVal(heaptimes4)));\n pw.println(\"REVERSE SORTED ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes5), medVal(quicktimes5), varVal(quicktimes5, meanVal(quicktimes5)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes6), medVal(quicktimes6), varVal(quicktimes6, meanVal(quicktimes6)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes7), medVal(quicktimes7), varVal(quicktimes7, meanVal(quicktimes7)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes8), medVal(quicktimes8), varVal(quicktimes8, meanVal(quicktimes8)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes5), medVal(mergetimes5), varVal(mergetimes5, meanVal(mergetimes5)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes6), medVal(mergetimes6), varVal(mergetimes6, meanVal(mergetimes6)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes7), medVal(mergetimes7), varVal(mergetimes7, meanVal(mergetimes7)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes8), medVal(mergetimes8), varVal(mergetimes8, meanVal(mergetimes8)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes5), medVal(heaptimes5), varVal(heaptimes5, meanVal(heaptimes5)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes6), medVal(heaptimes6), varVal(heaptimes6, meanVal(heaptimes6)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes7), medVal(heaptimes7), varVal(heaptimes7, meanVal(heaptimes7)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes8), medVal(heaptimes8), varVal(heaptimes8, meanVal(heaptimes8)));\n pw.println(\"RANDOM ARRAYS TIMES:\");\n pw.printf(\"1000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes9), medVal(quicktimes9), varVal(quicktimes9, meanVal(quicktimes9)));\n pw.printf(\"10000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes10), medVal(quicktimes10), varVal(quicktimes10, meanVal(quicktimes10)));\n pw.printf(\"100000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes11), medVal(quicktimes11), varVal(quicktimes11, meanVal(quicktimes11)));\n pw.printf(\"1000000 Quick Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(quicktimes12), medVal(quicktimes12), varVal(quicktimes12, meanVal(quicktimes12)));\n pw.printf(\"1000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes9), medVal(mergetimes9), varVal(mergetimes9, meanVal(mergetimes9)));\n pw.printf(\"10000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes10), medVal(mergetimes10), varVal(mergetimes10, meanVal(mergetimes10)));\n pw.printf(\"100000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes11), medVal(mergetimes11), varVal(mergetimes11, meanVal(mergetimes11)));\n pw.printf(\"1000000 Merge Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(mergetimes12), medVal(mergetimes12), varVal(mergetimes12, meanVal(mergetimes12)));\n pw.printf(\"1000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes9), medVal(heaptimes9), varVal(heaptimes9, meanVal(heaptimes9)));\n pw.printf(\"10000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes10), medVal(heaptimes10), varVal(heaptimes10, meanVal(heaptimes10)));\n pw.printf(\"100000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes11), medVal(heaptimes11), varVal(heaptimes11, meanVal(heaptimes11)));\n pw.printf(\"1000000 Heap Sort: Mean = %f, Median = %f, Variance = %f%n\", meanVal(heaptimes12), medVal(heaptimes12), varVal(heaptimes12, meanVal(heaptimes12)));\n pw.close();\n }", "public void sort() {\r\n lang.setInteractionType(Language.INTERACTION_TYPE_AVINTERACTION);\r\n\r\n int nrElems = array.getLength();\r\n ArrayMarker iMarker = null, jMarker = null;\r\n // highlight method header\r\n code.highlight(\"header\");\r\n lang.nextStep();\r\n\r\n // check if array is null\r\n code.toggleHighlight(\"header\", \"ifNull\");\r\n incrementNrComparisons(); // if null\r\n lang.nextStep();\r\n\r\n // switch to variable declaration\r\n\r\n code.toggleHighlight(\"ifNull\", \"variables\");\r\n lang.nextStep();\r\n\r\n // initialize i\r\n code.toggleHighlight(\"variables\", \"initializeI\");\r\n iMarker = installArrayMarker(\"iMarker\", array, nrElems - 1);\r\n incrementNrAssignments(); // i =...\r\n lang.nextStep();\r\n\r\n // switch to outer loop\r\n code.unhighlight(\"initializeI\");\r\n\r\n while (iMarker.getPosition() >= 0) {\r\n code.highlight(\"outerLoop\");\r\n lang.nextStep();\r\n\r\n code.toggleHighlight(\"outerLoop\", \"innerLoop\");\r\n if (jMarker == null) {\r\n jMarker = installArrayMarker(\"jMarker\", array, 0);\r\n } else\r\n jMarker.move(0, null, DEFAULT_TIMING);\r\n incrementNrAssignments();\r\n while (jMarker.getPosition() <= iMarker.getPosition() - 1) {\r\n incrementNrComparisons();\r\n lang.nextStep();\r\n code.toggleHighlight(\"innerLoop\", \"if\");\r\n array.highlightElem(jMarker.getPosition() + 1, null, null);\r\n array.highlightElem(jMarker.getPosition(), null, null);\r\n incrementNrComparisons();\r\n lang.nextStep();\r\n\r\n if (array.getData(jMarker.getPosition()) > array.getData(jMarker\r\n .getPosition() + 1)) {\r\n // swap elements\r\n code.toggleHighlight(\"if\", \"swap\");\r\n array.swap(jMarker.getPosition(), jMarker.getPosition() + 1, null,\r\n DEFAULT_TIMING);\r\n incrementNrAssignments(3); // swap\r\n lang.nextStep();\r\n code.unhighlight(\"swap\");\r\n } else {\r\n code.unhighlight(\"if\");\r\n }\r\n // clean up...\r\n // lang.nextStep();\r\n code.highlight(\"innerLoop\");\r\n array.unhighlightElem(jMarker.getPosition(), null, null);\r\n array.unhighlightElem(jMarker.getPosition() + 1, null, null);\r\n if (jMarker.getPosition() <= iMarker.getPosition())\r\n jMarker.move(jMarker.getPosition() + 1, null, DEFAULT_TIMING);\r\n incrementNrAssignments(); // j++ will always happen...\r\n }\r\n lang.nextStep();\r\n code.toggleHighlight(\"innerLoop\", \"decrementI\");\r\n array.highlightCell(iMarker.getPosition(), null, DEFAULT_TIMING);\r\n if (iMarker.getPosition() > 0)\r\n iMarker.move(iMarker.getPosition() - 1, null, DEFAULT_TIMING);\r\n else\r\n iMarker.moveBeforeStart(null, DEFAULT_TIMING);\r\n incrementNrAssignments();\r\n lang.nextStep();\r\n code.unhighlight(\"decrementI\");\r\n }\r\n\r\n // some interaction...\r\n TrueFalseQuestionModel tfQuestion = new TrueFalseQuestionModel(\"tfQ\");\r\n tfQuestion.setPrompt(\"Did this work?\");\r\n tfQuestion.setPointsPossible(1);\r\n tfQuestion.setGroupID(\"demo\");\r\n tfQuestion.setCorrectAnswer(true);\r\n tfQuestion.setFeedbackForAnswer(true, \"Great!\");\r\n tfQuestion.setFeedbackForAnswer(false, \"argh!\");\r\n lang.addTFQuestion(tfQuestion);\r\n\r\n lang.nextStep();\r\n HtmlDocumentationModel link = new HtmlDocumentationModel(\"link\");\r\n link.setLinkAddress(\"http://www.heise.de\");\r\n lang.addDocumentationLink(link);\r\n\r\n lang.nextStep();\r\n MultipleChoiceQuestionModel mcq = new MultipleChoiceQuestionModel(\"mcq\");\r\n mcq.setPrompt(\"Which AV system can handle dynamic rewind?\");\r\n mcq.setGroupID(\"demo\");\r\n mcq.addAnswer(\"GAIGS\", -1, \"Only static images, not dynamic\");\r\n mcq.addAnswer(\"Animal\", 1, \"Good!\");\r\n mcq.addAnswer(\"JAWAA\", -2, \"Not at all!\");\r\n lang.addMCQuestion(mcq);\r\n\r\n lang.nextStep();\r\n MultipleSelectionQuestionModel msq = new MultipleSelectionQuestionModel(\r\n \"msq\");\r\n msq.setPrompt(\"Which of the following AV systems can handle interaction?\");\r\n msq.setGroupID(\"demo\");\r\n msq.addAnswer(\"Animal\", 2, \"Right - I hope!\");\r\n msq.addAnswer(\"JHAVE\", 2, \"Yep.\");\r\n msq.addAnswer(\"JAWAA\", 1, \"Only in Guido's prototype...\");\r\n msq.addAnswer(\"Leonardo\", -1, \"Nope.\");\r\n lang.addMSQuestion(msq);\r\n lang.nextStep();\r\n // Text text = lang.newText(new Offset(10, 20, \"array\", \"S\"), \"Hi\", \"hi\",\r\n // null);\r\n // lang.nextStep();\r\n }", "public void shellSort(){\n int increment = list.size() / 2;\n while (increment > 0) {\n for (int i = increment; i < list.size(); i++) {\n int j = i;\n int temp = list.get(i);\n while (j >= increment && list.get(j - increment) > temp) {\n list.set(j, list.get(j - increment));\n j = j - increment;\n }\n list.set(j, temp);\n }\n if (increment == 2) {\n increment = 1;\n } else {\n increment *= (5.0 / 11);\n }\n }\n }", "public void sort() {\n\t\tif (data.size() < 10) {\n\t\t\tbubbleSort();\n\t\t\tSystem.out.println(\"Bubble Sort\");\n\t\t} else {\n\t\t\tquickSort();\n\t\t\tSystem.out.println(\"Quick Sort\");\n\t\t}\n\t}", "public void insertReorderBarrier() {\n\t\t\n\t}", "private static void allSorts(int[] array) {\n\t\tSystem.out.printf(\"%12d\",array.length);\n\t\tint[] temp;\n\t\tStopWatch1 timer;\n\t\t\n\t\t//Performs bubble sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.bubbleSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\\tSelection\\tBubble\\tInsertion\\tCollections\\tQuick\\tinPlaceQuick\\tMerge\");\r\n\t\tfor (int n = 1000; n <= 7000; n += 500) {\r\n\t\t\tAPArrayList<Double> lists = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listb = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listi = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listc = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listq = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listipq = new APArrayList<Double>();\r\n\t\t\tAPArrayList<Double> listm = new APArrayList<Double>();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\tDouble val = Math.random();\r\n\t\t\t\tlists.add(val);\r\n\t\t\t\tlistb.add(val);\r\n\t\t\t\tlisti.add(val);\r\n\t\t\t\tlistc.add(val);\r\n\t\t\t\tlistq.add(val);\r\n\t\t\t\tlistipq.add(val);\r\n\t\t\t\tlistm.add(val);\r\n\t\t\t}\r\n\r\n\t\t\tlong selStartTime = System.nanoTime();\r\n\t\t\tlists.selectionSort();\r\n\t\t\tlong selEndTime = System.nanoTime();\r\n\t\t\tlong selSortTime = selEndTime - selStartTime;\r\n\t\t\tlists.clear();\r\n\t\t\t\r\n\t\t\tlong bubStartTime = System.nanoTime();\r\n\t\t\tlistb.bubbleSort();\r\n\t\t\tlong bubEndTime = System.nanoTime();\r\n\t\t\tlong bubSortTime = bubEndTime - bubStartTime;\r\n\t\t\tlistb.clear();\r\n\t\t\t\r\n\t\t\tlong insStartTime = System.nanoTime();\r\n\t\t\tlisti.insertionSort();\r\n\t\t\tlong insEndTime = System.nanoTime();\r\n\t\t\tlong insSortTime = insEndTime - insStartTime;\r\n\t\t\tlisti.clear();\r\n\t\t\t\r\n\t\t\tlong CollStartTime = System.nanoTime();\r\n\t\t\tlistc.sort();\r\n\t\t\tlong CollEndTime = System.nanoTime();\r\n\t\t\tlong CollSortTime = CollEndTime - CollStartTime;\r\n\t\t\tlistc.clear();\r\n\t\t\t\r\n\t\t\tlong quickStartTime = System.nanoTime();\r\n\t\t\tlistq.simpleQuickSort();\r\n\t\t\tlong quickEndTime = System.nanoTime();\r\n\t\t\tlong quickSortTime = quickEndTime - quickStartTime;\r\n\t\t\tlistq.clear();\r\n\t\t\t\r\n\t\t\tlong inPlaceQuickStartTime = System.nanoTime();\r\n\t\t\tlistipq.inPlaceQuickSort();\r\n\t\t\tlong inPlaceQuickEndTime = System.nanoTime();\r\n\t\t\tlong inPlaceQuickSortTime = inPlaceQuickEndTime - inPlaceQuickStartTime;\r\n\t\t\tlistipq.clear();\r\n\t\t\t\r\n\t\t\tlong mergeStartTime = System.nanoTime();\r\n\t\t\tlistm.mergeSort();\r\n\t\t\tlong mergeEndTime = System.nanoTime();\r\n\t\t\tlong mergeSortTime = mergeEndTime - mergeStartTime;\r\n\t\t\tlistq.clear();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(n + \"\\t\" + selSortTime + \"\\t\" + bubSortTime + \"\\t\" + insSortTime + \"\\t\" + CollSortTime + \"\\t\" + quickSortTime + \"\\t\" + inPlaceQuickSortTime + \"\\t\" + mergeSortTime);\r\n\t\t}\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Override\n\tpublic void sort() {\n\t\t\n\t\t// create maxHeap\n\t\tHeap<E> maxHeap = new MaxHeap<E>(arr);\n\t\t\n\t\telapsedTime = System.nanoTime(); // get time of start\n\t\t\n\t\tfor (int i = length - 1; i > 0; i--) {\n\n\t\t\tmaxHeap.swap(arr, 0, i);\n\t\t\tmaxHeap.heapSize--;\n\t\t\t((MaxHeap) maxHeap).maxHeapify(arr, 0);\n\n\t\t}\n\t\t\n\t\telapsedTime = System.nanoTime() - elapsedTime; // get elapsed time\n\t\t\n\t\tprint(); // print sorted array\n\t\tprintElapsedTime(); // print elapsed time\n\t\t\n\t\t\n\t}", "private void collapseIgloo() {\n blocks.sort(Comparator.comparing(a -> a.center.getY()));\n\n double minDistance, distance;\n Point3D R = new Point3D(0, -1, 0);\n for (int i = 0; i < blocks.size(); i++) {\n minDistance = Double.MAX_VALUE;\n for (int j = i - 1; j >= 0; j--) {\n if (boundingSpheresIntersect(blocks.get(i), blocks.get(j))) {\n distance = minDistance(blocks.get(i), blocks.get(j), R);\n if (distance < minDistance) {\n minDistance = distance;\n }\n }\n }\n if (minDistance != Double.MAX_VALUE) {\n blocks.get(i).move(R.multiply(minDistance));\n }\n }\n }", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "private void sortGallery_10_Runnable() {\r\n\r\n\t\tif (_allPhotos == null || _allPhotos.length == 0) {\r\n\t\t\t// there are no files\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfinal GalleryMT20Item[] virtualGalleryItems = _galleryMT20.getAllVirtualItems();\r\n\t\tfinal int virtualSize = virtualGalleryItems.length;\r\n\r\n\t\tif (virtualSize == 0) {\r\n\t\t\t// there are no items\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// sort photos with new sorting algorithm\r\n\t\tArrays.sort(_sortedAndFilteredPhotos, getCurrentComparator());\r\n\r\n\t\tupdateUI_GalleryItems(_sortedAndFilteredPhotos, null);\r\n\t}", "private static long sortingTime(String[] array, boolean isStandardSort) {\n long start = System.currentTimeMillis(); // starting time\n if (isStandardSort) \n Arrays.sort(array);\n selectionSort(array);\n return System.currentTimeMillis() - start; // measure time consumed\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }", "public void sort() {\n\t\tfor (int i = 1; i < this.dataModel.getLength(); i++) {\n\t\t\tfinal int x = this.dataModel.get(i);\n\n\t\t\t// Find location to insert using binary search\n\t\t\tfinal int j = Math.abs(this.dataModel.binarySearch(0, i, x) + 1);\n\n\t\t\t// Shifting array to one location right\n\t\t\tthis.dataModel.arrayCopy(j, j + 1, i - j);\n\n\t\t\t// Placing element at its correct location\n\t\t\tthis.dataModel.set(j, x);\n\t\t\tthis.repaint(this.count++);\n\t\t}\n\t}", "public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }", "private static void fourSorts(int[] array) {\n\t\tStopWatch1 timer;\n\t\tint[] temp;\n\t\t//Performs insertion sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.insertionSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\n\t\t//Performs selection sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.selectionSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\t\t//Performs quick sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.quickSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\t\t//Performs merge sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.mergeSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\t}", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "public void run()\n { // checking for appropriate sorting algorithm\n \n if(comboAlgorithm.equals(\"Shell Sort\"))\n {\n this.shellSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Selection Sort\"))\n {\n this.selectionSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Insertion Sort\"))\n {\n this.insertionSort(randInt);\n }\n if(comboAlgorithm.equals(\"Bubble Sort\"))\n {\n this.bubbleSort(randInt);\n }\n \n }", "private synchronized void freshSort(){\n Process[] newQueue = new Process[pros.proSize()];\n for(int i = 0; i <queue.length; i++){\n if(pros.isInList(queue[i])){\n newQueue[i] = queue[i];\n }\n }\n queue = new Process[pros.proSize()];\n queue = newQueue;\n }", "public void sortFullList()\r\n {\r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"[\" + this.id + \"] sorting full data\");\r\n }\r\n sortRowList(this.getRowListFull());\r\n }", "private void updateFilteringAndSorting() {\n log.debug(\"update filtering of adapter called\");\n if (lastUsedComparator != null) {\n sortWithoutNotify(lastUsedComparator, lastUsedAsc);\n }\n Filter filter = getFilter();\n if (filter instanceof UpdateableFilter){\n ((UpdateableFilter)filter).updateFiltering();\n }\n }", "private static void evaluateMergesortVogellaThreaded() {\n\n // LOGGER.info(\"evaluating parallel mergesort with Java Threads based on the Vogella version\");\n\n // The time before start to sort.\n long startTime;\n\n // The time after sort.\n long endTime;\n\n // generate sorted array\n numbers = generateSortedArray(ARRAY_SIZE);\n\n // get array to evaluate\n generateWorstUnsortArray(numbers);\n\n // get systemtime before sorting\n startTime = System.currentTimeMillis();\n\n // sort\n msVogellaJThreads.sort(numbers);\n\n // get systemtime after sorting\n endTime = System.currentTimeMillis();\n\n // show the result of the sorting process\n System.out.println(\"\\n- Sortierergebnis: Java Threads (Vogella) -\");\n System.out.println(\"Die sortierte Folge lautet: \" + arrayToString(numbers));\n System.out.printf(\"Für die Sortierung wurden %d ms benötigt\", endTime - startTime);\n System.out.println(\"\\n------------------------------------------------\\n\");\n }", "public void sortSpeeds() {\n\n//\t\tSystem.out.println(\"BEGIN: SORT SPEEDS\");\n\t\tthis.printMoves();\n\n\t\tArrayList<Move> temp = new ArrayList<Move>();\n\t\tint i = 1;\n\t\tint x = 0;\n\t\tboolean y = true;\n\n\t\ttemp.add(niceMoves.get(0));\n\t\tint size = niceMoves.size();\n\n\t\twhile (i < niceMoves.size()) {\n\n//\t\t\tSystem.out.println(\"Reiterating.\");\n\t\t\ty = true;\n\n\t\t\twhile (y) {\n\n\t\t\t\t//System.out.println(\"I: \" + i + \" X: \" + x);\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (niceMoves.get(i).getSpeed() > temp.get(x).getCalcedSpeed()) {\n\n//\t\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\t\ty = false;\n\t\t\t\t\t}\n\t\t\t\t\t//X has cycled through temp, meaning nicemoves.i should be added to the end\n\t\t\t\t\t//The only way to check for this is to let it overflow lol\n\t\t\t\t} catch (Exception E) {\n//\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\ty = false;\n\n\t\t\t\t}\n\n\t\t\t\tx += 1;\n\t\t\t}\n\n\t\t\ti += 1;\n\t\t\tx = 0;\n\t\t}\n\n\t\tniceMoves = temp;\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(\"Sorting Complete! New Order: \");\n//\t\tthis.printMoves();\n\t\t//end of sort speeds\n\t}", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "public void sort() throws IOException {\n for(int i = 0; i < 32; i++)\n {\n if(i%2 == 0){\n filePointer = file;\n onePointer = one;\n }else{\n filePointer = one;\n onePointer = file;\n }\n filePointer.seek(0);\n onePointer.seek(0);\n zero.seek(0);\n zeroCount = oneCount = 0;\n for(int j = 0; j < totalNumbers; j++){\n int n = filePointer.readInt();\n sortN(n,i);\n }\n //Merging\n onePointer.seek(oneCount*4);\n zero.seek(0L);\n for(int j = 0; j < zeroCount; j++){\n int x = zero.readInt();\n onePointer.writeInt(x);\n }\n //One is merged\n }\n }", "void sortUI();", "private static long sortingTime(double[] array, boolean isStandardSort) {\n long start = 0; // starting time\n if (isStandardSort) { \n start = System.currentTimeMillis(); \n Arrays.sort(array);\n } else {\t\n start = System.currentTimeMillis();\n selectionSort(array);\n }\n return System.currentTimeMillis() - start; // measure time consumed\n }", "private void compressBlocks(final int phaseId) {\n // 1. uncross all crossing blocks: O(|G|)\n popBlocks(head -> head.isTerminal() && head.getPhaseId() < phaseId,\n tail -> tail.isTerminal() && tail.getPhaseId() < phaseId);\n\n List<BlockRecord<N, S>> shortBlockRecords = new ArrayList<>();\n List<BlockRecord<N, S>> longBlockRecords = new ArrayList<>();\n\n // 2. get all blocks: O(|G|)\n slp.getProductions().stream().forEach(rule -> consumeBlocks(rule.getRight(), shortBlockRecords::add, longBlockRecords::add, letter -> true));\n\n // 3.1 sort short blocks using RadixSort: O(|G|)\n sortBlocks(shortBlockRecords);\n\n // 3.2 sort long blocks O((n+m) log(n+m))\n Collections.sort(longBlockRecords, blockComparator);\n List<BlockRecord<N, S>> blockRecords = mergeBlocks(shortBlockRecords, longBlockRecords);\n\n // compress blocks\n BlockRecord<N, S> lastRecord = null;\n S letter = null;\n\n // 4. compress blocks: O(|G|)\n for(BlockRecord<N, S> record : blockRecords) {\n\n // check when it is the correct time to introduce a fresh letter\n if(lastRecord == null || !lastRecord.equals(record)) {\n letter = terminalAlphabet.createTerminal(phase, 1L, record.node.getElement().getLength() * record.block.getLength(), record.block);\n lastRecord = record;\n }\n replaceBlock(record, letter);\n }\n }", "@Test(timeout = SHORT_TIMEOUT)\n public void testAdaptiveInsertionSort() {\n //Test adaptiveness of completely ordered sort\n\n //Generate sorted array\n toSort = randArrDuplicates(MAX_ARR_SIZE, new Random(2110));\n Arrays.parallelSort(toSort, comp);\n sortedInts = cloneArr(toSort);\n\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n int numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n //Should require only 1 pass through array, for n-1 comparisons\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= MAX_ARR_SIZE - 1);\n\n //Check adaptiveness with 1 item out-of-order\n\n //Set up list\n toSort = new IntPlus[6];\n for (int i = 0; i < toSort.length; i++) {\n toSort[i] = new IntPlus(2 * i);\n }\n toSort[3] = new IntPlus(-1);\n\n sortedInts = cloneArr(toSort);\n\n /*\n Initial Array: [0, 2, 4, -1, 8, 10]\n Should require 7 comparisons to sort\n */\n comp.resetCount();\n Sorting.insertionSort(sortedInts, comp);\n numComparisons = comp.getCount();\n\n assertSorted(sortedInts, comp);\n\n assertTrue(\"Too many comparisons: \" + numComparisons,\n numComparisons <= 7);\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "public void sort(){\n ListNode t, x, b = new ListNode(null, null);\n while (firstNode != null){\n t = firstNode; firstNode = firstNode.nextNode;\n for (x = b; x.nextNode != null; x = x.nextNode) //b is the first node of the new sorted list\n if (cmp.compare(x.nextNode.data, t.data) > 0) break;\n t.nextNode = x.nextNode; x.nextNode = t;\n if (t.nextNode==null) lastNode = t;\n }\n firstNode = b.nextNode;\n }" ]
[ "0.719662", "0.6253113", "0.6209965", "0.60641325", "0.6062344", "0.60514784", "0.6039714", "0.6020895", "0.6018125", "0.6015914", "0.59652436", "0.5950544", "0.5932971", "0.5900926", "0.58313674", "0.5802383", "0.5788351", "0.57315594", "0.56716985", "0.56670487", "0.5629508", "0.5613598", "0.5612099", "0.5611703", "0.5592451", "0.55917716", "0.5588461", "0.55848163", "0.5554659", "0.5554079", "0.5549377", "0.55441636", "0.5537118", "0.5532984", "0.5532803", "0.5532803", "0.55292463", "0.55275965", "0.5522279", "0.5519424", "0.551642", "0.5511716", "0.55057514", "0.5502017", "0.54939586", "0.5476436", "0.54741585", "0.5473029", "0.5441123", "0.54384875", "0.54355913", "0.5428854", "0.5424462", "0.5404587", "0.54042906", "0.5398141", "0.53981346", "0.5394633", "0.5393649", "0.53902", "0.538549", "0.53852785", "0.5384685", "0.53686666", "0.5345649", "0.5341686", "0.53390706", "0.53294265", "0.53148216", "0.53070915", "0.53057426", "0.5305577", "0.5304475", "0.5292254", "0.52918285", "0.5290364", "0.5287865", "0.52842516", "0.52834797", "0.52813774", "0.5267899", "0.52645266", "0.5263191", "0.5262101", "0.5261538", "0.5259155", "0.52528334", "0.5249513", "0.524533", "0.5243381", "0.5239559", "0.5239141", "0.5237668", "0.52372295", "0.5224401", "0.5223193", "0.5222278", "0.522134", "0.5221159", "0.5217173", "0.52171165" ]
0.0
-1
init 2 cells with diff status. checking the constr.
public static void main(String [] args){ Cell testCell1 = new Cell(); Cell testCell2 = new Cell(false,0,0); testCell1.display(); testCell2.display(); System.out.println(""); System.out.println(testCell1.getStatus()); System.out.println(testCell2.getStatus()); testCell1.changeStatus(6); testCell2.changeStatus(2); System.out.println(testCell1.getStatus()); System.out.println(testCell2.getStatus()); Cell[][] input = new Cell[3][3]; input[0][0] = new Cell(false,0,0); input[0][1] = new Cell(true,0,1); input[0][2] = new Cell(false,0,2); input[1][0] = new Cell(true,1,0); input[1][1] = new Cell(true,1,1); input[1][2] = new Cell(true,1,2); input[2][0] = new Cell(true,2,0); input[2][1] = new Cell(true,2,1); input[2][2] = new Cell(true,2,2); CellGrid testGrid = new CellGrid(input); System.out.println(testGrid.getNeighbors(0,1)); testGrid.displayGrid(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testSetCell()\n {\n // Test setting a cell under ideal conditions\n assertTrue(b1.getCell(0, 0) == Cell.EMPTY);\n assertTrue(b1.setCell(0, 0, Cell.RED1));\n assertTrue(b1.getCell(0, 0) == Cell.RED1 );\n\n // If a cell is out of bounds, should fail\n assertFalse(b1.setCell(-1, 0, Cell.RED1));\n assertFalse(b1.setCell(0, -1, Cell.RED1));\n assertFalse(b1.setCell(3, 0, Cell.RED1));\n assertFalse(b1.setCell(0, 3, Cell.RED1));\n\n // If a cell is already occupied, should fail\n assertFalse(b1.setCell(0, 0, Cell.RED1));\n\n // If the board is won, should fail\n assertTrue(b1.setCell(0, 1, Cell.RED1));\n assertTrue(b1.setCell(0, 2, Cell.RED1));\n assertEquals(b1.getWhoHasWon(), Cell.RED1);\n assertFalse(b1.setCell(1, 1, Cell.RED1)); // Unoccupied\n assertFalse(b1.setCell(0, 0, Cell.RED1)); // Occupied\n\n\n\n\n }", "public void prepare(){\n\n\t\t/* For every cell in the cell space */\n\t\tfor (int i=0;i<GlobalAttributes.xCells;i++){\n\t\t\tfor(int j=0;j<GlobalAttributes.yCells;j++){\n\n\t\t\t\t/* Set the cell state to the starting configuration */\n\t\t\t\tgrid[i][j].topSubcellValue=source[i][j].topSubcellValue;\n\t\t\t\tgrid[i][j].bottomSubcellValue=source[i][j].bottomSubcellValue;\n\t\t\t\tgrid[i][j].leftSubcellValue=source[i][j].leftSubcellValue;\n\t\t\t\tgrid[i][j].rightSubcellValue=source[i][j].rightSubcellValue;\n\n\t\t\t\t/* Set the \"current\" difference matrix value to\n\t\t\t\t * the value in the fixed initial matrix */\n\t\t\t\tdifferent[i][j]=fixeddifferent[i][j];\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t/* Reset the differences counter to the fixed version */\n\t\tdifferences=fixeddifferences;\n\t}", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "public CellMLDiffInterpreter (SimpleConnectionManager conMgmt, CellMLDocument cellmlDocA,\n\t\tCellMLDocument cellmlDocB)\n\t{\n\t\tsuper (conMgmt, cellmlDocA.getTreeDocument (), cellmlDocB.getTreeDocument ());\n\t\t\t//report = new SBMLDiffReport ();\n\t\t\tthis.cellmlDocA = cellmlDocA;\n\t\t\tthis.cellmlDocB = cellmlDocB;\n\t}", "void initData() {\r\n this.unconnectedCells = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.BLUE, true), new EndCell(0, 1),\r\n new EndCell(-1, 1), new EndCell(0, 1), new EndCell(1, 1)));\r\n\r\n this.cells1 = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1), new EndCell(2,-1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.RED, true),\r\n new Cell(1, 0, Color.RED, false), new EndCell(2, 0),\r\n new EndCell(-1, 1), new Cell(0, 1, Color.BLUE, false),\r\n new Cell(1, 1, Color.RED, false), new EndCell(2, 1),\r\n new EndCell(-1, 2), new EndCell(0, 2), new EndCell(1, 2), new EndCell(2, 2)));\r\n\r\n this.floodedCells = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1), new EndCell(2,-1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.RED, true),\r\n new Cell(1, 0, Color.RED, true), new EndCell(2, 0),\r\n new EndCell(-1, 1), new Cell(0, 1, Color.BLUE, true),\r\n new Cell(1, 1, Color.RED, true), new EndCell(2, 1),\r\n new EndCell(-1, 2), new EndCell(0, 2), new EndCell(1, 2), new EndCell(2, 2)));\r\n\r\n this.halfFlooded = new ArrayList<ACell>(Arrays.asList(\r\n new EndCell(-1,-1), new EndCell(0,-1), new EndCell(1, -1), new EndCell(2,-1),\r\n new EndCell(-1, 0), new Cell(0, 0, Color.PINK, true),\r\n new Cell(1, 0, Color.CYAN, true), new EndCell(2, 0),\r\n new EndCell(-1, 1), new Cell(0, 1, Color.CYAN, true),\r\n new Cell(1, 1, Color.PINK, false), new EndCell(2, 1),\r\n new EndCell(-1, 2), new EndCell(0, 2), new EndCell(1, 2), new EndCell(2, 2)));\r\n\r\n this.mtACell = new ArrayList<ACell>();\r\n\r\n this.c1 = new Cell(0, 0, Color.PINK, false);\r\n this.c2 = new Cell(1, 0, Color.GREEN, false);\r\n this.c3 = new Cell(0, 1, Color.CYAN, false);\r\n this.e1 = new EndCell(0, 0);\r\n\r\n this.runGame = new FloodItWorld();\r\n this.runGame.initializeBoard();\r\n\r\n this.game1 = new FloodItWorld(20);\r\n this.game1.initializeBoard();\r\n\r\n this.game2 = new FloodItWorld(1, 100, new Random(20),\r\n 2, 3);\r\n this.game2.initializeBoard();\r\n\r\n this.game3 = new FloodItWorld(1, 10, new Random(21),\r\n 3, 8);\r\n this.game3.initializeBoard();\r\n\r\n this.game5 = new FloodItWorld(5, 5, new Random(23),\r\n 4, 2);\r\n this.game5.initializeBoard();\r\n this.game6 = new FloodItWorld(this.unconnectedCells,\r\n 0, 5, new Random(24), new ArrayList<Color>(Arrays.asList(Color.BLUE)),1, 1,\r\n new ArrayList<ACell>());\r\n this.game7 = new FloodItWorld(this.cells1, 0, 3, new Random(25),\r\n new ArrayList<Color>(Arrays.asList(Color.BLUE, Color.RED)), 2, 2,\r\n new ArrayList<ACell>());\r\n this.game7.stitchCells();\r\n\r\n this.game8 = new FloodItWorld(this.floodedCells, 0, 3, new Random(26),\r\n new ArrayList<Color>(Arrays.asList(Color.BLUE, Color.RED)), 2, 2,\r\n new ArrayList<ACell>());\r\n this.game8.stitchCells();\r\n\r\n this.game9 = new FloodItWorld(this.halfFlooded, 0, 3, new Random(27),\r\n new ArrayList<Color>(Arrays.asList(Color.PINK, Color.BLUE)), 2, 2,\r\n new ArrayList<ACell>());\r\n this.game9.stitchCells();\r\n }", "public void init(CellImpl cell);", "private Cell()\n\t{\n\t\tsupplied = false;\n\t\tconnections = new boolean[4];\n\t\t\n\t\tfor(int i = 0; i < 4; ++i)\n\t\t\tconnections[i] = false;\n\t}", "public void differences(){\n\n\t\t/* Set the value of the initial differences to zero (it is calculated through\n\t\t * incrementing the variable) */\n\t\tfixeddifferences=0;\n\n\t\t/* For every cell in the cell space */\n\t\tfor (int i=0;i<GlobalAttributes.xCells;i++){\n\t\t\tfor(int j=0;j<GlobalAttributes.yCells;j++){\n\n\t\t\t\t/* If the value in the initial configuration differs from the value\n\t\t\t\t * in the target configuration */\n\t\t\t\tif(source[i][j].topSubcellValue != target[i][j].topSubcellValue ||\n\t\t\t\t\t\tsource[i][j].bottomSubcellValue != target[i][j].bottomSubcellValue ||\n\t\t\t\t\t\tsource[i][j].leftSubcellValue != target[i][j].leftSubcellValue ||\n\t\t\t\t\t\tsource[i][j].rightSubcellValue != target[i][j].rightSubcellValue){\n\n\t\t\t\t\t/* Set the value in the fixed initial difference matrix\n\t\t\t\t\t * to true and increment the fixed initial differences counter */\n\t\t\t\t\tfixeddifferent[i][j]=true;\n\t\t\t\t\tfixeddifferences++;\n\t\t\t\t}\n\n\t\t\t\t/* Else if the value does not differ, set the value in the\n\t\t\t\t * fixed initial differences matrix to false and do not increment\n\t\t\t\t * the fixed initial differences counter */\n\t\t\t\telse{\n\t\t\t\t\tfixeddifferent[i][j]=false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void checkCellStatus()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n checkNeighbours(rows, columns);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }", "public void doChanges0() {\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jScrollPane1-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n // parentId-compId-dimension-compAlignment\n lm.removeComponent(\"jScrollPane1\", true);\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public abstract void initCell(\r\n int row,\r\n int col,\r\n double valueToInitialise);", "public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }", "public BoardCell(BoardCell existingBoardCell){\n xCor=existingBoardCell.getXCor();\n yCor=existingBoardCell.getYCor();\n }", "public void testGetCell()\n {\n // All cells should be empty to start.\n for (int i = 0; i < 3; i++)\n {\n for (int j = 0; j < 3; j++)\n {\n assertTrue(b1.getCell(i, j) == Cell.EMPTY);\n }\n }\n\n\n }", "public void addNotDefinedCells()\r\n {\r\n if (getCrosstabElement() == null) return;\r\n\r\n // First of all we have to calc what cells we have and in what position they are...\r\n int cellGridWidth = getCrosstabElement().getColumnGroups().size();\r\n int cellGridHeight = getCrosstabElement().getRowGroups().size();\r\n\r\n // We assume that cell D/D (detail/detail) is defined.\r\n // Cell x,y is the cell with totalColumnGroup = colums(x) and totalRowGroup the rows(y)\r\n\r\n for (int y = cellGridHeight; y >= 0; --y)\r\n {\r\n\r\n\r\n for (int x = cellGridWidth; x >= 0; --x)\r\n {\r\n\r\n String totalRowGroupName = \"\";\r\n if (y < cellGridHeight) totalRowGroupName = ((CrosstabGroup)getCrosstabElement().getRowGroups().get(y)).getName();\r\n\r\n String totalColumnGroupName = \"\";\r\n if (x < cellGridWidth) totalColumnGroupName = ((CrosstabGroup)getCrosstabElement().getColumnGroups().get(x)).getName();\r\n\r\n CrosstabCell cell = findCell( totalRowGroupName,\r\n totalColumnGroupName);\r\n\r\n if (cell == null)\r\n {\r\n // we have to find a cell on the same row that matchs the width to inherit by...\r\n int cellHeight = getRowHeight( totalRowGroupName );\r\n int cellWidth = getColumnWidth( totalColumnGroupName );\r\n\r\n\r\n // look for a good row cell with the same width on the same row...\r\n CrosstabCell templateCell = null;\r\n for (int k=x+1; k < cellGridWidth; ++k)\r\n {\r\n templateCell = findCell( totalRowGroupName,\r\n ((CrosstabGroup)getCrosstabElement().getColumnGroups().get(k)).getName());\r\n if (templateCell == null)\r\n {\r\n continue;\r\n }\r\n\r\n if (templateCell.getWidth() == cellWidth)\r\n {\r\n break;\r\n }\r\n else\r\n {\r\n templateCell = null;\r\n }\r\n }\r\n if (templateCell == null)\r\n {\r\n templateCell = findCell( totalRowGroupName, \"\");\r\n if (templateCell != null && templateCell.getWidth() != cellWidth) templateCell = null;\r\n }\r\n\r\n if (templateCell == null) // Look on the same column...\r\n {\r\n for (int k=y+1; k < cellGridHeight; ++k)\r\n {\r\n templateCell = findCell( ((CrosstabGroup)getCrosstabElement().getRowGroups().get(k)).getName(),\r\n totalColumnGroupName);\r\n\r\n if (templateCell.getHeight() == cellHeight)\r\n {\r\n // FOUND IT!\r\n break;\r\n }\r\n else\r\n {\r\n templateCell = null;\r\n }\r\n }\r\n if (templateCell == null)\r\n {\r\n templateCell = findCell( \"\", totalColumnGroupName);\r\n if (templateCell != null && templateCell.getHeight() != cellHeight) templateCell = null;\r\n }\r\n }\r\n\r\n if (templateCell == null)\r\n {\r\n // Default not found!!!! Our cell will be void!\r\n cell = new CrosstabCell();\r\n cell.setParent( this.getCrosstabElement());\r\n cell.setWidth(cellWidth);\r\n cell.setHeight(cellHeight);\r\n cell.setColumnTotalGroup( totalColumnGroupName);\r\n cell.setRowTotalGroup( totalRowGroupName );\r\n }\r\n else\r\n {\r\n cell = templateCell.cloneMe();\r\n cell.setColumnTotalGroup( totalColumnGroupName);\r\n cell.setRowTotalGroup( totalRowGroupName );\r\n cell.setParent( this.getCrosstabElement());\r\n\r\n // Duplicate all elements of this cell, and reassign parent cell...\r\n int currentElements = getCrosstabElement().getElements().size();\r\n for (int i=0; i<currentElements; ++i)\r\n {\r\n ReportElement re = (ReportElement)getCrosstabElement().getElements().elementAt(i);\r\n // WARNING this copy does not support container and group elements!!!\r\n if (re.getCell() == templateCell)\r\n {\r\n re = re.cloneMe();\r\n cell.setColumnTotalGroup(totalColumnGroupName );\r\n cell.setRowTotalGroup(totalRowGroupName );\r\n re.setCell( cell );\r\n getCrosstabElement().getElements().add(re);\r\n }\r\n }\r\n }\r\n\r\n getCrosstabElement().getCells().add( cell );\r\n }\r\n }\r\n }\r\n\r\n }", "private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}", "protected void setBordersFromCell() {\n borderBefore = cell.borderBefore.copy();\n if (rowSpanIndex > 0) {\n borderBefore.normal = BorderSpecification.getDefaultBorder();\n }\n borderAfter = cell.borderAfter.copy();\n if (!isLastGridUnitRowSpan()) {\n borderAfter.normal = BorderSpecification.getDefaultBorder();\n }\n if (colSpanIndex == 0) {\n borderStart = cell.borderStart;\n } else {\n borderStart = BorderSpecification.getDefaultBorder();\n }\n if (isLastGridUnitColSpan()) {\n borderEnd = cell.borderEnd;\n } else {\n borderEnd = BorderSpecification.getDefaultBorder();\n }\n }", "public Cell(){}", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "@Override\n public void initialiseUiCells() {\n }", "public Cell()\n\t{\n\t}", "public Cell ()\n {\n cellStatus = false;\n xCoordinate = 0;\n yCoordinate = 0;\n button = new JButton();\n }", "public void testGetCell() {\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(10, 10);\n assertEquals(MazeCell.INVALID_CELL, maze1.getCell(test));\n test = new Location(-1, -1);\n assertEquals(MazeCell.INVALID_CELL, maze1.getCell(test));\n\n assertEquals(MazeCell.INVALID_CELL, maze1.getCell(test));\n test = new Location(-1, 0);\n assertEquals(MazeCell.INVALID_CELL, maze1.getCell(test));\n test = new Location(0, -1);\n assertEquals(MazeCell.INVALID_CELL, maze1.getCell(test));\n }", "public ZonaFasciculataCells() {\r\n\r\n\t}", "@Test\n public void constExample2() {\n try {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl(-2, 4);\n fail();\n } catch (IllegalArgumentException e) {\n assertEquals(\"Invalid empty cell position (-2,4)\", e.getMessage());\n }\n }", "public Cell() {\r\n\t\tthis.mineCount = 0;\r\n\t\tthis.isFlagged = false;\r\n\t\tthis.isExposed = false;\r\n\t\tthis.isMine = false;\r\n\t}", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public void cbBetweenCells()\n {\n \tif (!m_white.wasSuccess()) \n \t return;\n \n String str = m_white.getResponse();\n Vector<VC> vcs = StringUtils.parseVCList(str);\n new VCDisplayDialog(this, m_guiboard, vcs);\n \n }", "@Before\r\n public void setUp() {\r\n for (byte i = 0; i < length; i++) {\r\n cellToCheckAlive[i] = (byte) (64 + i);\r\n cellToCheckDead[i] = i;\r\n }\r\n }", "public static void initialize()\n {\n\n for(int i = 0; i < cellViewList.size(); i++)\n cellList.add(new Cell(cellViewList.get(i).getId()));\n for (int i = 76; i < 92; i++)\n {\n if (i < 80)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(0).getChess(i-76));\n }\n else if (i < 84)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(1).getChess(i-80));\n }\n else if (i < 88)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(2).getChess(i-84));\n }\n else\n {\n cellList.get(i).setChess(PlayerController.getPlayer(3).getChess(i-88));\n }\n }\n }", "public Cell(DCEL_Face face, Point dualPoint) {\n\t\tthis.face = face;\n\t\tthis.label = 0;\n\t\tthis.dualPoint = dualPoint;\n\n\t}", "public void openCell(Integer xOpen, Integer yOpen){\n \r\n if(isValidCell(xOpen,yOpen)){\r\n // System.out.println(\" openCell(). es celda Valida\");\r\n if(grid[xOpen][yOpen].isMine()){\r\n // System.out.println(\" openCell().Perdiste, habia una mina en g[\"+xOpen+\"][\"+yOpen+\"]\");\r\n //grid[xOpen][yOpen].setStatus(Status.REVEALED);\r\n grid[xOpen][yOpen].setNumber(9);\r\n this.gs = gameStatus.LOSE;\r\n }else{\r\n // System.out.println(\" openCell().No es mina, puede continuar\");\r\n if( grid[xOpen][yOpen].getStatus() == Status.CLOSE ){//si esta cerrado, contar las minas\r\n // System.out.println(\" openCell().Esta cerrada, puede abrirse\");\r\n \r\n int minas = getMines(xOpen,yOpen); //error\r\n this.grid[xOpen][yOpen].setNumber(minas);\r\n \r\n if(minas == 0){ //abre las celdas de alrededor\r\n // System.out.println(\" openCell().Tiene 0 minas alrededor, hay que explotar\");\r\n for(int i=xOpen-1; i<=xOpen+1; i++){\r\n for(int j=yOpen-1; j<=yOpen+1 ;j++){\r\n if( i== xOpen && j==yOpen){\r\n grid[xOpen][yOpen].setStatus(Status.REVEALED);\r\n revealedCells++;\r\n }else\r\n openCell(i,j);\r\n }\r\n }\r\n }else{\r\n // System.out.println(\" openCell().La celda tiene un numero >0, puede abrise\");\r\n \r\n grid[xOpen][yOpen].setStatus(Status.REVEALED);\r\n revealedCells++;\r\n \r\n }\r\n } \r\n }\r\n }else{\r\n // System.out.println(\" openCell().Es una celda no valida\");\r\n }\r\n }", "public Cell() {\n\t\tthis.alive = false; // Initially dead\n\t\tthis.age = 0; // Initially age of 0\n\t}", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "public Cell(Cell original){\n this.i = original.i;\n this.j = original.j;\n this.type = original.type;\n if (original.entity != null) {\n if (original.entity instanceof Agent) {\n Agent agent = (Agent) original.entity;\n this.entity = new Agent(agent);\n }\n else if (original.entity instanceof Box) {\n Box box = (Box) original.entity;\n this.entity = new Box(box);\n }\n }\n else {\n this.entity = null;\n }\n this.goalLetter = original.goalLetter;\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n Range range0 = Range.ofLength(212L);\n range0.getEnd();\n Range range1 = Range.ofLength(126L);\n Range range2 = range0.intersection(range1);\n assertFalse(range2.isEmpty());\n \n Object object0 = new Object();\n boolean boolean0 = range1.equals(range0);\n assertFalse(boolean0);\n \n long long0 = range0.getEnd();\n assertEquals(211L, long0);\n assertFalse(range0.equals((Object)range2));\n \n long long1 = range1.getBegin();\n assertSame(range1, range2);\n assertEquals(0L, long1);\n }", "public void avoidOverlappingCell(Object[] cells2) {\r\n \r\n \t\toverlapping.avoidOverlappingCell(cells2);\r\n \t\tgraphRepaint();\r\n \t\tgraph.getGraphLayoutCache().reload();\r\n \t}", "private void initialize() {\r\n\t\tfor (int i = -1; i < myRows; i++)\r\n\t\t\tfor (int j = -1; j < myColumns; j++) {\r\n\t\t\t\tCell.CellToken cellToken = new Cell.CellToken(j, i);\r\n\r\n\t\t\t\tif (i == -1) {\r\n\t\t\t\t\tif (j == -1)\r\n\t\t\t\t\t\tadd(new JLabel(\"\", null, SwingConstants.CENTER));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tadd(new JLabel(cellToken.columnString(), null,\r\n\t\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\t} else if (j == -1)\r\n\t\t\t\t\tadd(new JLabel(Integer.toString(i), null,\r\n\t\t\t\t\t\t\tSwingConstants.CENTER));\r\n\t\t\t\telse {\r\n\t\t\t\t\tcellArray[i][j] = new CellsGUI(cellToken);\r\n\r\n\t\t\t\t\tsetCellText(cellArray[i][j]);\r\n\t\t\t\t\tcellArray[i][j].addMouseListener(new MouseCellListener());\r\n\t\t\t\t\tcellArray[i][j].addKeyListener(new KeyCellListener());\r\n\t\t\t\t\tcellArray[i][j].addFocusListener(new FocusCellListener());\r\n\r\n\t\t\t\t\tadd(cellArray[i][j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t}", "@Test\n public void constExample2() {\n try {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl(-2, 4);\n fail();\n } catch (IllegalArgumentException e) {\n assertEquals(\"Invalid empty cell position (-2,4)\", e.getMessage());\n }\n }", "private void initialize() {\n setPrefWidth(800);\n\n setupFields();\n\n fillDiffModes();\n\n GridPane mergePanel = new GridPane();\n mergePanel.setVgap(10);\n mergePanel.setHgap(15);\n ColumnConstraints columnLabel = new ColumnConstraints();\n columnLabel.setHgrow(Priority.ALWAYS);\n ColumnConstraints columnValues = new ColumnConstraints();\n columnValues.setHgrow(Priority.NEVER);\n columnValues.setPercentWidth(40);\n ColumnConstraints columnSelect = new ColumnConstraints();\n columnSelect.setHgrow(Priority.NEVER);\n columnSelect.setHalignment(HPos.CENTER);\n // See columnHeadings variable for the headings: 1) field, 2) left content, 3) left arrow, 4) \"none\", 5) right arrow, 6) right content\n mergePanel.getColumnConstraints().setAll(columnLabel, columnValues, columnSelect, columnSelect, columnSelect, columnValues);\n\n setupHeadingRows(mergePanel);\n setupEntryTypeRow(mergePanel);\n setupFieldRows(mergePanel);\n\n ScrollPane scrollPane = new ScrollPane(mergePanel);\n scrollPane.setFitToWidth(true);\n setCenter(scrollPane);\n\n updateFieldValues(allFields);\n\n updateMergedEntry();\n\n getStylesheets().add(0, MergeEntries.class.getResource(\"MergeEntries.css\").toExternalForm());\n }", "@Override\n\tpublic Cell createCell(int arg0, int arg1) {\n\t\treturn null;\n\t}", "private void init() {\n \t\t// Initialise border cells as already visited\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tvisited[x][0] = true;\n \t\t\tvisited[x][size + 1] = true;\n \t\t}\n \t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\tvisited[0][y] = true;\n \t\t\tvisited[size + 1][y] = true;\n \t\t}\n \t\t\n \t\t\n \t\t// Initialise all walls as present\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\t\tnorth[x][y] = true;\n \t\t\t\teast[x][y] = true;\n \t\t\t\tsouth[x][y] = true;\n \t\t\t\twest[x][y] = true;\n \t\t\t}\n \t\t}\n \t}", "void method0() {\nprivate double edgeCrossesIndicator = 0;\n/** counter for additions to the edgeCrossesIndicator\n\t\t */\nprivate int additions = 0;\n/** the vertical level where the cell wrapper is inserted\n\t\t */\nint level = 0;\n/** current position in the grid\n\t\t */\nint gridPosition = 0;\n/** priority for movements to the barycenter\n\t\t */\nint priority = 0;\n/** reference to the wrapped cell\n\t\t */\nVertexView vertexView = null;\n}", "public void punishment(){\n\t\tthis.cell = 0;\n\t}", "public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public CvsDiffFrame(CvsDiff diff) {\n this.diff = diff;\n initComponents ();\n setTitle(org.openide.util.NbBundle.getBundle(CvsDiffFrame.class).getString(\"CvsDiffFrame.title\"));\n //SwingUtilities.invokeLater(new Runnable () {\n //public void run () {\n //initScrollBars();\n //pack ();\n //}\n //});\n initScrollBars();\n pack ();\n HelpCtx.setHelpIDString (getRootPane (), CvsDiffFrame.class.getName ());\n }", "public void checkOverlap() {\n\n // Logic that validates overlap.\n if(redCircle.getBoundsInParent().intersects(blueCircle.getBoundsInParent())) {\n title.setText(\"Two circles intersect? Yes\");\n }\n else {\n title.setText(\"Two circles intersect? No\");\n }\n\n // Update fields in red table.\n redCircleCenterXValue.setText(String.valueOf(redCircle.getCenterX()));\n redCircleCenterYValue.setText(String.valueOf(redCircle.getCenterY()));\n redCircleRadiusValue.setText(String.valueOf(redCircle.getRadius()));\n\n // Update fields in blue table.\n blueCircleCenterXValue.setText(String.valueOf(blueCircle.getCenterX()));\n blueCircleCenterYValue.setText(String.valueOf(blueCircle.getCenterY()));\n blueCircleRadiusValue.setText(String.valueOf(blueCircle.getRadius()));\n }", "public Cell()\n\t{\n\t\tthis.alive = 0;\n\t\tthis.neighbors = 0;\n\t}", "@Disabled(\"DAQ-2088 Fails because expecting units\")\n\t@Test\n\tpublic void checkInitialValues() throws Exception {\n\t\tassertEquals(bbox.getxAxisName(), bot.table(0).cell(0, 1));\n\t\tassertEquals(bbox.getxAxisStart()+\" mm\", bot.table(0).cell(1, 1));\n\t\tassertEquals(bbox.getxAxisLength()+\" mm\", bot.table(0).cell(2, 1));\n\t\tassertEquals(bbox.getyAxisName(), bot.table(0).cell(3, 1));\n\t\tassertEquals(bbox.getyAxisStart()+\" K\", bot.table(0).cell(4, 1));\n\t\tassertEquals(bbox.getyAxisLength()+\" K\", bot.table(0).cell(5, 1));\n\n\t}", "Diff() {\n\t}", "public void setCell(boolean upR, boolean upL, boolean doR, boolean doL){\n upperRight = upR;\n upperLeft = upL;\n downerRight = doR;\n downerLeft = doL;\n }", "public Cell(DCEL_Face face) {\n\t\tthis(face, -1);\n\n\t}", "public NotebookCell() {}", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "void testDrawCell(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.indexHelp(0, 0).drawCell(2),\r\n new FrameImage(new RectangleImage(Cnst.boardWidth / 2, Cnst.boardHeight / 2,\r\n OutlineMode.SOLID, Color.ORANGE)));\r\n t.checkExpect(this.game3.indexHelp(0, 0).drawCell(3),\r\n new FrameImage(new RectangleImage(Cnst.boardWidth / 3, Cnst.boardHeight / 3,\r\n OutlineMode.SOLID, Color.GREEN)));\r\n t.checkExpect(this.game5.indexHelp(0, 0).drawCell(4),\r\n new FrameImage(new RectangleImage(Cnst.boardWidth / 4, Cnst.boardHeight / 4,\r\n OutlineMode.SOLID, Color.PINK)));\r\n t.checkExpect(this.game2.indexHelp(-1, -1).drawCell(1), new EmptyImage());\r\n }", "@Test \n\tpublic void checkEquality() {\n\t\tassertTrue(testCell.equals(testCell));\n\t\tassertFalse(testCell.equals(new Cell(false)));\n\n\t}", "public ConstRect(final Rectangle2D rect)\r\n {\r\n x = (int) Math.round(rect.getX());\r\n y = (int) Math.round(rect.getY());\r\n width = (int) Math.round(rect.getWidth());\r\n height = (int) Math.round(rect.getHeight());\r\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\r\n public void testGetOverlappingTimeCells() {\r\n assertEquals(9, cellToInsert.getOverlappingTimeCells(listToCompare).size());\r\n }", "public DataCell( final boolean right, final boolean sameAsPrev ) {\n super();\n this.right = right;\n this.sameAsPrev = sameAsPrev;\n }", "public void setDiff(){\n diff=true;\n }", "@Test\n public void constExample1() {\n try {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl(0, 0);\n fail();\n } catch (IllegalArgumentException e) {\n assertEquals(\"Invalid empty cell position (0,0)\", e.getMessage());\n }\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "private void initialize() {\n // Create a panel with the labels for the colorbar.\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.LINE_AXIS));\n labelPanel.add(minLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(medLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(maxLabel);\n\n // Add the color panel\n gradientPanel = new LinearGradientTools.ColorGradientPanel();\n\n // Add the panel indicating the error value color.\n errorPanel = new JPanel();\n //errorPanel.setBackground(heatMapModel.getColorScheme().getErrorReadoutColor());\n\n // Create a label for the panel indicating the missing value color.\n errorLabel = new JLabel(\" Err \");\n errorLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Add the panel indicating the missing value color.\n JPanel emptyPanel = new JPanel();\n emptyPanel.setBackground(ColorScheme.EMPTY_READOUT);\n\n // Create a label for the panel indicating the missing value color.\n emptyLabel = new JLabel(\" Empty \");\n emptyLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Set the font of the labels\n setLabelFont(labelFontSize);\n\n // Add the component to the main panel\n setLayout(new GridBagLayout());\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 0.9;\n constraints.fill = GridBagConstraints.BOTH;\n add(gradientPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(labelPanel, constraints);\n\n constraints.gridx = 1;\n constraints.weightx = -1;\n add(errorLabel, constraints);\n constraints.gridy = 0;\n constraints.weighty = 0.9;\n add(errorPanel, constraints);\n\n constraints.gridx = 2;\n add(emptyPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(emptyLabel, constraints);\n }", "public BoardCell(int x, int y){\n xCor=x;\n yCor=y;\n }", "private void makeEntranceAndExit() {\n int rowView = calcRowViewAndWalk(rowEntry, Direction.up);\r\n int colView = calcColViewAndWalk(colEntry, Direction.up);\r\n setCell(rowView, colView, Cell.corridor);\r\n \r\n rowView = calcRowViewAndWalk(rowExit, Direction.down);\r\n colView = calcColViewAndWalk(colExit, Direction.down);\r\n setCell(rowView, colView, Cell.corridor);\r\n }", "public Cell(){\n \tthis.shot=false;\n }", "private static void initField() {\n\t\tfield = new Field(nRows, nColumns);\n\t\tfor (int i = 0; i < field.getNRows(); i++)\n\t\t\tfor (int j = 0; j < field.getNColumns(); j++) {\n\t\t\t\tfield.place(i, j, new Cell(i, j, cellSize, 0));\n\t\t\t}\n\t\t/* Sets some of the cells to be mine randomly */\n\t\tfor (int i = 0; i < nMines; i++) {\n\t\t\tint x = rand.nextInt(nRows);\n\t\t\tint y = rand.nextInt(nColumns);\n\t\t\tif (!field.getCellAt(x, y).hasMine()) // If the cell at (x,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// y)is not a mine\n\t\t\t\tfield.getCellAt(x, y).setToHasMine();// Sets it to be a mine\n\t\t\telse\n\t\t\t\ti--;\n\t\t}\n\t\t/* Calculates the flag of other cells */\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tif (field.getCellAt(i, j).hasMine()) // If this cell has a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine\n\t\t\t\t\tcontinue;\n\t\t\t\tCell[] cellsAround = field.getCellsAround(i, j);\n\t\t\t\tint count = 0;\n\t\t\t\tfor (Cell cell : cellsAround) // cells around\n\t\t\t\t\tif (cell.hasMine())\n\t\t\t\t\t\tcount++;\n\t\t\t\tfield.getCellAt(i, j).setFlag(count);\n\t\t\t}\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new MigLayout(\"\", \"[grow,left][grow 20][grow,right]\", \"[][][][][][]\"));\r\n\t\t\r\n\t\tlblJoueur_1 = new JLabel(\"Joueur 1 :\");\r\n\t\tframe.getContentPane().add(lblJoueur_1, \"cell 0 1,alignx right\");\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\tframe.getContentPane().add(textField_1, \"cell 2 1,growx\");\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\tlblJoueur_2 = new JLabel(\"Joueur 2 :\");\r\n\t\tframe.getContentPane().add(lblJoueur_2, \"cell 0 3,alignx right\");\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\tframe.getContentPane().add(textField_2, \"cell 2 3,growx\");\r\n\t\ttextField_2.setColumns(10);\r\n\t\t\r\n\t\tJButton btnOk = new JButton(\"OK\");\r\n\t\tframe.getContentPane().add(btnOk, \"cell 1 5,alignx center\");\r\n\t\t\r\n\t\tbtnOk.addActionListener(actionOK);\r\n\t\t\r\n\t\t\r\n\t}", "public Cell(boolean cellStatus, int xCoordinate, int yCoordinate)\n {\n this.cellStatus = cellStatus;\n\n if (xCoordinate >= 0)\n {\n this.xCoordinate = xCoordinate;\n }\n else \n {\n this.xCoordinate = 0;\n }// end of if (xCoordinate >= 0)\n\n if (yCoordinate >= 0)\n {\n this.yCoordinate = yCoordinate;\n }\n else \n {\n this.yCoordinate = 0;\n } // end of if (yCoordinate >= 0)\n\n button = new JButton();\n }", "private void initTables()\n {\n if ( vc == null )\n {\n // statics are not initialised yet\n vc = new char[ 64 ];\n cv = new int[ 256 ];\n // build translate valueToChar table only once.\n // 0..25 -> 'A'..'Z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i ] = ( char ) ( 'A' + i );\n }\n // 26..51 -> 'a'..'z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i + 26 ] = ( char ) ( 'a' + i );\n }\n // 52..61 -> '0'..'9'\n for ( int i = 0; i <= 9; i++ )\n {\n vc[ i + 52 ] = ( char ) ( '0' + i );\n }\n vc[ 62 ] = spec1;\n vc[ 63 ] = spec2;\n // build translate charToValue table only once.\n for ( int i = 0; i < 256; i++ )\n {\n cv[ i ] = IGNORE;// default is to ignore\n }\n for ( int i = 0; i < 64; i++ )\n {\n cv[ vc[ i ] ] = i;\n }\n cv[ spec3 ] = PAD;\n }\n valueToChar = vc;\n charToValue = cv;\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public DataCell() {\n super();\n }", "private void setTable(){\r\n\t\tfor(int i=0;i<100;++i)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<100;++j)\r\n\t\t\t{\r\n\t\t\t\tif(game.checkCell(i,j)==true)\r\n\t\t\t\t{\r\n\t\t\t\t\tmap[i][j].setBackground(Color.black);\r\n\t\t\t\t\tmap[i][j].setBounds(j*5,i*5, 5, 5);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tmap[i][j].setBackground(Color.blue);\r\n\t\t\t\t\tmap[i][j].setBounds(j*5,i*5, 5, 5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void shallowPopulate()\n\t{\n\t\tfor(int y = 0; y < mySizeY; y++)\t\t \n\t\t\tfor(int x = 0; x < mySizeX; x++)\t\t\t\n\t\t\t\tadd(new FirstCell(this, x, y));\n\t}", "public void init2() {\n }", "public void init2() {\n }", "public CellReference(Cell cell) {\n\t\tthis(cell, false, false);\n\t}", "public BranchAndBound() {\n this.timeFi = Long.parseLong(\"2000000000000\");;\n this.numSoluciones = 0;\n }", "public Table() {\n // <editor-fold desc=\"Initialize Cells\" defaultstate=\"collapsed\">\n for (int row = 0; row < 3; row++) {\n for (int column = 0; column < 3; column++) {\n if (cells[row][column] == null) {\n cells[row][column] = new Cell(row, column);\n }\n }\n }\n // </editor-fold>\n }", "@Override\n\tpublic void placementcell() {\n\t\t\n\t}", "TestTube(int initialCellCount) {\n if (initialCellCount == 0 || initialCellCount > 10e4) {\n throw new IllegalArgumentException(\"initial cell count should be above 1 and below 10e4: \" + initialCellCount);\n }\n //initialize the array with new Cells\n cells = new Cell[initialCellCount];\n for (int i = 0; i < initialCellCount; i++) {\n cells[i] = new Cell();\n }\n }", "public ConstRect(final ConstRect rect)\r\n {\r\n x = rect.x;\r\n y = rect.y;\r\n width = rect.width;\r\n height = rect.height;\r\n }", "static public int[][] buildTable()\r\n\t{\r\n\r\n\r\n\t\tint list[][] = new int[h+1][w+1]; // these values are hardcoded in for the table size\r\n\t\tint penalty = 2; // the gap penalty laid out in the program specs.\r\n\t\tint k = 0;\r\n\r\n\t\t// this loop initializes the first row and column of the table to multiples of two\r\n\t\t// this helps to account for the gap penalty\r\n\t\tfor(int i = 0; i < w; i++)\r\n\t\t{\r\n\t\t\tlist[0][i] = k;\r\n\t\t\tif(i < h)\r\n\t\t\t{\r\n\t\t\t\tlist[i][0] = k;\r\n\t\t\t}\r\n\t\t\tk+=2;\r\n\t\t}\r\n\r\n\t\t// this loop uses a dynamic programming approach to build the table.\r\n\t\t// starting at location (1,1), it takes the min of up + 2, left + 2, and Diagonal + 1 if ther's a mismatch and 0 if match\r\n\t\t// the addition of 2 to the up and left variables accounts for the gap penalty\r\n\t\t// adding 1 to the diagonal accounts for the penalty of a mismatch\r\n\t\tfor(int i = 1; i <= h; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 1; j <= w; j++)\r\n\t\t\t{\r\n\t\t\t\tint left = list[i][j-1];\r\n\t\t\t\tint up = list[i-1][j];\r\n\t\t\t\tint diag = list[i-1][j-1];\r\n\r\n\t\t\t\t// checks for possible mismatch, adds 1 if found\r\n\t\t\t\tif(text1[j] != text2[i])\r\n\t\t\t\t{\r\n\t\t\t\t\tdiag++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//finds min between left and up\r\n\t\t\t\tif(up < left)\r\n\t\t\t\t{\r\n\t\t\t\t\tk = up;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tk = left;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// finds min between diagonal and min(left,up) + 2 for gap penalty\r\n\t\t\t\t// we the min because we are looking for the shortest edit distance\r\n\t\t\t\tif(diag < (k+penalty))\r\n\t\t\t\t{\n\t\t\t\t\tlist[i][j] = diag;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\n\t\t\t\t\tlist[i][j] = k+penalty;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\n\t\treturn list;\r\n\t}", "private Exemplar (NNge nnge, Instances inst, int size, double classV){\n\n super(inst, size);\n m_NNge = nnge;\n m_ClassValue = classV;\n m_MinBorder = new double[numAttributes()];\n m_MaxBorder = new double[numAttributes()];\n m_Range = new boolean[numAttributes()][];\n for(int i = 0; i < numAttributes(); i++){\n\tif(attribute(i).isNumeric()){\n\t m_MinBorder[i] = Double.POSITIVE_INFINITY;\n\t m_MaxBorder[i] = Double.NEGATIVE_INFINITY;\n\t m_Range[i] = null;\n\t} else {\n\t m_MinBorder[i] = Double.NaN;\n\t m_MaxBorder[i] = Double.NaN;\n\t m_Range[i] = new boolean[attribute(i).numValues() + 1];\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t m_Range[i][j] = false;\n\t }\n\t}\n }\n }", "@Test\n public void testConvertHalCellInfoList_1_2ForLTEWithEmptyMccMnc() {\n ArrayList<CellInfo> ret = getCellInfoListForLTE(\n String.valueOf(Integer.MAX_VALUE), String.valueOf(Integer.MAX_VALUE),\n ALPHA_LONG, ALPHA_SHORT);\n\n assertEquals(1, ret.size());\n CellInfoLte cellInfoLte = (CellInfoLte) ret.get(0);\n CellInfoLte expected = new CellInfoLte();\n expected.setRegistered(false);\n expected.setTimeStamp(TIMESTAMP);\n CellIdentityLte cil = new CellIdentityLte(\n CI, PCI, TAC, EARFCN, new int[] {}, BANDWIDTH, null, null, ALPHA_LONG,\n ALPHA_SHORT, Collections.emptyList(), null);\n CellSignalStrengthLte css = new CellSignalStrengthLte(\n RSSI, RSRP, RSRQ, RSSNR, CQI, TIMING_ADVANCE);\n expected.setCellIdentity(cil);\n expected.setCellSignalStrength(css);\n expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE);\n cellInfoLte.setTimeStamp(TIMESTAMP); // override the timestamp\n assertEquals(expected, cellInfoLte);\n }", "public Cell(int col, int row){ // constructor\n this.col = col;\n this.row = row;\n }", "public void init(int wdt, int hgt, Player player, List<Guard> guards, List<Item> treasures, Cell[][] cells, int wdtPortail, int hgtPortail);", "@Test\n public void constExample1() {\n try {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl(0, 1);\n fail();\n } catch (IllegalArgumentException e) {\n assertEquals(\"Invalid empty cell position (0,1)\", e.getMessage());\n }\n }", "public Cell(int x,int y){\r\n this.x = x;\r\n this.y = y;\r\n level = 0;\r\n occupiedBy = null;\r\n }", "private void initializeGrid() {\r\n if (this.rowCount > 0 && this.columnCount > 0) {\r\n this.cellViews = new Rectangle[this.rowCount][this.columnCount];\r\n for (int row = 0; row < this.rowCount; row++) {\r\n for (int column = 0; column < this.columnCount; column++) {\r\n Rectangle rectangle = new Rectangle();\r\n rectangle.setX((double)column * CELL_WIDTH);\r\n rectangle.setY((double)row * CELL_WIDTH);\r\n rectangle.setWidth(CELL_WIDTH);\r\n rectangle.setHeight(CELL_WIDTH);\r\n this.cellViews[row][column] = rectangle;\r\n this.getChildren().add(rectangle);\r\n }\r\n }\r\n }\r\n }", "private static void InitializeCells()\n {\n cells = new Cell[Size][Size];\n\n for (int i = 0; i < Size; i++)\n {\n for (int j = 0; j < Size; j++)\n {\n cells[i][j] = new Cell(i, j);\n }\n }\n }", "public RCellBlock( Sheet sheet, int startRowIndex, int startColIndex, \n \tint nRows, int nCols, boolean create)\n {\n cells = new Cell[nCols][nRows];\n noRows = nRows;\n noCols = nCols;\n \n\t\tfor (int i = 0; i < nRows; i++) {\n\t\t\tRow r = sheet.getRow(startRowIndex + i);\n\t\t\tif (r == null) { // row is not already there\n\t\t\t\tif (create)\n\t\t\t\t\tr = sheet.createRow(startRowIndex + i);\n\t\t\t\telse\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Row \"\n\t\t\t\t\t\t\t\t\t+ (startRowIndex + i)\n\t\t\t\t\t\t\t\t\t+ \" doesn't exist in the sheet. Need to call with argument create=TRUE.\");\n\t\t\t}\n\t\t\t\n\t\t\tfor (int j = 0; j < nCols; j++) {\n\t\t\t\tcells[j][i] = create ? r.createCell(startColIndex+j)\n : r.getCell(startColIndex+j, Row.CREATE_NULL_AS_BLANK);\n\t\t\t}\n\t\t}\n\t}", "Cell(int xpos, int ypos, int status)\n {\n this.X = xpos;\n this.Y = ypos;\n this.status = status;\n if (status == 0)\n {\n cell.setVisible(false);\n }\n cell.setFill(Color.WHITE);\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public JTable crtTBLPNL1(JPanel LP_TBLPNL,String[] LP_COLHD,int LP_ROWCNT,int LP_XPOS,int LP_YPOS,int LP_WID,int LP_HGT,int[] LP_ARRGSZ){ \n\t try{\n\t\t cl_tab2 L_TBLOBJ1; \n\t\t JPanel pnlTAB1 = new JPanel();\n\t\t Object[][] L_TBLDT1;\n\t\t L_TBLDT1 = crtTBLDAT(LP_ROWCNT,LP_COLHD.length); // Creating the Object Data\n\t\t L_TBLOBJ1 = new cl_tab2(L_TBLDT1,LP_COLHD);\n\t\t JTable L_TBL1 = new JTable(L_TBLOBJ1); \n\t\t L_TBL1.setBackground(new Color(213,213,255));\n\t\t int h1 = JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS;\n\t\t int v1 = JScrollPane.VERTICAL_SCROLLBAR_ALWAYS;\n\t\t JScrollPane jspTBL1 = new JScrollPane(L_TBL1,v1,h1);\n\t\t jspTBL1.setPreferredSize(new Dimension(LP_WID-25,LP_HGT-25));\n\t\t jspTBL1.setLocation(0,100);\n\t\t pnlTAB1.removeAll();\n\t\t setCOLWDT(L_TBL1,LP_COLHD,LP_ARRGSZ);\n\t\t pnlTAB1.add(jspTBL1);\n\t\t pnlTAB1.setSize(LP_WID,LP_HGT);\n\t\t pnlTAB1.setLocation(LP_XPOS,LP_YPOS);\n\t\t LP_TBLPNL.add(pnlTAB1);\n\t\t LP_TBLPNL.updateUI();\n\t\treturn L_TBL1;\n\t }catch(Exception L_EX){\n\t\t System.out.println(\"crtTBLPNL1 \"+L_EX);\n\t }\n\treturn null;\n }", "public void compareTwoRows(XSSFRow row1, XSSFRow row2, XSSFRow row3,XSSFWorkbook xssfWorkbook,CellStyle cellStyle) {\n Cell sheet1RequestId = null;\n Cell sheet1Barcode = null;\n Cell sheet1Status = null;\n Cell sheet2RequestId = null;\n Cell sheet2Barcode = null;\n Cell sheet2Status = null;\n String sheet1LasStatus = null;\n String[] sheet1 = new String[3];\n String[] sheet2 = new String[3];\n if (row1 != null){\n sheet1RequestId = getRowValuesForCompare(row1,0);\n sheet1Barcode = getRowValuesForCompare(row1,1);\n sheet1Status = getRowValuesForCompare(row1,10);\n }\n if(row2 != null){\n sheet2RequestId = getRowValuesForCompare(row2,0);\n sheet2Barcode = getRowValuesForCompare(row2,1);\n sheet2Status = getRowValuesForCompare(row2,10);\n }\n if (checkCellIsNotEmpty(sheet1RequestId)){\n sheet1[0] = sheet1RequestId.getStringCellValue();\n }\n if (checkCellIsNotEmpty(sheet1Barcode)){\n sheet1[1] = sheet1Barcode.getStringCellValue().toUpperCase();\n }\n if (checkCellIsNotEmpty(sheet2RequestId)){\n sheet2[0] = sheet2RequestId.getStringCellValue();\n }\n if (checkCellIsNotEmpty(sheet2Barcode)){\n sheet2[1]=sheet2Barcode.getStringCellValue();\n }\n if (checkCellIsNotEmpty(sheet1Status)){\n sheet1LasStatus = getLasStatusForCompare(sheet1Status, sheet1);\n }\n if(checkCellIsNotEmpty(sheet2Status)){\n sheet2[2] = sheet2Status.getStringCellValue();\n }\n boolean equalRow = Arrays.equals(sheet1, sheet2);\n buidComparisionSheet(row3, xssfWorkbook, sheet1LasStatus, sheet1, sheet2, equalRow,cellStyle);\n }", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }" ]
[ "0.5862332", "0.58467644", "0.5724952", "0.5709777", "0.5684197", "0.56554335", "0.55327374", "0.55039644", "0.53858244", "0.5383746", "0.5383129", "0.53730935", "0.5364523", "0.53510463", "0.5310882", "0.5300234", "0.5287126", "0.52802664", "0.52695805", "0.52308995", "0.52301604", "0.5222668", "0.52038115", "0.5203018", "0.5201392", "0.51794875", "0.51640105", "0.5159994", "0.5158118", "0.51495284", "0.51461345", "0.51340955", "0.5109136", "0.51051867", "0.50916344", "0.50754374", "0.5074913", "0.50642115", "0.5049819", "0.504663", "0.50397944", "0.5034107", "0.50327337", "0.5020915", "0.50134677", "0.50127614", "0.5002499", "0.49991345", "0.49942148", "0.49878502", "0.4981801", "0.49742898", "0.49723405", "0.4969563", "0.49682546", "0.49679214", "0.49432296", "0.4935845", "0.4932336", "0.49180794", "0.49155366", "0.49151355", "0.4915096", "0.49129808", "0.49124402", "0.49095967", "0.4903963", "0.4901768", "0.4900932", "0.48972565", "0.48911896", "0.48900068", "0.48866817", "0.48833847", "0.48827043", "0.48820338", "0.48757285", "0.4874858", "0.4874858", "0.48685926", "0.48647442", "0.48647356", "0.4863882", "0.48623842", "0.48623732", "0.48594335", "0.48542047", "0.4849644", "0.48469922", "0.48411852", "0.4839387", "0.48380983", "0.48317102", "0.48265818", "0.4825973", "0.48235682", "0.48234504", "0.48211384", "0.48203683", "0.481775" ]
0.52694154
19
/ Difference between HashMap and TreeMap HashMap Adds the values in any Order TreeMap Adds values in Sorted Order (Sorting happens based on Key)
public static void main(String args[]) { // Create a hash map TreeMap<String, Integer> tm = new TreeMap<String, Integer>(); // Put elements to the map tm.put("Thierry", 700); tm.put("Madhavi", 500); tm.put("Felix", 100); tm.put("Ruifeng", 900); tm.put("Raj", 200); // Get an iterator Set keySet = tm.keySet(); Iterator<String> i = keySet.iterator(); // Display elements while (i.hasNext()) { String key = i.next(); System.out.print("Key : " + key); System.out.println(" Value = " + tm.get(key)); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void sortbykey()\n {\n /* List<Integer> sortedKeys = new ArrayList<Integer>(map.keySet());\n Collections.sort(sortedKeys);\n\n for(int key : sortedKeys)\n {\n System.out.println(key +\" \"+map.get(key));\n }*/\n //OR\n\n /* Map<Integer,String> treeMap = new TreeMap<Integer, String>(map);\n\n for(Map.Entry<Integer,String> entry : treeMap.entrySet())\n {\n System.out.println(entry.getKey() +\" \"+entry.getValue());\n }\n*/\n //OR\n Map<Integer,String> treeMap1 = new TreeMap<>((Comparator<Integer>) (o1, o2) -> o1.compareTo(o2));\n\n treeMap1.putAll(map);\n for(Map.Entry<Integer,String> entry : treeMap1.entrySet())\n {\n System.out.println(entry.getKey() +\" \"+entry.getValue());\n }\n }", "public static void Test() {\t\t\n\t\tTreeMap<String, Integer> treeMap = new TreeMap<String, Integer>();\n\t\ttreeMap.put(\"Key#1\", 1);\n\t\ttreeMap.put(\"Key#2\", 2);\n\t\ttreeMap.put(\"Key#2\", 3); // Duplicate is not allowed. Replaces old value with new\n\t\t//treeMap.put(null, 1); //NULL key is not allowed; throws NPE \n\t\t//treeMap.put(null, 2);\n\t\tSystem.out.println(\"Tree Map: \" + treeMap.toString());\n\t\t\n\t\t// Sorts key based on natural ordering (sorts in \"ascending order\")\n\t\tTreeMap<MapKey<String>, Integer> treeMap2 = new TreeMap<MapKey<String>, Integer>(); // uses \"natural ordering\" provided by the key object for comparison i.e. MapKey.compareTo() method\n\t\ttreeMap2.put(new MapKey<String>(\"x\"), 1);\n\t\ttreeMap2.put(new MapKey<String>(\"y\"), 2);\t\t\n\t\t// Comparable\n\t\tboolean status = treeMap2.put(new MapKey<String>(\"z\"), 3) == null;\n\t\tMapKey<String> mapKey = new MapKey<String>(\"xyz\");\t\t\n\t\tstatus = treeMap2.put(mapKey, 123) == null;\n\t\tstatus = treeMap2.put(mapKey, 1234) == null;\n\t\tSystem.out.println(\"Tree Map: \" + treeMap2.toString());\n\t\t\n\t\tTreeMap<String, Integer> treeMap3 = new TreeMap<String, Integer>(new TestComparator());\n\t\t\n\t\tTreeMap<MyKey, Integer> treeMap4 = new TreeMap<MyKey, Integer>();\n\t\ttreeMap4.put(new MyKey(), 10);\n\t\ttreeMap4.put(new MyKey(), 20);\n\t\t\n\t\t\n\t}", "public static void sortbyValue()\n {\n //1. Create a list from elements of HashMap\n List<Map.Entry<Integer,String>> list = new LinkedList<>(map.entrySet());\n\n //2. Sort the list -- >Sory via Value\n //Collections.sort(list, (Map.Entry<Integer,String> o1,Map.Entry<Integer,String> o2) -> (o1.getKey().compareTo(o2.getKey())));\n\n //2. Sort the list -- >Sory via Key\n Collections.sort(list, (Map.Entry<Integer,String> o1,Map.Entry<Integer,String> o2) -> (o1.getValue().compareTo(o2.getValue())));\n\n \n //3. Put data from sorted list to map\n Map<Integer,String> temp = new LinkedHashMap<Integer,String>();\n\n for(Map.Entry<Integer,String> entry : list)\n {\n temp.put(entry.getKey(), entry.getValue());\n }\n\n //4. Printing the data from map\n for(Map.Entry<Integer,String> entry : temp.entrySet())\n {\n System.out.println(entry.getKey()+\" \"+entry.getValue());\n }\n }", "public static void main(String[] args) {\n\t\tMap hashmap = new HashMap();\r\n\t\tMap treemap = new TreeMap();\r\n\t\t// JDK 1.4+ only\r\n\t\tMap linkedMap = new LinkedHashMap();\r\n\t\tSet s;\r\n\t\tIterator i;\r\n\t\t\r\n\t\t/// HASHMAP\r\n\t\thashmap.put(\"Three\", \"Three\");\r\n\t\thashmap.put(\"Three\", \"Three\"); // This entry overwrites the previous\r\n\t\thashmap.put(\"One\", \"One\");\r\n\t\thashmap.put(\"Two\", \"Two\");\r\n\t\thashmap.put(\"Six\", \"Six\");\r\n\t\thashmap.put(\"Seven\", \"Seven\");\r\n\t\t// Order is NOT guaranteed to be consistent; no duplicate keys\r\n\t\tSystem.out.println(\"Unordered Contents of HashMap:\");\r\n\t\t\r\n\t\t/*\r\n\t\t * To iterate over items in a Map, you must first retrieve a Set of all \r\n\t\t * of its keys. Then, iterate over the keys and use each key to retrieve \r\n\t\t * the value object from the Map.\r\n\t\t */\r\n\t\ts = hashmap.keySet();\r\n\t\t// A Map does not have an iterator, but a Set DOES ... why?\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\t// Example of how to retreive and view the key\r\n\t\t\tObject key = i.next();\r\n\t\t\tSystem.out.println( key );\r\n//\t\t\tSystem.out.println( \"Key: \" + key );\r\n\t\t\t// Now retrieve and view the Map value using that key\r\n//\t\t\tString value = (String)hashmap.get(key);\r\n//\t\t\tSystem.out.println( \"Value: \" + value );\r\n\t\t}\r\n\t\t\r\n\t\t/// LINKEDHASHMAP\r\n\t\tlinkedMap.put(\"Three\", \"Three\");\r\n\t\tlinkedMap.put(\"Three\", \"Three\"); // This entry overwrites the previous\r\n\t\tlinkedMap.put(\"One\", \"One\");\r\n\t\tlinkedMap.put(\"Two\", \"Two\");\r\n\t\tlinkedMap.put(\"Six\", \"Six\");\r\n\t\tlinkedMap.put(\"Seven\", \"Seven\");\r\n\t\t// Order IS guaranteed to be consistent (LRU - Entry order)\r\n\t\tSystem.out.println(\"\\nOrdered (Entry Order) Contents of LinkedHashMap:\");\r\n\t\ts = linkedMap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\r\n\t\t/// TREEMAP\r\n\t\ttreemap.put(\"Three\", \"Three\");\r\n\t\ttreemap.put(\"Three\", \"Three\");\r\n\t\ttreemap.put(\"Two\", \"Two\");\r\n\t\ttreemap.put(\"Seven\", \"Seven\");\r\n\t\ttreemap.put(\"One\", \"One\");\r\n\t\ttreemap.put(\"Six\", \"Six\");\r\n\t\t// Keys guaranteed to be in sorted order, no duplicate keys\r\n\t\tSystem.out.println(\"\\nOrdered (Sorted) Contents of TreeMap:\");\r\n\t\ts = treemap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t\t\r\n\t\t// Integer Object values\r\n\t\thashmap = new HashMap();\r\n\t\thashmap.put( \"Three\", new Integer(3) );\r\n\t\thashmap.put( \"Three\", new Integer(3) );\r\n\t\thashmap.put( \"One\", new Integer(1) );\r\n\t\thashmap.put( \"Two\", new Integer(2) );\r\n\t\thashmap.put( \"Six\", new Integer(6) );\r\n\t\thashmap.put( \"Seven\", new Integer(7) );\r\n\t\t\r\n\t\tSystem.out.println(\"\\nContents of HashMap:\");\r\n\t\ts = hashmap.keySet();\r\n\t\ti = s.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t\t\r\n\t\t// Keys guaranteed to be in sorted order, no duplicate keys\r\n\t\ttreemap = new TreeMap();\r\n\t\ttreemap.put( \"Three\", new Integer(3) );\r\n\t\ttreemap.put( \"Three\", new Integer(3) );\r\n\t\ttreemap.put( \"Two\", new Integer(2) );\r\n\t\ttreemap.put( \"Seven\", new Integer(7) );\r\n\t\ttreemap.put( \"One\", new Integer(1) );\r\n\t\ttreemap.put( \"Six\", new Integer(6) );\r\n\t\t\r\n\t\tSystem.out.println(\"\\nContents of TreeMap:\");\r\n\t\ts = treemap.keySet();\r\n\t\ti = s.iterator();\r\n\t\t\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tSystem.out.println( i.next() );\r\n\t\t}\r\n\t}", "private static HashMap<String, Integer> sortByValue(HashMap<String, Integer> unsortMap) {\n\t\tList<HashMap.Entry<String, Integer>> list = new LinkedList<HashMap.Entry<String, Integer>>(\n\t\t\t\tunsortMap.entrySet());\n\n\t\t// 2. Sort list with Collections.sort(), provide a custom Comparator\n\t\t// Try switch the o1 o2 position for a different order\n\t\tCollections.sort(list, new Comparator<HashMap.Entry<String, Integer>>() {\n\t\t\tpublic int compare(HashMap.Entry<String, Integer> o1, HashMap.Entry<String, Integer> o2) {\n\t\t\t\treturn (o2.getValue()).compareTo(o1.getValue());\n\t\t\t}\n\t\t});\n\n\t\t// 3. Loop the sorted list and put it into a new insertion order Map\n\t\t// LinkedHashMap\n\t\tHashMap<String, Integer> sortedMap = new LinkedHashMap<String, Integer>();\n\t\tfor (HashMap.Entry<String, Integer> entry : list) {\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\n\t\t/*\n\t\t * //classic iterator example for (Iterator<Map.Entry<String, Integer>>\n\t\t * it = list.iterator(); it.hasNext(); ) { Map.Entry<String, Integer>\n\t\t * entry = it.next(); sortedMap.put(entry.getKey(), entry.getValue()); }\n\t\t */\n\n\t\treturn sortedMap;\n\t}", "public void sortbykey(HashMap map1)\n {\n TreeMap<Integer, File> sorted = new TreeMap<>();\n\n // Copy all data from hashMap into TreeMap\n sorted.putAll(map1);\n\n // Display the TreeMap which is naturally sorted\n for (Map.Entry<Integer, File> entry : sorted.entrySet())\n System.out.println(\"Key = \" + entry.getKey() +\n \", Value = \" + entry.getValue());\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tTreeSet<Object> treeSet = new TreeSet<Object>();\r\n\t treeSet.add(45);\r\n\t treeSet.add(15);\r\n\t treeSet.add(99);\r\n\t treeSet.add(70);\r\n\t treeSet.add(65);\r\n\t treeSet.add(30);\r\n\t treeSet.add(10);\r\n\t System.out.println(\"TreeSet Ascending order : \" + treeSet);\r\n\t NavigableSet<Object> res = treeSet.descendingSet();\r\n\t System.out.println(\"TreeSet after Descending order\" + res);\r\n\t \r\n\t // How to Change it Descending order For TreeMap\r\n\t TreeMap<Object,Object> treeMap = new TreeMap<Object,Object>();\r\n\t treeMap.put(1,\"A\");\r\n\t treeMap.put(5,\"B\");\r\n\t treeMap.put(3,\"C\");\r\n\t treeMap.put(7,\"F\");\r\n\t treeMap.put(2,\"G\");\r\n\t System.out.println(\"TreeMap Ascending order : \" + treeMap);\r\n\t NavigableMap<Object,Object> result = treeMap.descendingMap();\r\n\t System.out.println(\"TreeMap after Descending order\" + result);\r\n\t \r\n\t // Covert HashSet or List to Array\r\n\t HashSet<String> hset = new HashSet<String>();\r\n\t hset.add(\"Element1\");\r\n\t hset.add(\"Element2\");\r\n\t hset.add(\"Element3\");\r\n\t hset.add(\"Element4\");\r\n\t // Displaying HashSet elements\r\n\t System.out.println(\"HashSet contains: \"+ hset); \r\n\t // Creating an Array\r\n\t String[] array = new String[hset.size()];\r\n\t hset.toArray(array);\r\n\t // Displaying Array elements\r\n\t System.out.println(\"Array elements: \");\r\n\t for(String temp : array){\r\n\t System.out.println(temp);\r\n\t }\r\n\t \r\n\t // HashMap Creation with Load Factor \r\n\t Map<String, String> hmapFac = new HashMap<>(12,0.95f);\r\n\t hmapFac.put(\"1\", \"Debu\");\r\n\t hmapFac.put(\"2\", \"Debu\");\r\n\t hmapFac.put(\"3\", \"Shyam\");\r\n\t hmapFac.put(\"4\", \"Uttam\");\r\n\t hmapFac.put(\"5\", \"Gautam\");\r\n\t System.out.println(\"Created with Load Factor \" + hmapFac);\r\n\t \r\n\t \r\n\t \r\n\t //how to copy one hashmap content to another hashmap\r\n\t Map<String, String> hmap1 = new HashMap<>();\r\n\t hmap1.put(\"1\", \"Debu\");\r\n\t hmap1.put(\"2\", \"Debu\");\r\n\t hmap1.put(\"3\", \"Shyam\");\r\n\t hmap1.put(\"4\", \"Uttam\");\r\n\t hmap1.put(\"5\", \"Gautam\");\r\n\t // Create another HashMap\r\n\t HashMap<String, String> hmap2 = new HashMap<String, String>();\r\n\t // Adding elements to the recently created HashMap\r\n\t hmap2.put(\"7\", \"Jerry\");\r\n\t hmap2.put(\"8\", \"Tom\");\r\n\t // Copying one HashMap \"hmap\" to another HashMap \"hmap2\"\r\n\t hmap2.putAll(hmap1);\r\n\t System.out.println(\"After Copy in The HashMap \" + hmap2);\r\n\t \r\n\t // Map containsKey(), containsValue and get() method\r\n\t // get() by index for List and similar contains available for List , Set\r\n\t \r\n\t Map<String, String> map = new HashMap<>();\r\n\t\t\tmap.put(\"1\", \"Debu\");\r\n\t\t\tmap.put(\"2\", \"Debu\");\r\n\t\t\tmap.put(\"3\", \"Shyam\");\r\n\t\t\tmap.put(\"4\", \"Uttam\");\r\n\t\t\tmap.put(\"5\", \"Gautam\");\r\n\t\t\tSystem.out.println(\"Map containsKey() : \" + map.containsKey(\"2\"));\r\n\t\t\tSystem.out.println(\"Map containsValue() : \" + map.containsValue(\"Debu\"));\r\n\t\t\tSystem.out.println(\"Map get() : \" + map.get(\"4\"));\r\n\t\t\t\r\n\t\t\t\r\n\t\t // Few Common Collection Method ========\r\n\t\t\tList<Integer> list = new ArrayList<>();\r\n\t\t\tlist.add(5);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tlist.add(1);\r\n\t\t\t// size()\r\n\t\t\tSystem.out.println(\"List Size() : \" + list.size());\r\n\t\t\t// contains() , Similar containsAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Contains() : \" + list.contains(1));\r\n\t\t\t// remove() - Here by object of element , also can be happen by index \r\n\t\t\t// Similar removeAll() take all collection Object\r\n\t\t\tSystem.out.println(\"List Before remove : \" + list);\r\n\t\t\tSystem.out.println(\"List remove() : \" + list.remove(3));\r\n\t\t\tSystem.out.println(\"List After remove : \" + list);\r\n\t\t\t\r\n\t\t\t// isEmpty()\r\n\t\t\tSystem.out.println(\"List isEmpty() : \" + list.isEmpty());\r\n\t\t\t// retainAll() - matching\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(8);\r\n\t\t\tList<Integer> list1 = new ArrayList<>();\r\n\t\t\tlist1.add(8);\r\n\t\t\tlist1.add(3);\r\n\t\t\tSystem.out.println(\"List Before retainAll() : \" +list );\r\n\t\t\tlist.retainAll(list1);\r\n\t\t\tSystem.out.println(\"List AFter retainAll() : \" +list );\r\n\t\t\t\r\n\t\t\t// clear()\r\n\t\t\tSystem.out.println(\"List Before clear() : \" +list );\r\n\t\t\t\r\n\t\t\tlist.clear();\r\n\t\t\tSystem.out.println(\"List AFter clear() : \" + list );\r\n\t\t\t// Below line compile time error\r\n\t\t\t//System.out.println(\"List AFter clear() : \" + list.clear() );\r\n\t\t\tlist.add(1);\r\n\t\t\tlist.add(3);\r\n\t\t\tlist.add(6);\r\n\t\t\tSystem.out.println(\"List AFter Adding() : \" +list );\r\n\t\t\t\r\n\t\t\t\r\n\t}", "private static void sortMap(HashMap<Integer, Integer> map) {\n\t\t\n\t}", "public void dateHashMapSorted() {\n\t\t//array used to store the key values of the unsorted HashMap\n\t\tLocalDate[] unsortedArr = new LocalDate[SORTINGDATES_SIZE];\n\t\n\t\t//adding all the keys to unsortedArr\n\t\tint i = 0;\n\t\tfor (LocalDate key : map.keySet()) {\n\t\t\t\tunsortedArr[i++] = key;\n\t\t\t}\n\t\t\n\t\tfor (int currIndex = 1; currIndex < unsortedArr.length; currIndex++) {\n\t\t\tLocalDate date = unsortedArr[currIndex];\n\t\t\tint k = currIndex - 1;\n\t\t\t\t\n\t\t\t/*\n\t\t\t * while the index for the array stays above 0 and the element in the previous\n\t\t\t * index is greater than the element at the currentIndex\n\t\t\t */\n\t\t\twhile ((k >= 0) && (unsortedArr[k].isAfter(date))) {\n\t\t\t\t//shifting the elements to the right\n\t\t\t\tunsortedArr[k + 1] = unsortedArr[k];\n\t\t\t\t//decrement x to move the other elements over\n\t\t\t\tk--;\t\n\t\t\t}\n\t\t\tunsortedArr[k + 1] = date;\n\t\t}\n\n\t\tfor (i = 0; i < unsortedArr.length; ++i) {\n\t\t\tSystem.out.println(unsortedArr[i]);\n\t\t}\n\t}", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesNaturally_thenCorrect2() {\r\n\t\tTreeMap<String, String> map = new TreeMap<>();\r\n\t\tmap.put(\"c\", \"val\");\r\n\t\tmap.put(\"b\", \"val\");\r\n\t\tmap.put(\"a\", \"val\");\r\n\t\tmap.put(\"e\", \"val\");\r\n\t\tmap.put(\"d\", \"val\");\r\n\r\n\t\tassertEquals(\"[a, b, c, d, e]\", map.keySet().toString());\r\n\t}", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesNaturally_thenCorrect() {\r\n\t\tTreeMap<Integer, String> map = new TreeMap<>();\r\n\t\tmap.put(3, \"val\");\r\n\t\tmap.put(2, \"val\");\r\n\t\tmap.put(1, \"val\");\r\n\t\tmap.put(5, \"val\");\r\n\t\tmap.put(4, \"val\");\r\n\r\n\t\tassertEquals(\"[1, 2, 3, 4, 5]\", map.keySet().toString());\r\n\t}", "private void treeMapDemo() {\n TreeMap intMap = new TreeMap();\n TreeMap abcMap = new TreeMap();\n \n // Add values to tMap\n intMap.put(1, \"Jonathan\");\n intMap.put(3, \"Kevin\");\n intMap.put(4, \"Craig\");\n \n abcMap.put(\"Name\", \"Jonathan\");\n abcMap.put(\"Age\", 26);\n abcMap.put(\"Hometown\", \"Denham Springs\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n // Add new value to fill the 2 position\n intMap.put(2, \"Jasmine\");\n \n // Add new value to abcMap\n abcMap.put(\"Acrobatic Skill\", \"Bad\");\n abcMap.put(\"Zoology Skill\", \"Decent\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n }", "public static void main(String[] args) {\n\t\tHashMap<Integer, String> hm=new HashMap<>();\n\t\thm.put(25, \"Bharath\");\n\t\thm.put(50,\"Ramesh\");\n\t\thm.put(75,\"Ashish\");\n\t\tSystem.out.println(hm);\n\t\tSystem.out.println(hm.containsKey(15));\n\t\tSystem.out.println(hm.containsValue(\"Ramesh\"));\n\n\t\tTreeMap<Integer, String> tm=new TreeMap<>();\n\t\ttm.putAll(hm);\n\t\tSystem.out.println(tm);\n\t\tSystem.out.println(tm.firstKey());\n\t\tSystem.out.println(tm.lastKey()); \n\t}", "public static void main(String[] args) {\n\r\n\t\tSortByValue sbv = new SortByValue();\r\n\t\tsbv.setValueOnMap(12, \"Aarti\");\r\n\t\tsbv.setValueOnMap(15, \"Sonam\");\r\n\t\tsbv.setValueOnMap(17, \"Anita\");\r\n\t\tsbv.setValueOnMap(13, \"Premlata\");\r\n\t\tsbv.setValueOnMap(14, \"Komal\");\r\n\t\tsbv.setValueOnMap(20, \"Namita\");\r\n\t\tsbv.setValueOnMap(25, \"Babita\");\r\n\t\t\r\n\t\tMap<Integer, String> _map = sbv.getValueFromMap();\r\n\t\t/*Iterator<Map.Entry<Integer, String>> _it = _map.entrySet().iterator();\r\n\t\twhile(_it.hasNext()){\r\n\t\t\tMap.Entry<Integer, String> _map_value = _it.next();\r\n\t\t\tSystem.out.println(_map_value.getKey()+\"|\"+_map_value.getValue());\r\n\t\t}*/\r\n\t\t\r\n\t\tSet<Entry<Integer, String>> set = _map.entrySet();\r\n\t\tList<Entry<Integer, String>> list = new ArrayList<Entry<Integer, String>>(set);\r\n\t\tSystem.out.println(\"HashMap values Before sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(list, new Comparator<Map.Entry<Integer, String>>(){\r\n\t\t\tpublic int compare(Map.Entry<Integer, String> value1, Map.Entry<Integer, String> value2){\r\n\t\t\t\treturn value1.getValue().compareTo(value2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tSystem.out.println(\"HashMap values After sort:\");\r\n\t\tfor(Map.Entry<Integer, String> listBeforeSort : list){\r\n\t\t\tSystem.out.println(listBeforeSort.getKey()+\" | \"+listBeforeSort.getValue());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tMap<String, String> map1 = new HashMap<>();\n\t\t\n\t\t// Put items into map1\n\t\tmap1.put(\"Cuthbert\", \"14\");\n\t\tmap1.put(\"Hugh\", \"8\");\n\t\tmap1.put(\"Barney McGrew\", \"12\");\n\t\tmap1.put(\"Pugh\", \"31\");\n\t\t\n\t\tSystem.out.println(\"Map Elements\");\n\t\tSystem.out.println(\"\\t\" + map1);\n\t\tSystem.out.println(\"\\tOrdered by key hash\");\n\t\t\n\t\t// Demo 7.7 - TreeMaps\n\t\t// Provides efficient means of storing key/value pairs in sorted order\n\t\t// Allows rapid retrieval\n\t\tTreeMap<String, Double> treeMap = new TreeMap<>();\n\t\t\n\t\ttreeMap.put(\"Pugh\", new Double(4321.12));\n\t\ttreeMap.put(\"Pugh\", new Double(123.45));\n\t\ttreeMap.put(\"Barney McGrew\", new Double(7654.21));\n\t\ttreeMap.put(\"Cuthbert\", new Double(456.123));\n\t\t\n\t\tSystem.out.println(\"TreeMap Elements\");\n\t\tSystem.out.println(\"\\t\" + treeMap);\n\t\tSystem.out.println(\"\\tSorted by key\");\n\t\t\n\t\t// Demo 7.8 - Linked Hash Map\n\t\t// Extends HashMap but it maintains linked list of entries in the order inserted\n\t\tMap<String, String> map2 = new LinkedHashMap<>();\n\t\t\n\t\t// Put items into map1\n\t\tmap2.put(\"Cuthbert\", \"14\");\n\t\tmap2.put(\"Hugh\", \"8\");\n\t\tmap2.put(\"Barney McGrew\", \"12\");\n\t\tmap2.put(\"Pugh\", \"31\");\n\t\t\t\t\n\t\tSystem.out.println(\"LinkedHashMap Elements\");\n\t\tSystem.out.println(\"\\t\" + map2);\n\t\tSystem.out.println(\"\\tInsertion order preserved\");\n\t\t\n\t}", "public static LinkedHashMap<Integer, Double> sortHashMapByValues(\r\n \t\t\tSortedMap<Integer, Double> passedMap) {\r\n \t\tList<Integer> mapKeys = new ArrayList<Integer>(passedMap.keySet());\r\n \t\tList<Double> mapValues = new ArrayList<Double>(passedMap.values());\r\n \t\tCollections.sort(mapValues, Collections.reverseOrder());\r\n \t\tCollections.sort(mapKeys, Collections.reverseOrder());\r\n \r\n \t\tLinkedHashMap<Integer, Double> sortedMap = new LinkedHashMap<Integer, Double>();\r\n \r\n \t\tIterator<Double> valueIt = mapValues.iterator();\r\n \t\twhile (valueIt.hasNext()) {\r\n \t\t\tObject val = valueIt.next();\r\n \t\t\tIterator<Integer> keyIt = mapKeys.iterator();\r\n \r\n \t\t\twhile (keyIt.hasNext()) {\r\n \t\t\t\tObject key = keyIt.next();\r\n \t\t\t\tString comp1 = passedMap.get(key).toString();\r\n \t\t\t\tString comp2 = val.toString();\r\n \r\n \t\t\t\tif (comp1.equals(comp2)) {\r\n \t\t\t\t\tpassedMap.remove(key);\r\n \t\t\t\t\tmapKeys.remove(key);\r\n \t\t\t\t\tsortedMap.put((Integer) key, (Double) val);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn (LinkedHashMap<Integer, Double>) sortedMap;\r\n \t}", "public static <K, V extends Comparable<V>> Map<K, V> sortByValues(final Map<K, V> map) {\r\n \tComparator<K> valueComparator = new Comparator<K>() {\r\n \t public int compare(K k1, K k2) {\r\n \t int compare = map.get(k2).compareTo(map.get(k1));\r\n \t if (compare == 0) return 1;\r\n \t else return compare;\r\n \t }\r\n \t};\r\n \tMap<K, V> sortedByValues = new TreeMap<K, V>(valueComparator);\r\n \tsortedByValues.putAll(map);\r\n \t\r\n \treturn sortedByValues;\r\n }", "public static <K, V extends Comparable<V>> Map<K, V> sortByValues(Map<K, V> map) {\n \tComparator<K> valueComparator = new Comparator<K>() {\n\t\t\tpublic int compare(K key, K key2) {\n\t\t\t\tint compareKeys = map.get(key2).compareTo(map.get(key));\n\t\t\t\tif (compareKeys == 0) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else {\n\t\t\t\t\treturn compareKeys;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tMap<K, V> sortedByValues = new TreeMap<K, V>(valueComparator);\n\t\tsortedByValues.putAll(map);\n\t\treturn sortedByValues;\n }", "public static void main(String[] args) throws ParseException {\n HashMap<Date, String> hmap = new HashMap<Date, String>();\n /* hmap.put(5, \"A\");\n hmap.put(11, \"C\");\n hmap.put(4, \"Z\");\n hmap.put(662, \"Y\");\n hmap.put(9, \"P\");\n hmap.put(661, \"Q\");\n hmap.put(0, \"R\");*/\n \n Date date = new Date();\n \n SimpleDateFormat ft = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n\t//format.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\tString dat = \"2017-06-05T08:07:34.000Z\";\n\tString dats = \"2017-06-05T21:07:34.012Z\";\n\tDate datesss = ft.parse(dat);\n\tDate da = ft.parse(dats);\n\tSystem.out.println(\"ok fine :\"+ft.format(datesss));\n hmap.put(datesss,\"u\");\n hmap.put(da,\"l\");\n\n System.out.println(\"Before Sorting:\");\n Set set = hmap.entrySet();\n Iterator iterator = set.iterator();\n while(iterator.hasNext()) {\n Map.Entry me = (Map.Entry)iterator.next();\n System.out.print(me.getKey() + \": \");\n System.out.println(me.getValue());\n }\n Map<Date, String> map = new TreeMap<Date, String>(hmap); \n String ab = map.get(map.keySet().toArray()[0]);\n\n/*Date firstKey = (Date) map.keySet().toArray()[0];\nString valueForFirstKey = map.get(firstKey);\n System.out.println(firstKey);\n System.out.println(valueForFirstKey);*/\n System.out.println(\"After Sorting:\");\n Set set2 = map.entrySet();\n Iterator iterator2 = set2.iterator();\n while(iterator2.hasNext()) {\n Map.Entry me2 = (Map.Entry)iterator2.next();\n System.out.print(me2.getKey() + \": \");\n System.out.println(me2.getValue());\n }\n System.out.println(\"#######################################################\");\n /* Map<Date, String> mat = new TreeMap<Date, String>(new Comparator<Date>() {\n public int compare(Date d1, Date d2) {\n return d1.after(d2) ? 1 : -1;\n }\n });*/\n \n Map<Long, String> mat = new TreeMap<Long, String>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n Date d1 = dateFormat.parse(\"2017-06-05T08:07:34.000Z\");\n Date d2 = dateFormat.parse(\"2017-06-05T21:07:34.000Z\");\n Date d3 = dateFormat.parse(\"2021-04-12T21:10:25.000Z\");\n \n// String firstKey = (String) mat.keySet().toArray()[0];\n//\tString valueForFirstKey = (String) mat.get(firstKey);\n\tlong epocha = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2017-06-05T08:07:34.000Z\").getTime() / 1000;\n\tlong epochb = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2008-06-05T21:07:34.000Z\").getTime() / 1000;\n\tlong epochc = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-07T20:57:40.000Z\").getTime() / 1000;\n\tlong epochd = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-30T00:32:20.000Z\").getTime() / 1000;\n\t\n\tmat.put(epocha, \"s2\");\n mat.put(epochb, \"s1\");\n mat.put(epochc, \"s3\");\n mat.put(epochd,\"s4\");\n\t\n\tSystem.out.println(\"epoch:\"+epocha);\n\tSystem.out.println(\"epocha:\"+epochb);\n\tSystem.out.println(\"epochc:\"+epochc);\n\tSystem.out.println(\"epochd:\"+epochd);\n//\tSystem.out.println(firstKey);\n//\tSystem.out.println(valueForFirstKey);\n \n System.out.println(mat );\n \n \n \n \n /* System.out.println(map.size());\n int firstKey1 = (Integer) map.keySet().toArray()[6];\n System.out.println(\"firstKey1:\"+firstKey1);\n\tString valueForFirstKey2 = (String) map.get(firstKey1);\n\tSystem.out.println(\"valueForFirstKey2 :\"+valueForFirstKey2);*/\n}", "@Test\r\n\tpublic void givenTreeMap_whenOrdersEntriesByComparator_thenCorrect() {\r\n\t\tTreeMap<Integer, String> map = new TreeMap<>(Comparator.reverseOrder());\r\n\t\tmap.put(3, \"val\");\r\n\t\tmap.put(2, \"val\");\r\n\t\tmap.put(1, \"val\");\r\n\t\tmap.put(5, \"val\");\r\n\t\tmap.put(4, \"val\");\r\n\r\n\t\tassertEquals(\"[5, 4, 3, 2, 1]\", map.keySet().toString());\r\n\t}", "@Test\n public void test10() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n cashRegister.addPennies(199);\n map1.put(1,199);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addDimes(2);\n map1.put(10,2);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addDimes(3);\n map1.put(10,5);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addFives(10);\n map1.put(500,10);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addNickels(4);\n map1.put(5,4);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addOnes(1);\n map1.put(100,1);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addQuarters(1);\n map1.put(25,1);\n assertEquals(map1, cashRegister.getContents());\n cashRegister.addTens(5);\n map1.put(1000,5);\n assertEquals(map1, cashRegister.getContents());\n }", "public static void main(String[] args) {\n LinkedHashMap<Integer, Pracownik> mapa = new LinkedHashMap<>();\n Pracownik[] pracownicy = {\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\")\n };\n\n for(Pracownik pracownik: pracownicy){\n mapa.put(pracownik.getID(),pracownik);\n }\n System.out.println(mapa);\n\n mapa.remove(3);\n\n\n mapa.put(4,new Pracownik(\"Asia\"));\n mapa.put(3,new Pracownik(\"Patryk\"));\n\n\n\n mapa.entrySet();\n System.out.println(mapa);\n for(Map.Entry<Integer,Pracownik> wpis: mapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n\n\n }\n System.out.println(\"---------------------------------------------------------------\");\n TreeMap<Integer,Pracownik> mapaPosotrowana = new TreeMap<Integer, Pracownik>(mapa);\n\n Map<Integer,Pracownik> subMapa = mapaPosotrowana.subMap(0,4);\n\n for(Map.Entry<Integer,Pracownik> wpis: subMapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n if(subMapa.isEmpty()){\n System.out.println(\"PUSTO\");\n }else{\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n }\n\n }\n\n Map<Date, Event> exampleMap;\n\n\n\n\n\n\n\n\n\n }", "public static Map<String, Double> sortHashMapVals(Map<String, Double> hm, final CompareUtilsEnum order) {\n\t\tList<Entry<String, Double>> list = new LinkedList<Entry<String, Double>>(hm.entrySet());\n\t\tCollections.sort(list, new Comparator<Entry<String, Double>>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Entry<String, Double> o1, Entry<String, Double> o2) {\n\t\t\t\tif (order == CompareUtilsEnum.INCREASING) {\n\t\t\t\t\treturn o1.getValue().compareTo(o2.getValue());\n\t\t\t\t} else {\n\t\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\t// Maintaining insertion order with the help of LinkedList\n\t\tMap<String, Double> sortedMap = new LinkedHashMap<String, Double>();\n\t\tfor (Entry<String, Double> entry : list) {\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\n\t\treturn sortedMap;\n\t}", "public static void hashMapSort(HashMap input){\n Set keys = input.keySet();\n int i = keys.size();\n ArrayList<String> sortedkeys = new ArrayList<>(i);\n sortedkeys.addAll(keys);\n Collections.sort(sortedkeys);\n System.out.println(\"sortedkeys = \" + sortedkeys);\n for (String item : sortedkeys){\n System.out.printf(input +\"%nItem: %s | Quantity: \" + input.get(item)+\"%n\", item);\n }\n\n}", "private HashMap<String, Double> sortByValues(HashMap<String, Double> map) {\n List<Map.Entry<String, Double>> list =\n new LinkedList<>(map.entrySet());\n\n Collections.sort(list, new Comparator<Map.Entry<String, Double>>() {\n @Override\n public int compare(Map.Entry<String, Double> o1, Map.Entry<String, Double> o2) {\n return (o1.getValue()).compareTo(o2.getValue());\n }\n });\n\n HashMap<String, Double> sortedHashMap = new LinkedHashMap<>();\n for (Map.Entry<String, Double> item : list) {\n sortedHashMap.put(item.getKey(), item.getValue());\n }\n return sortedHashMap;\n }", "private Map<String, Object> sortMap(Map<String, Object> map)\n {\n return new TreeMap<>(map);\n }", "public static void main(String[] args) \r\n {\n TreeMap<Employee, Integer> hashMap = new TreeMap<Employee, Integer>(); \r\n \r\n // Mapping string values to int keys \r\n hashMap.put(new Employee(10,\"uday\"), 10); \r\n hashMap.put(new Employee(11,\"uday\"), 11); \r\n hashMap.put(new Employee(12,\"uday\"), 12); \r\n hashMap.put(new Employee(13,\"uday\"), 13); \r\n \r\n for (Entry<Employee, Integer> e : hashMap.entrySet()) \r\n System.out.println(e.getKey().toString() + \" \" + e.getValue()); \r\n \r\n HashMap<String, Integer> map = new HashMap<>(); \r\n \r\n }", "Map<String, Double> sortByValues(Map<String, Double> map_to_sort){\n\tList<Map.Entry<String,Double>> ranklist = new LinkedList<Map.Entry<String,Double>>(map_to_sort.entrySet());\n\tCollections.sort(ranklist, new Comparator<Map.Entry<String, Double>>(){\n\t\tpublic int compare(Map.Entry<String,Double> o1, Map.Entry<String,Double> o2){\n\t\t\treturn o2.getValue().compareTo((double)o1.getValue() );\n\t\t}\n\t});\n\t\n\tMap<String, Double> sortedRank = new LinkedHashMap<String,Double>();\n\tfor(Map.Entry<String, Double> rank : ranklist){\n\t\tsortedRank.put(rank.getKey(), rank.getValue());\t\t\t\n\t}\n\t\n\treturn sortedRank;\n\t}", "public static LinkedList sortbykey(HashMap map) \n {\n TreeMap<String, Integer> sorted = new TreeMap<String, Integer>(); \n \n // Copy all data from hashMap into TreeMap \n sorted.putAll(map); \n \n LinkedList final_list = new LinkedList();\n // Display the TreeMap which is naturally sorted \n for (Entry<String, Integer> entry : sorted.entrySet()) {\n \tfinal_list.add(entry.getKey());\n //System.out.println(\"Key = \" + entry.getKey() + \n // \", Value = \" + entry.getValue()); \n }\n return final_list;\n }", "public void dateHashMapSortedDescending() {\n\t\t//array used to store the key values of the unsorted HashMap\n\t\tLocalDate[] unsortedArr = new LocalDate[SORTINGDATES_SIZE];\n\t\t\t\n\t\t//adding all the keys to unsortedArr\n\t\tint i = 0;\n\t\tfor (LocalDate key : map.keySet()) {\n\t\t\tunsortedArr[i++] = key;\n\t\t}\n\t\t\t\t\n\t\tfor (int currIndex = 1; currIndex < unsortedArr.length; currIndex++) {\n\t\t\tLocalDate date = unsortedArr[currIndex];\n\t\t\tint k = currIndex - 1;\n\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t* while the index for the array stays above 0 and the element in the previous\n\t\t\t* index is greater than the element at the currentIndex\n\t\t\t*/\n\t\t\twhile ((k >= 0) && (unsortedArr[k].isBefore(date))) {\n\t\t\t\t//shifting the elements to the right\n\t\t\t\tunsortedArr[k + 1] = unsortedArr[k];\n\t\t\t\t//decrement x to move the other elements over\n\t\t\t\tk--;\t\n\t\t\t}\n\t\t\tunsortedArr[k + 1] = date;\n\t\t}\n\n\t\tfor (i = 0; i < unsortedArr.length; ++i) {\n\t\t\tSystem.out.println(unsortedArr[i]);\n\t\t}\n\t}", "public HashMap<String, Double> sortMap(HashMap<String, Double> unsortedVMap){\n List<Map.Entry<String, Double>> list = new LinkedList<Map.Entry<String, Double>>(unsortedVMap.entrySet());\n \n // Sort the list\n Collections.sort(list, new Comparator<Map.Entry<String, Double>>(){\n public int compare(Map.Entry<String, Double> o1, Map.Entry<String, Double> o2){\n return (o1.getValue()).compareTo(o2.getValue());\n }\n });\n \n // Putting data from sorted list to hashmap\n HashMap<String, Double> sortedVMap = new LinkedHashMap<String, Double>();\n for(Map.Entry<String, Double> aa : list){\n sortedVMap.put(aa.getKey(), aa.getValue());\n }\n \n return sortedVMap;\n }", "public static HashMap sortByValues(HashMap map){\r\n List list = new LinkedList(map.entrySet());\r\n Collections.sort(list, new Comparator() {\r\n @Override\r\n public int compare(Object o1, Object o2) {\r\n return ((Comparable) ((Map.Entry) (o1)).getValue())\r\n .compareTo(((Map.Entry) (o2)).getValue());\r\n }\r\n });\r\n HashMap sortedHashMap= new LinkedHashMap();\r\n for(Iterator it=list.iterator();it.hasNext();){\r\n Map.Entry entry= (Map.Entry) it.next();\r\n sortedHashMap.put(entry.getKey(), entry.getValue());\r\n }\r\n return sortedHashMap;\r\n }", "public static <K, V extends Comparable<? super V>> Map<K, V> \n sortByValue( Map<K, V> map )\n{\n\t LinkedList<Map.Entry<K, V>> list = new LinkedList<Map.Entry<K, V>>( map.entrySet() );\n Collections.sort( list, new Comparator<Map.Entry<K, V>>()\n {\n public int compare( Map.Entry<K, V> o1, Map.Entry<K, V> o2 )\n {\n return (o1.getValue()).compareTo( o2.getValue() );\n }\n } );\n\n Map<K, V> result = new LinkedHashMap<K, V>();\n for (Map.Entry<K, V> entry : list)\n {\n result.put( entry.getKey(), entry.getValue() );\n }\n return result;\n}", "private static Map<String, Double> sortByComparator(Map<String, Double> unsortMap, final boolean order)\n {\n\n List<Entry<String, Double>> list = new LinkedList<Entry<String, Double>>(unsortMap.entrySet());\n\n // Sorting the list based on values\n Collections.sort(list, new Comparator<Entry<String, Double>>()\n {\n public int compare(Entry<String, Double> o1,\n Entry<String, Double> o2)\n {\n if (order)\n {\n return o1.getValue().compareTo(o2.getValue());\n }\n else\n {\n return o2.getValue().compareTo(o1.getValue());\n\n }\n }\n });\n\n int rank = 1;\n // Maintaining insertion order with the help of LinkedList\n Map<String, Double> sortedMap = new LinkedHashMap<String, Double>();\n for (Entry<String, Double> entry : list)\n {\n \tif(rank<=1000){\n \t\n \t\tsortedMap.put(entry.getKey() +\" \"+ String.valueOf(rank), entry.getValue());\n \t\trank++;\n \t}\n \telse break;\n }\n \n //Map<string, Double> updatedRank = new LinkedHashMap<String, Double>();\n\n return sortedMap;\n }", "private static Map<Long, Long> sortByComparatorGift(Map<Long, Long> unsortMap) {\n\t\tList<Map.Entry<Long, Long>> list = \n\t\t\tnew LinkedList<Map.Entry<Long, Long>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<Long, Long>> comparator;\n\t\tcomparator = Collections.reverseOrder(new Comparator<Map.Entry<Long, Long>>() {\n\t\t\tpublic int compare(Map.Entry<Long, Long> o1,\n Map.Entry<Long, Long> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<Long, Long> sortedMap = new LinkedHashMap<Long, Long>();\n\t\tfor (Iterator<Map.Entry<Long, Long>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<Long, Long> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "public HashMap sortByValues(HashMap map) {\n List list = new LinkedList(map.entrySet());\n // Defined Custom Comparator here\n Collections.sort(list, new Comparator() {\n public int compare(Object o1, Object o2) {\n return ((Comparable) ((Map.Entry) (o1)).getValue())\n .compareTo(((Map.Entry) (o2)).getValue());\n }\n });\n\n List array = new LinkedList();\n if (list.size() >= 3) // Make sure you really have 3 elements\n {\n array.add(list.get(list.size() - 1)); // The last\n array.add(list.get(list.size() - 2)); // The one before the last\n array.add(list.get(list.size() - 3)); // The one before the one before the last\n } else {\n array = list;\n }\n\n // Here I am copying the sorted list in HashMap\n // using LinkedHashMap to preserve the insertion order\n HashMap sortedHashMap = new LinkedHashMap();\n for (Iterator it = array.iterator(); it.hasNext();) {\n Map.Entry entry = (Map.Entry) it.next();\n sortedHashMap.put(entry.getKey(), entry.getValue());\n }\n return sortedHashMap;\n }", "public static HashMap<String, Long> sortByValue(HashMap<String, Long> hm) \r\n { \r\n // Create a list from elements of HashMap \r\n List<Map.Entry<String, Long> > list = new LinkedList<Map.Entry<String, Long> >(hm.entrySet()); \r\n \r\n // Sort the list \r\n Collections.sort(list, new Comparator<Map.Entry<String, Long> >() { \r\n public int compare(Map.Entry<String, Long> o1, \r\n Map.Entry<String, Long> o2) \r\n { \r\n return (o1.getValue()).compareTo(o2.getValue()); \r\n } \r\n }); \r\n \r\n // put data from sorted list to hashmap \r\n HashMap<String, Long> temp = new LinkedHashMap<String, Long>(); \r\n for (Map.Entry<String, Long> aa : list) { \r\n temp.put(aa.getKey(), aa.getValue()); \r\n } \r\n return temp; \r\n }", "private static HashMap sortValues(Map<Integer, String> map) {\n\t\tList list = new LinkedList(map.entrySet());\n\t\t// Custom Comparator\n\t\tCollections.sort(list, new Comparator() {\n\t\t\tpublic int compare(Object o1, Object o2) {\n\t\t\t\treturn ((Comparable) ((Map.Entry) (o1)).getValue()).compareTo(((Map.Entry) (o2)).getValue());\n\t\t\t}\n\t\t});\n\t\t// copying the sorted list in HashMap to preserve the iteration order\n\t\tHashMap sortedHashMap = new LinkedHashMap();\n\t\tfor (Iterator it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry entry = (Map.Entry) it.next();\n\t\t\tsortedHashMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedHashMap;\n\t}", "public static HashMap<Integer, Double> sortByValue(HashMap<Integer, Double> hm) \n {\n List<Map.Entry<Integer, Double> > list = \n new LinkedList<Map.Entry<Integer, Double> >(hm.entrySet()); \n \n // Sort the list \n Collections.sort(list, new Comparator<Map.Entry<Integer, Double> >() { \n public int compare(Map.Entry<Integer, Double> o1, \n Map.Entry<Integer, Double> o2) \n { \n return (o2.getValue()).compareTo(o1.getValue()); \n } \n }); \n \n // put data from sorted list to hash map \n HashMap<Integer, Double> temp = new LinkedHashMap<Integer, Double>(); \n for (Map.Entry<Integer, Double> aa : list) { \n temp.put(aa.getKey(), aa.getValue()); \n } \n return temp; \n }", "public static <K, V extends Comparable<V>> Map<K, V> sortByValues(final Map<K, V> map) {\r\n\r\n\t\tComparator<K> valueComparator = new Comparator<K>() {\r\n\t\t\tpublic int compare(K k1, K k2) {\r\n\t\t\t\tint compare = map.get(k1).compareTo(map.get(k2));\r\n\t\t\t\tif (compare == 0) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn compare;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tMap<K, V> sortedByValues = new TreeMap<K, V>(valueComparator);\r\n\t\tsortedByValues.putAll(map);\r\n\t\treturn sortedByValues;\r\n\t}", "private static Map<String, Integer> sortByComparator(Map<String, Integer> unsortMap) {\n\t\tList<Map.Entry<String, Integer>> list = \n\t\t\tnew LinkedList<Map.Entry<String, Integer>>(unsortMap.entrySet());\n \n\t\t// Sort list with comparator, to compare the Map values\n\t\tComparator<Map.Entry<String, Integer>> comparator;\n\t\tcomparator=Collections.reverseOrder(new Comparator<Map.Entry<String, Integer>>() {\n\t\t\tpublic int compare(Map.Entry<String, Integer> o1,\n Map.Entry<String, Integer> o2) {\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(list, comparator);\n \n\t\t// Convert sorted map back to a Map\n\t\tMap<String, Integer> sortedMap = new LinkedHashMap<String, Integer>();\n\t\tfor (Iterator<Map.Entry<String, Integer>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<String, Integer> entry = it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "public static HashMap<Integer, Integer> sortByValue(HashMap<Integer, Integer> hm) \n { \n // Create a list from elements of HashMap \n List<Map.Entry<Integer, Integer> > list = \n new LinkedList<Map.Entry<Integer, Integer> >(hm.entrySet()); \n \n // Sort the list \n Collections.sort(list, new Comparator<Map.Entry<Integer, Integer> >() { \n public int compare(Map.Entry<Integer, Integer> o1, \n Map.Entry<Integer, Integer> o2) \n { \n return (o1.getValue()).compareTo(o2.getValue()); \n } \n }); \n \n // put data from sorted list to hashmap \n HashMap<Integer, Integer> temp = new LinkedHashMap<Integer, Integer>(); \n for (Map.Entry<Integer, Integer> aa : list) { \n temp.put(aa.getKey(), aa.getValue()); \n } \n return temp; \n }", "public static HashMap<Integer, Integer> sortByValue(HashMap<Integer, Integer> hm) \n { \n // Create a list from elements of HashMap \n List<Map.Entry<Integer, Integer> > list = \n new LinkedList<Map.Entry<Integer, Integer> >(hm.entrySet()); \n \n // Sort the list \n Collections.sort(list, new Comparator<Map.Entry<Integer, Integer> >() { \n public int compare(Map.Entry<Integer, Integer> o1, \n Map.Entry<Integer, Integer> o2) \n { \n return (o1.getValue()).compareTo(o2.getValue()); \n } \n }); \n \n // put data from sorted list to hashmap \n HashMap<Integer, Integer> temp = new LinkedHashMap<Integer, Integer>(); \n for (Map.Entry<Integer, Integer> aa : list) { \n temp.put(aa.getKey(), aa.getValue()); \n } \n return temp; \n }", "public static <K extends Comparable, V extends Comparable> Map<K, V> sortByValue(Map<K, V> map) {\n List<Map.Entry<K,V>> preSort = new LinkedList<Map.Entry<K,V>>(map.entrySet());\n Collections.sort(preSort, new Comparator<Map.Entry<K,V>>() { \n @Override\n public int compare(Map.Entry<K,V> entry1, Map.Entry<K,V> entry2) {\n return entry1.getValue().compareTo(entry2.getValue());\n }\n });\n \n Map<K, V> sortedMap = new LinkedHashMap<K, V>();\n for (Map.Entry<K,V> entry: preSort) {\n \tsortedMap.put(entry.getKey(), entry.getValue());\n }\n return sortedMap;\n }", "static <K,V extends Comparable<? super V>> SortedSet<Map.Entry<K,V>> entriesSortedByValues(Map<K,V> map) {\n\t\t SortedSet<Map.Entry<K,V>> sortedEntries = new TreeSet<Map.Entry<K,V>>(\n\t\t new Comparator<Map.Entry<K,V>>() {\n\t\t @Override public int compare(Map.Entry<K,V> e1, Map.Entry<K,V> e2) {\n\t\t int res = e1.getValue().compareTo(e2.getValue());\n\t\t return res != 0 ? res : 1;\n\t\t }\n\t\t }\n\t\t );\n\t\t sortedEntries.addAll(map.entrySet());\n\t\t return sortedEntries;\n\t\t}", "public static void main(String args[]){\r\n\t\t\r\n\t\t\r\n\t\tint arr[] = {2,5,2,8,5,6,8,8};\r\n\t\t\r\n\t\tMap<Integer, Integer> freqMap = new LinkedHashMap<Integer,Integer>();\r\n\t\t\r\n\t\tfor(int i = 0; i< arr.length;i++){\r\n\t\t\tif(freqMap.containsKey(arr[i])){\r\n\t\t\t\tint count = freqMap.get(arr[i]);\r\n\t\t\t\tfreqMap.put(arr[i],count + 1);\r\n\t\t\t}else{\r\n\t\t\t\tfreqMap.put(arr[i], 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//2-2,5-2,6-1,8-3\r\n\t\t\r\n\t\tMap<Integer,ArrayList<Integer>> sortedList = new TreeMap<Integer, ArrayList<Integer>>(new Comparator<Integer>(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Integer arg0, Integer arg1) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn arg1.compareTo(arg0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tfor(Entry<Integer, Integer> entry : freqMap.entrySet()){\r\n\t\t\tint key = entry.getKey();\r\n\t\t\tint val = entry.getValue();\r\n\t\t\tif(sortedList.containsKey(val)){\r\n\t\t\t\tArrayList<Integer> list = sortedList.get(val);\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t}else{\r\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t\tsortedList.put(val, list);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(sortedList.values());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Map<Integer, Integer> map = new HashMap<>();\r\n map.put(1, 1); // first pair\r\n map.put(2, 1); // second pair\r\n map.put(1, 3); // update the value of first pair\r\n\r\n // book - sales\r\n Book b1 = new Book(\"learn js\", 20);\r\n Book b2 = new Book(\"learn java\", 30);\r\n // we want to consider two books with same\r\n // name and same price to be matching\r\n Book b3 = new Book(\"learn css\", 10);\r\n Book b4 = new Book(\"learn css\", 10);\r\n Book b5 = new Book(\"learn csa\", 28);\r\n Map<Book, Integer> bookSales = new HashMap<>();\r\n bookSales.put(b1, 200);\r\n bookSales.put(b2, 400);\r\n bookSales.put(b3, 600);\r\n bookSales.put(b4, 300);\r\n bookSales.put(b5, 900);\r\n // 1. b3 and b4 are consider as different key\r\n // 2. HashMap does not reserve insertion order.(sorted)\r\n System.out.println(bookSales);\r\n\r\n System.out.println(b1.hashCode()); // 1836019240\r\n System.out.println(b2.hashCode()); // 325040804\r\n System.out.println(b3.hashCode() == b4.hashCode()); // false\r\n\r\n System.out.println(calc(b1.hashCode()));\r\n System.out.println(calc(b2.hashCode()));\r\n System.out.println(calc(b3.hashCode()));\r\n System.out.println(calc(b4.hashCode()));\r\n System.out.println(calc(b5.hashCode()));\r\n\r\n System.out.println(hash(b3.hashCode()));\r\n System.out.println(hash(b4.hashCode()));\r\n System.out.println(hash(b5.hashCode()));\r\n\r\n\r\n // keys' hashcode are different, indies may be different or same.\r\n // indies which are calculated are different, keys' hash must be different\r\n\r\n // TreeMap\r\n // sorted map by key\r\n // The key must be Comparable or create map with custom comparator\r\n Comparator<String> comparator = new Comparator<String>() {\r\n @Override\r\n public int compare(String o1, String o2) {\r\n return o2.compareTo(o1);\r\n }\r\n };\r\n Map<String, Integer> scores = new TreeMap<>(comparator);\r\n scores.put(\"bob\", 80);\r\n scores.put(\"alice\", 100);\r\n scores.put(\"zack\", 90);\r\n System.out.println(scores);\r\n\r\n // LinkedHashMap: sorted map by insertion order\r\n\r\n Map<String, Integer> scores1 = new HashMap<>();\r\n scores1.put(\"alice\", 90);\r\n scores1.put(\"bob\", 80);\r\n scores1.put(\"zack\", 100);\r\n // your codes start here\r\n\r\n System.out.println(scores1); // sorted by score1(value)\r\n }", "private static <K, V extends Comparable<V>> Map<K, V> sortDescending(final Map<K, V> map) {\n\t\tComparator<K> valueComparator = new Comparator<K>() {\n\t\t\tpublic int compare(K k1, K k2) {\n\t\t\t\tint compare = map.get(k2).compareTo(map.get(k1));\n\t\t\t\tif (compare == 0) return 1;\n\t\t\t\telse return compare;\n\t\t\t}\n\t\t};\n\t\tMap<K, V> sortedByValues = new TreeMap<K, V>(valueComparator);\n\n\t\tsortedByValues.putAll(map);\n\n\t\treturn sortedByValues;\n\t}", "private LinkedHashMap<String, Integer> sort(LinkedHashMap<String, Integer> unsorted) {\n return unsorted.entrySet().stream()\n .sorted(Map.Entry.comparingByValue())\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (v1, v2) -> v1,\n LinkedHashMap::new));\n }", "private HashMap<String, Integer> sort(HashMap<String, Integer> hashMap) {\n List<HashMap.Entry<String, Integer>> list =\n new LinkedList<>(hashMap.entrySet());\n\n Comparator<HashMap.Entry<String, Integer>> compareByValue = Comparator.comparing(HashMap.Entry::getValue);\n Comparator<HashMap.Entry<String, Integer>> compareByKey = Comparator.comparing(HashMap.Entry::getKey);\n Comparator<HashMap.Entry<String, Integer>> compareByValueThenKey = compareByValue.thenComparing(compareByKey);\n Collections.sort(list, compareByValueThenKey);\n\n HashMap<String, Integer> tmp = new LinkedHashMap<>();\n for (HashMap.Entry<String, Integer> entry : list) {\n tmp.put(entry.getKey(), entry.getValue());\n }\n return tmp;\n }", "public HashMap<String, Integer> getOrder(){\n\t\t\n\t\tHashMap<String, Integer> hm2 = getHashMap();\n\t\n\t\tArrayList fq = new ArrayList<>();\n\t\t\n\t\tHashMap<String, Integer> top10 = new HashMap<String, Integer>();\n\t\t\n\t\tfor(String key : hm2.keySet()){\n\t\t\t\n\t\t\tfq.add(hm2.get(key));\n\t\t}\n\t\t// use Collection to get the order of frequency\n\t\tCollections.sort(fq);\n \tCollections.reverse(fq);\n \t\n \tfor(int i = 0; i<11; i++){\n \t\t\n \t\tfor(String key : hm2.keySet()){\n \t\t// make sure the word not equals to balck space\n \t\tif(hm2.get(key) == fq.get(i) && !key.equals(\"\") ){\n \t\t\t\n \t\t top10.put(key, hm2.get(key));\n \t\t\t\t\n \t\t}\n \t}\t\n\t}\n\t\treturn top10;\n\t}", "public static void main(String[] args) {\n\t\tMap<String,Integer>grocery=new HashMap<>();\n\t\tgrocery.put(\"milk\",1);\n\t\tgrocery.put(\"cucumber\",3);\n\t\tgrocery.put(\"banana\",12);\n\t\tgrocery.put(\"cheese\",2);\n\t\t\n\t\tSystem.out.println(grocery);\n//create a map of items to buy, we want to save order\n\t\tMap<String,Integer>household=new LinkedHashMap<>();\n\t\thousehold.put(\"lysol\",2);\n\t\thousehold.put(\"sanitizer\",4);\n\t\thousehold.put(\"papertowel\",2);\n\t\thousehold.put(\"facemask\",20);\n\t\tSystem.out.println(household);\n\t\t\n\t\t//create a map in which we store all previous items in ascending order\n\t\tMap<String,Integer>shopping=new TreeMap<>();\n\t\tshopping.putAll(household);\n\t\tSystem.out.println(shopping);\n\t\t\n\t\t//get all keys using loop\n\t\tfor(String key:shopping.keySet()) {\n\t\t\tSystem.out.println(\"Key: \"+key);\t\n\t\t}\n\t\t//get all keys using iterator\n\t\tIterator<String> it=shopping.keySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\tSystem.out.println(\"Key=\"+it.next());\n\t\t\n\t}\n\t\t//get all values using loop\n\t\tfor(int val:shopping.values()) {\n\t\t\tSystem.out.println(\"Values: \"+val);\n\t\t}\n\t\t//get all values using iterator\n\t\tIterator<Integer>iterator=shopping.values().iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(\"Key=\"+iterator.next());\n\t\t\t\t\n}\n}", "private static <K, V> Set<Map.Entry<K, V>> getSortedEntrySet(Map<K, V> dict) {\n if (!(dict instanceof SortedMap<?, ?>)) {\n Map<K, V> tmp = new TreeMap<>(EvalUtils.SKYLARK_COMPARATOR);\n tmp.putAll(dict);\n dict = tmp;\n }\n\n return dict.entrySet();\n }", "public static <K, V extends Comparable<? super V>> List<Entry<K, V>> getMapSortedByValue(Map<K, V> map) {\r\n\t\tfinal int size = map.size();\r\n\t\tfinal List<Map.Entry<K, V>> list = new ArrayList<Map.Entry<K, V>>(size);\r\n\t\tlist.addAll(map.entrySet());\r\n\t\tfinal ValueComparator<V> cmp = new ValueComparator<V>();\r\n\t\tCollections.sort(list, cmp);\r\n\t\treturn list;\r\n\t\t/*\r\n\t\tfinal List<K> keys = new ArrayList<K>(size);\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tkeys.set(i, list.get(i).getKey());\r\n\t\t}\r\n\t\treturn keys;\r\n\t\t*/\r\n\t}", "public static < K, V extends Comparable<V>>\n Map< K, V>\n sortByValues(final Map< K, V> map) {\n Comparator< K> valueComparator\n = new Comparator< K>() {\n public int compare(K k1, K k2) {\n int compare\n = map.get(k1).compareTo(map.get(k2));\n if (compare == 0) {\n return 1;\n } else {\n return compare;\n }\n }\n };\n Map< K, V> sortedByValues\n = new TreeMap<K, V>(valueComparator);\n\n sortedByValues.putAll(map);\n return sortedByValues;\n }", "public LinkedHashMap<Word, Integer> sortByValue() {\n\t\tList<Map.Entry<Word, Integer>> list = new ArrayList<>(result.entrySet());\n\t\tlist.sort(new ValueKeyComparator<Word,Integer>());\n\t\tLinkedHashMap<Word, Integer> sortedMap = new LinkedHashMap<>();\n \tlist.forEach(e -> sortedMap.put(e.getKey(), e.getValue()));\n return sortedMap;\n }", "public static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map) {\r\n\t\treturn map.entrySet().stream().sorted(Map.Entry.comparingByValue(Collections.reverseOrder()))\r\n\t\t\t\t.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\r\n\t}", "public static <K, V extends Comparable<? super V>> Map<K, V> sortMapByValue(final Map<K, V> mapToSort) {\n List<Map.Entry<K, V>> entries = new ArrayList<Map.Entry<K, V>>(mapToSort.size());\n \n entries.addAll(mapToSort.entrySet());\n \n Collections.sort(entries, new Comparator<Map.Entry<K, V>>() {\n @Override\n public int compare(final Map.Entry<K, V> entry1, final Map.Entry<K, V> entry2) {\n return entry2.getValue().compareTo(entry1.getValue());\n }\n });\n \n Map<K, V> sortedMap = new LinkedHashMap<K, V>();\n int count = 0;\n for (Map.Entry<K, V> entry : entries) {\n sortedMap.put(entry.getKey(), entry.getValue());\n count ++;\n if (count == COUNT_LIMIT) break;\n }\n return sortedMap;\n }", "public static void main(String[] args) {\n\n\t\tHashMap<String,String> hm = new HashMap<String, String>();\n\t\t\n\t\thm.put(\"e\",\"a1\");\n\t\thm.put(\"b\",\"a1\");\n\t\thm.put(\"a\",\"a2\");\n\t\t \n\t\thm.put(\"a\",\"a5\");\n\t\t\n\t\tSet s = hm.entrySet();\n\t\tIterator it = s.iterator();\n\t\t\n\t\tfor(Map.Entry me : hm.entrySet())\n\t\t\tSystem.out.println(me.getKey()+\" \"+me.getValue());\n\t\t\n\t\t\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry mentry = (Map.Entry) it.next();\n\t\t\tSystem.out.println(mentry.getKey() +\" \"+mentry.getValue());\n\t\t\t\n\t\t}\n\t\t\n\tMap<String,String> thmp = \tnew TreeMap<String,String> (hm);\n\tSystem.out.println();\n\tfor(Map.Entry g : thmp.entrySet())\n\t\tSystem.out.println(g.getKey()+\" \"+g.getValue());\n\t\n\t\n\tSystem.out.println(hm.containsKey(\"a\")+\" \"+hm.containsValue(\"a5\"));\n\t\n\t\t\n\t\t\n\t\t\n\t}", "Listof<Pairof<K, V>> sortedKeyVals();", "public static <K, V extends Comparable<? super V>> Map<K, V> sortDescendantByValue(Map<K, V> map)\n\t{\n\t\tList<Map.Entry<K, V>> list = new LinkedList<Map.Entry<K, V>>(map.entrySet());\n\t\tCollections.sort(list, new Comparator<Map.Entry<K, V>>()\n\t\t{\n\t\t\tpublic int compare(Map.Entry<K, V> o1, Map.Entry<K, V> o2)\n\t\t\t{\n\t\t\t\treturn (o2.getValue()).compareTo(o1.getValue());\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Stop here on 10/13/2019, Bing Li\n\t\t * \n\t\t * In some cases, the return value is expected to be concurrent collections to keep consistent management. But in others, the normal hash is expected for persistent. 10/12/2019, Bing Li\n\t\t * \n\t\t * The testing got problems at the option of 24.\n\t\t * \n\t\t */\n\t\t\n\t\tMap<K, V> result = new LinkedHashMap<K, V>();\n//\t\tMap<K, V> result = new ConcurrentHashMap<K, V>();\n\t\tfor (Map.Entry<K, V> entry : list)\n\t\t{\n\t\t\tresult.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn result;\n\t}", "private static void treeMapMap(Map<Integer, String> treeMapMap) {\n System.out.println(\"----------------------------- TreeMap ----------------------------\");\n System.out.println(\"To work with \\\"TreeMap\\\" we need to add \\\"Equals and HashCode\\\" and \\\"Comparable\\\" to the Person Class!\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by key\");\n treeMapMap.put(7, \"Cristiano Ronaldo\");\n treeMapMap.put(10, \"Leo Messi\");\n treeMapMap.put(8, \"Avi Nimni\");\n treeMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n treeMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n treeMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n }", "protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }", "public static void main(String[] args) {\n\t\t \n\t\tTreeMap<Integer, Character> tm=new java.util.TreeMap<Integer, Character>();\n\t\t\n\t\ttm.put(1, 'D');\n\t\ttm.put(2, 'B');\n\t\ttm.put(3, 'A');\n\t\ttm.put(4, 'C');\n\t\ttm.put(2, 'D'); //latest key,value pair is considered \n\n\t\tSystem.out.println(tm);\n\t\tSystem.out.println(tm.size());\n\n}", "@Override\r\n\t\t\t\tpublic int compare(Map.Entry<String, Integer> o1, Map.Entry<String, Integer> o2) {\n\t\t\t\t\treturn (o2.getValue()).compareTo(o1.getValue());\r\n\t\t\t\t}", "public static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map) {\n List<Map.Entry<K, V>> list = new LinkedList<>(map.entrySet());\n Collections.sort(list, (o1, o2) -> -(o1.getValue()).compareTo(o2.getValue()));\n\n Map<K, V> result = new LinkedHashMap<>();\n for (Map.Entry<K, V> entry : list) {\n result.put(entry.getKey(), entry.getValue());\n }\n return result;\n }", "public HashMap<String, Integer> sortByValue(HashMap<String, Integer> hm){\n\t\tList<Map.Entry<String, Integer>> list = new LinkedList<Map.Entry<String, Integer>>(hm.entrySet());\n\t\t\n\t\t//sort the list\n\t\tCollections.sort(list, new Comparator<Map.Entry<String, Integer>>(){\n\t\t\tpublic int compare(Map.Entry<String, Integer> o1, \n\t\t\t\t\t\t\t\tMap.Entry<String, Integer> o2) {\n\t\t\t\treturn (o1.getValue().compareTo(o2.getValue()));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//put data from sorted list to new hashmap\n\t\tHashMap<String, Integer> temp = new LinkedHashMap<String, Integer>();\n\t\tfor(Map.Entry<String, Integer> aa : list) {\n\t\t\ttemp.put(aa.getKey(), aa.getValue());\n\t\t}\n\t\treturn temp;\n\t}", "public static void main(String[] args) {\n LinkedHashMap<String, Integer> capitals = new LinkedHashMap<>();\n capitals.put(\"Nepal\", 2);\n capitals.put(\"India\", 100);\n capitals.put(\"United States\", 5);\n capitals.put(\"England\", 10);\n capitals.put(\"Australia\", 50);\n capitals.put(\"India\", 100);\n\n // call the sortMap() method to sort the map\n Map<String, Integer> result = sortMap(capitals);\n\n for (Map.Entry<String, Integer> entry : result.entrySet()) {\n System.out.print(\"Key: \" + entry.getKey());\n System.out.println(\" Value: \" + entry.getValue());\n }\n }", "public static LinkedHashMap<Integer, Integer> sortByValuesFromMap(\n\t\t\t\t\tMap<Integer, Integer> labelCountMap) {\n\t\t\t\t// long startTime = System.nanoTime();\n\t\t\t\tList<Integer> mapKeys = new ArrayList<Integer>(labelCountMap.keySet());\n\t\t\t\tList<Integer> mapValues = new ArrayList<Integer>(labelCountMap.values());\n\t\t\t\tCollections.sort(mapValues, new MyComparator());\n\n\t\t\t\tCollections.sort(mapKeys);\n\n\t\t\t\tLinkedHashMap<Integer, Integer> sortedMap = new LinkedHashMap<Integer, Integer>();\n\n\t\t\t\tIterator<Integer> valueIt = mapValues.iterator();\n\t\t\t\twhile (valueIt.hasNext()) {\n\t\t\t\t\tInteger val = (Integer) valueIt.next();\n\t\t\t\t\tIterator<Integer> keyIt = mapKeys.iterator();\n\n\t\t\t\t\twhile (keyIt.hasNext()) {\n\t\t\t\t\t\tInteger key = (Integer) keyIt.next();\n\t\t\t\t\t\tInteger val1 = labelCountMap.get(key);\n\t\t\t\t\t\tInteger val2 = val;\n\n\t\t\t\t\t\tif (val2.equals(val1)) {\n\t\t\t\t\t\t\tmapKeys.remove(key);\n\t\t\t\t\t\t\tsortedMap.put((Integer) key, (Integer) val);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// long endTime = System.nanoTime();\n\t\t\t\t// System.out.println(\"The time taken to sort TF -IDF values is:\"+(endTime-startTime)/Math.pow(10,\n\t\t\t\t// 9));\n\t\t\t\treturn sortedMap;\n\t\t\t}", "private static TreeMap<Integer, ArrayList<String>> treeMapOfTop(Map<Integer,\n ArrayList<String>> allMap, int numToReturn) {\n int numToAdd = numToReturn * 2;\n TreeMap<Integer, ArrayList<String>> top = new TreeMap<>();\n for (int key = allMap.keySet().size(); key > 0; key--) {\n ArrayList<String> rep = allMap.get(key);\n rep = new ArrayList<>(rep.subList(0, min(numToAdd, rep.size())));\n top.put(key, rep);\n numToAdd = numToAdd - rep.size();\n if (numToAdd < 0) {\n return top;\n }\n }\n return top;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tMap<Integer, Integer> map =new HashMap<>();\r\n\t\tmap.put(1, 8);\r\n\t\tmap.put(2, 2);\r\n\t\tmap.put(3, 9);\r\n\t\tmap.put(4, 2);\r\n\t\t\r\n\t\t\r\n\t\tSet<Entry<Integer, Integer>> ss = new HashSet<>(map.entrySet());\r\n\t\tList<Entry<Integer, Integer>> ll = new ArrayList<>(map.entrySet());\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(ll,new SortByValue());\r\n\t\tSystem.out.println(\"-------------------------------\");\r\n\t\t\r\n\t\tfor(Map.Entry<Integer, Integer> map1: ll)\r\n\t\t{\r\n\t\t\tSystem.out.println(map1.getKey()+\" :: \"+map1.getValue());\r\n\t\t}\r\n\r\n\t}", "public HashMap<String, Integer> sort(HashMap<String, Integer> num_opcode) {\r\n\t\tLinkedHashMap<String, Integer> sortedMap = new LinkedHashMap<>();\r\n\t\tnum_opcode.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))\r\n\t\t\t\t.forEachOrdered(x -> sortedMap.put(x.getKey(), x.getValue()));\r\n\r\n\t\treturn sortedMap;\r\n\t}", "public void bottomViewSorted()\r\n\t{\r\n\t\tint hd = 0;\r\n\t\tTreeMap<Integer, Node> map = new TreeMap<>();\r\n\t\tif(root == null)\r\n\t\t\treturn;\r\n\t\tQueue<Node> que = new LinkedList<>();\r\n\t\troot.hd=hd;\r\n\t\tNode node;\r\n\t\tque.add(root);\r\n\t\t\r\n\t\twhile(que.size() != 0)\r\n\t\t{\r\n\t\t\tnode = que.poll();\r\n\t\t\thd = node.hd;\r\n\t\t\tmap.put(hd, node);\r\n\t\t\tif(node.left != null)\r\n\t\t\t{\r\n\t\t\t\tnode.left.hd = hd - 1;\r\n\t\t\t\tque.add(node.left);\r\n\t\t\t}\r\n\t\t\tif(node.right != null)\r\n\t\t\t{\t\r\n\t\t\t\tnode.right.hd = hd + 1;\r\n\t\t\t\tque.add(node.right);\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tSet<Integer> keys = map.keySet();\r\n\r\n\t\tfor(Integer i : keys)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Key: \" +i+ \" & Value: \" +map.get(i).data);\r\n\t\t}\r\n\t}", "public static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map) {\r\n List<Entry<K, V>> list = new ArrayList<>(map.entrySet());\r\n list.sort(Entry.comparingByValue());\r\n\r\n Map<K, V> result = new LinkedHashMap<>();\r\n for (Entry<K, V> entry : list) {\r\n result.put(entry.getKey(), entry.getValue());\r\n }\r\n\r\n return result;\r\n }", "private TreeMap<Integer, List<NodeInfo>> convertToTreeMap(HashMap<ASTNode, NodeInfo> hashMap) {\n TreeMap<Integer, List<NodeInfo>> map = new TreeMap<>(Collections.reverseOrder());\n for (Map.Entry<ASTNode, NodeInfo> e : hashMap.entrySet()) {\n NodeInfo nodeInfo = e.getValue();\n if (map.containsKey(nodeInfo.subNodes)) {\n List<NodeInfo> list = map.get(nodeInfo.subNodes);\n list.add(nodeInfo);\n\n } else {\n\n // pick only no leaf nodes\n if (nodeInfo.subNodes > 0) {\n List<NodeInfo> list = new ArrayList<>();\n list.add(nodeInfo);\n map.put(nodeInfo.subNodes, list);\n }\n }\n\n }\n return map;\n }", "public static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map) {\n\t\treturn map.entrySet().stream()\n\t\t\t\t.sorted(Map.Entry\n\t\t\t\t\t\t.comparingByValue(Comparator.reverseOrder()))\n\t\t\t\t.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}", "public static HashMap<String, Double> sortByValue(HashMap<String, Double> rankedDocs)\n {\n // Creates a list from the elements of the HashMap\n List<Map.Entry<String, Double> > list =\n new LinkedList<Map.Entry<String, Double> >(rankedDocs.entrySet());\n\n // Sorts the list\n Collections.sort(list, new Comparator<Map.Entry<String, Double> >() {\n public int compare(Map.Entry<String, Double> o1,\n Map.Entry<String, Double> o2)\n {\n return (o2.getValue()).compareTo(o1.getValue());\n }\n });\n\n // puts the data from the sorted list into the HashMap\n HashMap<String, Double> temp = new LinkedHashMap<String, Double>();\n for (Map.Entry<String, Double> aa : list) {\n temp.put(aa.getKey(), aa.getValue());\n }\n return temp;\n }", "public static void main(String[] args) {\n\t\t TreeMap<Integer,String> tmap=new TreeMap<Integer, String>();\n\t tmap.put(1, \"a\");\n\t tmap.put(2, \"B\");\n\t tmap.put(3, \"c\");\n\t tmap.put(4, \"d\");\n\t tmap.put(5, \"Orange\");\n\t tmap.put(6, \"green\");\n\t tmap.put(7, \"Blue\");\n\t tmap.put(8, \"Yellow\");\n\t System.out.println(\"Original List: \" +tmap);\n\t \n\t System.out.println(tmap.firstEntry());\n\t System.out.println(tmap.lastEntry());\n}", "@Override\n default int compareTo(KeyValue<K, V> other) {\n return this.getKey().compareTo(other.getKey());\n }", "public static LinkedHashMap setMapKeySortByKeySet(LinkedHashMap map,LinkedList keys){\n LinkedHashMap ret = new LinkedHashMap();\n Iterator its= keys.iterator();\n while(its.hasNext()){\n Object o = its.next();\n ret.put(o,map.get(o));\n }\n if(ret.size()!=map.size()){\n its = map.keySet().iterator();\n while(its.hasNext()){\n Object o = its.next();\n if(!ret.containsKey(o)){\n ret.put(o,map.get(o));\n }\n }\n }\n return ret;\n }", "public static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map) {\n List<Map.Entry<K, V>> list = new LinkedList<Map.Entry<K, V>>(map.entrySet());\n\n Collections.sort(list, new Comparator<Map.Entry<K, V>>() {\n public int compare(Map.Entry<K, V> o1, Map.Entry<K, V> o2) {\n return (o1.getValue()).compareTo(o2.getValue());\n }\n });\n\n Map<K, V> result = new LinkedHashMap<K, V>();\n for (Map.Entry<K, V> entry : list) {\n result.put(entry.getKey(), entry.getValue());\n }\n return result;\n }", "public static LinkedHashMap<String, Integer> getOrderedResult(TreeMap<String, Integer> inputMap, Boolean debug, Rappresentation typeOrder)\r\n { \r\n Boolean mergeNote = false;\r\n Boolean getIndex = false;\r\n \r\n LinkedHashMap<String, Integer> outputMap = new LinkedHashMap<>();\r\n \r\n ArrayList<String> anglosaxonClassOrder = new ArrayList<>(Arrays.asList(\"C\",\"C#\",\"Db\",\"D\",\"D#\",\"Eb\",\"E\",\"F\",\"F#\",\"Gb\",\"G\",\"G#\",\"Ab\",\"A\",\"A#\",\"Bb\",\"B\"));\r\n ArrayList<String> diatonicNoteOrder = new ArrayList<>(Arrays.asList(\"Do\",\"Do#\",\"Reb\",\"Re\",\"Re#\",\"Mib\",\"Mi\",\"Fa\",\"Fa#\",\"Solb\",\"Sol\",\"Sol#\",\"Lab\",\"La\",\"La#\",\"Sib\",\"Si\"));\r\n ArrayList<String> pitchClassOrder = new ArrayList<>(Arrays.asList(\"C\",\"C#/Db\",\"D\",\"D#/Eb\",\"E\",\"F\",\"F#/Gb\",\"G\",\"G#/Ab\",\"A\",\"A#/Bb\",\"B\"));\r\n \r\n ArrayList<String> listToOrder = new ArrayList<>();\r\n \r\n if(typeOrder.name().equals(\"ANGLOSASSONE\"))\r\n {\r\n //System.out.println(\"Inside IF ANGLOSASSONE\");\r\n listToOrder = anglosaxonClassOrder;\r\n mergeNote = true;\r\n }\r\n else if(typeOrder.name().equals(\"DIATONICA\"))\r\n {\r\n //System.out.println(\"Inside IF DIATONICA\");\r\n listToOrder = diatonicNoteOrder;\r\n }\r\n else if(typeOrder.name().equals(\"PITCH_CLASS\"))\r\n {\r\n //System.out.println(\"Inside IF PITCH_CLASS\");\r\n listToOrder = anglosaxonClassOrder;\r\n getIndex = true;\r\n }\r\n\r\n for(int k=0; k<listToOrder.size(); k++)\r\n {\r\n String keyMap = \"\";\r\n if(inputMap.containsKey(listToOrder.get(k)))\r\n {\r\n if(mergeNote)\r\n {\r\n if(listToOrder.get(k).equals(\"C#\") || listToOrder.get(k).equals(\"Db\"))\r\n keyMap = \"C#/Db\";\r\n else if(listToOrder.get(k).equals(\"D#\") || listToOrder.get(k).equals(\"Eb\"))\r\n keyMap = \"D#/Eb\";\r\n else if(listToOrder.get(k).equals(\"F#\") || listToOrder.get(k).equals(\"Gb\"))\r\n keyMap = \"F#/Gb\";\r\n else if(listToOrder.get(k).equals(\"G#\") || listToOrder.get(k).equals(\"Ab\"))\r\n keyMap = \"G#/Ab\";\r\n else if(listToOrder.get(k).equals(\"A#\") || listToOrder.get(k).equals(\"Bb\"))\r\n keyMap = \"A#/Bb\";\r\n else\r\n keyMap = listToOrder.get(k);\r\n }\r\n else\r\n {\r\n if(!getIndex)\r\n keyMap = listToOrder.get(k);\r\n else\r\n {\r\n String tmpIndex = \"\";\r\n if(listToOrder.get(k).equals(\"C#\") || listToOrder.get(k).equals(\"Db\"))\r\n {\r\n tmpIndex = \"C#/Db\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n\r\n else if(listToOrder.get(k).equals(\"D#\") || listToOrder.get(k).equals(\"Eb\"))\r\n {\r\n tmpIndex = \"D#/Eb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"F#\") || listToOrder.get(k).equals(\"Gb\"))\r\n {\r\n tmpIndex = \"F#/Gb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"G#\") || listToOrder.get(k).equals(\"Ab\"))\r\n {\r\n tmpIndex = \"G#/Ab\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"A#\") || listToOrder.get(k).equals(\"Bb\"))\r\n {\r\n tmpIndex = \"A#/Bb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else\r\n {\r\n tmpIndex = listToOrder.get(k);\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"k: \" + k + \" tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n } \r\n }\r\n outputMap.put(keyMap, inputMap.get(listToOrder.get(k))); \r\n } \r\n }\r\n if(debug)\r\n {\r\n System.out.println(\"getOrderResult keySet \" + outputMap.keySet());\r\n System.out.println(\"getOrderResult values \" + outputMap.values());\r\n }\r\n if(!outputMap.isEmpty())\r\n return outputMap;\r\n else\r\n {\r\n outputMap.put(\"Empty\", -1);\r\n }\r\n return outputMap;\r\n }", "private void fillMap(TreeMap<Double, String> userlist, TreeMap<Double, String> ret) \r\n \t{\t\t\t\r\n \t\tSortedSet<Double> sortedKeys = (SortedSet<Double>) userlist.keySet();\r\n \t\tDouble prozent = getProzent(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\tret.put(prozent, userlist.get(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString())));\r\n \t\tuserlist.remove(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\t\r\n \t\tfor(int i = userlist.keySet().size() - 1; i >= 0; i--)\r\n \t\t{\t\r\n \t\t\tret.put(getProzent(Double.valueOf(sortedKeys.toArray()[i].toString())) + prozent, userlist.get(Double.valueOf(sortedKeys.toArray()[i].toString())));\r\n \t\t\tprozent += getProzent(Double.valueOf(sortedKeys.toArray()[i].toString()));\r\n \t\t\tuserlist.remove(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\t}\r\n \t}", "public static <K, V extends Comparable<? super V>> Map<K, V> sortByValue(Map<K, V> map)\n\t{\n\t\tList<Map.Entry<K, V>> list = new LinkedList<Map.Entry<K, V>>(map.entrySet());\n\t\tCollections.sort(list, new Comparator<Map.Entry<K, V>>()\n\t\t{\n\t\t\tpublic int compare(Map.Entry<K, V> o1, Map.Entry<K, V> o2)\n\t\t\t{\n\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t}\n\t\t});\n\t\t\n\t\tMap<K, V> result = new LinkedHashMap<K, V>();\n\t\tfor (Map.Entry<K, V> entry : list)\n\t\t{\n\t\t\tresult.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn result;\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate List<Entry> sortByValue(Map<Integer, Long> map) {\n\t List<Entry> list = new LinkedList<Entry>(map.entrySet());\n\t Collections.sort(list, new Comparator() {\n\t public int compare(Object o1, Object o2) {\n\t return ((Comparable) ((Map.Entry) (o1)).getValue())\n\t \t\t .compareTo(((Map.Entry) (o2)).getValue());\n\t }\n\t });\n\t return list;\n\t}", "public Listof<Pairof<K, V>> sortedKeyVals() {\n return this.bst.toSortedList().map(i -> new Pairof<>(i.left, i.right));\n }", "@Override\r\n\t\tpublic int compareTo(BSTSymbolTable<K, V>.Entry other) \r\n\t\t{\r\n\t\t\treturn this.key.compareTo(other.key);\r\n\t\t}", "public static void main(String[] args){\n\n TreeMap<Student, String> tmap = new TreeMap<>(new newComparator());\n tmap.put(new Student(\"aaaa\",12), \"Beijing\");\n tmap.put(new Student(\"bbbb\",12), \"Guangzhou\");\n tmap.put(new Student(\"dddd\",16), \"Zhuzhou\");\n tmap.put(new Student(\"cccc\",11), \"Shanghai\");\n tmap.put(new Student(\"aaaa\",19), \"Hongkong\");\n\n Set<Map.Entry<Student, String>> es = tmap.entrySet();\n Iterator<Map.Entry<Student, String>> it = es.iterator();\n\n\n /*\n while(it.hasNext()){\n Student stu = it.next();\n String location = map.get(stu);\n System.out.println(stu +\" --------- \"+location);\n }\n */\n\n while(it.hasNext()){\n Map.Entry<Student, String> me = it.next();\n Student stu = me.getKey();\n String addr = me.getValue();\n System.out.println(stu+\" ::: \"+ addr);\n\n }\n\n\n }", "@Override\n public int compareTo(DictionaryPair o) {\n return this.key.compareTo(o.key);\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t\tprivate static HashMap<String, Integer> sortByValues(HashMap<String, Integer> map, boolean reverse) {\n\t\t\tList list = new LinkedList(map.entrySet());\n\t\t\t// Defined Custom Comparator here\n\t\t\tCollections.sort(list, new Comparator() {\n\t\t\t\tpublic int compare(Object o1, Object o2) {\n\t\t\t\t\treturn ((Comparable) ((Map.Entry) (o1)).getValue())\n\t\t\t\t\t\t\t.compareTo(((Map.Entry) (o2)).getValue());\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (reverse)\n\t\t\t\tCollections.reverse(list);\n\t\t\t// Here I am copying the sorted list in HashMap\n\t\t\t// using LinkedHashMap to preserve the insertion order\n\t\t\tHashMap sortedHashMap = new LinkedHashMap();\n\t\t\tfor (Iterator it = list.iterator(); it.hasNext();) {\n\t\t\t\tMap.Entry entry = (Map.Entry) it.next();\n\t\t\t\tsortedHashMap.put(entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t\treturn sortedHashMap;\n\t\t}", "public static HashMap<String, Float> sortedMap(HashMap<String, Float> unsorted) {\n\t\tList<Map.Entry<String, Float>> list = new ArrayList<Map.Entry<String, Float>>(unsorted.entrySet());\n\t\tCollections.sort(list, new Comparator<Map.Entry<String, Float>>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Entry<String, Float> o1, Entry<String, Float> o2) {\n\t\t\t\tfloat val1 = o1.getValue();\n\t\t\t\tfloat val2 = o2.getValue();\t\t\n\t\t\t\tif (val1 > val2) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else if (val1 < val2) {\n\t\t\t\t\treturn -1;\n\t\t\t\t} else {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tHashMap<String, Float> sortedMap = new LinkedHashMap<String, Float>();\n\t\tfor (Iterator<Entry<String, Float>> it = list.iterator(); it.hasNext();) {\n\t\t\tMap.Entry<String, Float> entry = (Entry<String, Float>) it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn sortedMap;\n\t}", "@Override\n\t\tpublic int compare(Object a, Object b) {\n\t\t\tif(hm.get(a)>hm.get(b))\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t}", "public static Map sortByComparator(Map unsortMap) \n\t{\n\n\t\tList list = new LinkedList(unsortMap.entrySet());\n\n\t\t//sort list based on comparator\n\t\tCollections.sort(list, new Comparator() \n\t\t{\n public int compare(Object o1, Object o2) \n\t\t\t{\n\t\t\t\t// return ((Comparable) ((Map.Entry) (o1)).getValue()).compareTo(((Map.Entry) (o2)).getValue());\n\t\t\t\treturn ((Comparable) ((Map.Entry) (o1)).getKey()).compareTo(((Map.Entry) (o2)).getKey());\n\t\t\t}\n\t\t});\n\n //put sorted list into map again\n\t\tMap sortedMap = new LinkedHashMap();\n\t\tfor (Iterator it = list.iterator(); it.hasNext();) \n\t\t{\n\t\t\tMap.Entry entry = (Map.Entry)it.next();\n\t\t\tsortedMap.put(entry.getKey(), entry.getValue());\n\t\t}\n\t\t\n\t\treturn sortedMap;\n\t}", "private static <K extends Comparable<K>, V>\n ImmutableSortedMap<K, SortedSet<V>>\n copyMap(Map<K, ? extends SortedSet<V>> map) {\n final ImmutableSortedMap.Builder<K, SortedSet<V>> b =\n ImmutableSortedMap.naturalOrder();\n for (Map.Entry<K, ? extends SortedSet<V>> e : map.entrySet()) {\n b.put(e.getKey(), ImmutableSortedSet.copyOf(e.getValue()));\n }\n return b.build();\n }", "@Override\n\t\tpublic int compareTo(StringMapEntry other)\n\t\t{\n\t\t\treturn Integer.compare(key, other.key);\n\t\t}", "public static LinkedHashMap<UUID, Double> sortMap(RacePlugin plugin) {\n LinkedHashMap<UUID, Double> reverseSortedMap = new LinkedHashMap<>();\r\n\r\n//Use Comparator.reverseOrder() for reverse ordering\r\n getLocations(plugin).entrySet()\r\n .stream()\r\n .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))\r\n .forEachOrdered(x -> reverseSortedMap.put(x.getKey(), x.getValue()));\r\n return reverseSortedMap;\r\n }", "public static HashMap<String, Integer> sortByValue(HashMap<String, Integer> hm)\n {\n List<Map.Entry<String, Integer> > list =\n new LinkedList<Map.Entry<String, Integer> >(hm.entrySet());\n\n // Sort the list\n Collections.sort(list, new Comparator<Map.Entry<String, Integer> >() {\n public int compare(Map.Entry<String, Integer> o1,\n Map.Entry<String, Integer> o2)\n {\n return (o1.getValue()).compareTo(o2.getValue());\n }\n });\n\n HashMap<String, Integer> temp = new LinkedHashMap<String, Integer>();\n for (Map.Entry<String, Integer> aa : list) {\n temp.put(aa.getKey(), aa.getValue());\n }\n return temp;\n // put data from sorted list to hashmap\n\n }", "public static void main(String[] args) {\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"1\", \"2\");\n\t\thm.put(\"0\", \"5\");\n\t\thm.put(\"890\", \"6\");\n\t\thm.put(\"90\", \"3\");\n\t\tArrayList<HashMap> a = new ArrayList<HashMap>();\n\t\t\ta.add(hm);;\t\n\t\tCollections.sort((java.util.List) a);\n\t\tSystem.out.println(hm.values());\n\t}", "public static ArrayList<Entry<String, Double>> sortValue(HashMap<String, Double> t_e_f2){\n\t ArrayList<Map.Entry<String, Double>> l = new ArrayList(t_e_f2.entrySet());\n\t Collections.sort(l, new Comparator<Map.Entry<String, Double>>(){\n\n\t public int compare(Map.Entry<String, Double> o1, Map.Entry<String, Double> o2) {\n\t return o1.getValue().compareTo(o2.getValue());\n\t }});\n\t Collections.reverse(l);\n//\t System.out.println(l);\n\t\t return l;\n\t}", "private static HashMap<Knight, Float> sortByY(HashMap<Knight, Float> hm) {\n List<Map.Entry<Knight, Float>> list =\n new LinkedList<Map.Entry<Knight, Float> >(hm.entrySet());\n\n // Sort the list\n Collections.sort(list, new Comparator<Map.Entry<Knight, Float> >() {\n public int compare(Map.Entry<Knight, Float> o1,\n Map.Entry<Knight, Float> o2)\n {\n return -1*(o1.getValue()).compareTo(o2.getValue());\n }\n });\n\n // put data from sorted list to hashmap\n HashMap<Knight, Float> temp = new LinkedHashMap<Knight, Float>();\n for (Map.Entry<Knight, Float> aa : list) {\n temp.put(aa.getKey(), aa.getValue());\n }\n return temp;\n }" ]
[ "0.7416468", "0.71838564", "0.70798427", "0.7077805", "0.7006592", "0.67990196", "0.6739608", "0.6722577", "0.67112666", "0.6674386", "0.666256", "0.6660915", "0.66464776", "0.6566346", "0.65351796", "0.65201217", "0.6514534", "0.6512218", "0.65049773", "0.6496851", "0.6490822", "0.6480234", "0.64688444", "0.6456236", "0.6444135", "0.6427911", "0.64108044", "0.63669443", "0.6350608", "0.6344141", "0.63398486", "0.6338428", "0.6313881", "0.63022786", "0.629528", "0.6292663", "0.62656945", "0.62484986", "0.6242684", "0.62319356", "0.6216064", "0.62077016", "0.62077016", "0.6200544", "0.619681", "0.61903495", "0.6188094", "0.61820453", "0.61748546", "0.61718047", "0.6165239", "0.6152166", "0.61292315", "0.6114332", "0.6112309", "0.61120176", "0.6102478", "0.60940325", "0.60674125", "0.6062331", "0.6058827", "0.6050531", "0.6043068", "0.6030432", "0.6027388", "0.60195255", "0.6010885", "0.6009031", "0.5991344", "0.59863186", "0.5978492", "0.5978477", "0.5963297", "0.5946685", "0.59460783", "0.5939647", "0.5935468", "0.59341526", "0.59247726", "0.5917343", "0.59089714", "0.5905035", "0.5903987", "0.5901378", "0.5900769", "0.58938116", "0.5892494", "0.58920944", "0.5891389", "0.58895624", "0.58798736", "0.58673465", "0.5860811", "0.5844107", "0.58405614", "0.5835213", "0.5821435", "0.5812333", "0.5802862", "0.5802348", "0.5801988" ]
0.0
-1
This method returns the Java Object corresponding to Json Entities
public static void create(Map.Entry<String, JsonElement> keyValue, PayloadField payField) { if (keyValue == null) return; if (ApplicationConstants.DIGITALINPUT.equals(keyValue.getKey())) { payField.setDigitalInput( new DigitalInput(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } else if (ApplicationConstants.BAROMETER.equals(keyValue.getKey())) { payField.setBarometricPressure(new BarometricPressure( keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } else if (ApplicationConstants.DIGITALOUTPUT.equals(keyValue.getKey())) { payField.setDigitalOutput(new DigitalOutput( keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } else if (ApplicationConstants.ACC.equals(keyValue.getKey())) { payField.setAccelerometer( new Accelerometer(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.X).getAsFloat(), keyValue.getValue().getAsJsonObject().get(ApplicationConstants.Y).getAsFloat(), keyValue.getValue().getAsJsonObject().get(ApplicationConstants.Z).getAsFloat())); } else if (ApplicationConstants.ANALOGINPUT.equals(keyValue.getKey())) { payField.setAnalogInput( new AnalogInput(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } else if (ApplicationConstants.ANALOGOUTPUT.equals(keyValue.getKey())) { payField.setAnalogOutput( new AnalogOutput(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } else if (ApplicationConstants.GYRO.equals(keyValue.getKey())) { payField.setGyrometer( new Gyrometer(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.X).getAsFloat(), keyValue.getValue().getAsJsonObject().get(ApplicationConstants.Y).getAsFloat(), keyValue.getValue().getAsJsonObject().get(ApplicationConstants.Z).getAsFloat())); } else if (ApplicationConstants.GPS.equals(keyValue.getKey())) { payField.setGps( new GPS(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.LATITUDE).getAsFloat(), keyValue.getValue().getAsJsonObject().get(ApplicationConstants.LONGITUDE).getAsFloat())); } else if (ApplicationConstants.LUM.equals(keyValue.getKey())) { payField.setLuminosity( new Luminosity(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsInt())); } else if (ApplicationConstants.PRESENCE.equals(keyValue.getKey())) { payField.setPresence( new Presence(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } else if (ApplicationConstants.RELHUMIDITY.equals(keyValue.getKey())) { payField.setRelativeHumidity(new RelativeHumidity( keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } else if (ApplicationConstants.TEMP.equals(keyValue.getKey())) { payField.setTemperature( new Temperature(keyValue.getValue().getAsJsonObject().get(ApplicationConstants.VAL).getAsFloat())); } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object toJson();", "public String getJson();", "public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }", "String getJson();", "String getJson();", "String getJson();", "JSONObject toJson();", "JSONObject toJson();", "public abstract String toJson();", "protected JSONObject getJsonRepresentation() throws Exception {\n\n JSONObject jsonObj = new JSONObject();\n jsonObj.put(\"name\", getName());\n return jsonObj;\n }", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "public JsonObject toJson();", "T getObject() {\n\t\t\treturn data;\n\t\t}", "EntityData<?> getEntityData();", "public JSONObject toJson() {\n }", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "private <T> HttpEntity createHttpEntityForJson(T body) {\r\n\t\tString dataForEntity;\r\n\t\tif (!(body instanceof String)) {\r\n\t\t\tdataForEntity = gson.toJson(body);\r\n\t\t} else {\r\n\t\t\tdataForEntity = (String) body;\r\n\t\t}\r\n\t\t// try {\r\n\t\treturn new StringEntity(dataForEntity, Charset.forName(\"utf-8\"));\r\n\t\t// } catch (UnsupportedEncodingException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\t// return null;\r\n\t}", "public void toEntity(){\n\n }", "protected JSONObject getJsonRepresentation() throws Exception {\r\n\r\n JSONObject jsonObj = new JSONObject();\r\n jsonObj.put(\"note\", note);\r\n return jsonObj;\r\n }", "@Override\r\n\tpublic Object toJSonObject() {\n\t\treturn null;\r\n\t}", "@JsonIgnore\n\tpublic String getAsJSON() {\n\t\ttry {\n\t\t\treturn TransportService.mapper.writeValueAsString(this); // thread-safe\n\t\t} catch (JsonGenerationException e) {\n\t\t\tlog.error(e, \"JSON Generation failed\");\n\t\t} catch (JsonMappingException e) {\n\t\t\tlog.error(e, \"Mapping from Object to JSON String failed\");\n\t\t} catch (IOException e) {\n\t\t\tlog.error(e, \"IO failed\");\n\t\t}\n\t\treturn null;\n\t}", "T fromJson(Object source);", "protected String getJSON() {\n/*Generated! Do not modify!*/ return gson.toJson(replyDTO);\n/*Generated! Do not modify!*/ }", "private static <T> T getObjectFromJson(JsonNode dataJson) {\n Object object=null;\n if(!dataJson.has(CLASS_FIELD)) {\n return null;\n }\n /** Determine class of object and return with cast*/\n String classField=dataJson.get(CLASS_FIELD).asText();\n\n /** Lists -> All lists are converted into ArrayLists*/\n if(classField.startsWith(LIST_CLASS)) {\n try {\n String[] listType=classField.split(SEPERATOR);\n if(listType.length<2) {\n return (T) new ArrayList<>();\n }\n Class type=Class.forName(listType[1]);\n String json=dataJson.get(DATA_FIELD).toString();\n List<Object> list=new ArrayList<>();\n ArrayNode array=(ArrayNode) mapper.readTree(json);\n for(JsonNode item : array) {\n Object o=mapper.readValue(item.toString(), type);\n list.add(o);\n }\n return (T) list;\n }\n catch(JsonProcessingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n /** Single objects*/\n else {\n Class type=null;\n try {\n type=Class.forName(classField);\n /** Read primitive types (String,Integer,...)*/\n if(dataJson.has(PRIMITIVE_FIELD)) {\n object=mapper.readValue(dataJson.get(PRIMITIVE_FIELD).toString(), type);\n }\n else {\n object=mapper.readValue(dataJson.toString(), type);\n }\n return (T) object;\n }\n catch(ClassNotFoundException | JsonProcessingException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "@Override\n public X fromJson(EntityManager em, JSONValue jsonValue) {\n final ErraiEntityManager eem = (ErraiEntityManager) em;\n\n Key<X, ?> key = keyFromJson(jsonValue);\n\n X entity = eem.getPartiallyConstructedEntity(key);\n if (entity != null) {\n return entity;\n }\n\n entity = newInstance();\n try {\n eem.putPartiallyConstructedEntity(key, entity);\n for (Attribute<? super X, ?> a : getAttributes()) {\n ErraiAttribute<? super X, ?> attr = (ErraiAttribute<? super X, ?>) a;\n JSONValue attrJsonValue = jsonValue.isObject().get(attr.getName());\n\n // this attribute did not exist when the entity was originally persisted; skip it.\n if (attrJsonValue == null) continue;\n\n switch (attr.getPersistentAttributeType()) {\n case ELEMENT_COLLECTION:\n case EMBEDDED:\n case BASIC:\n parseInlineJson(entity, attr, attrJsonValue, eem);\n break;\n\n case MANY_TO_MANY:\n case MANY_TO_ONE:\n case ONE_TO_MANY:\n case ONE_TO_ONE:\n if (attr instanceof ErraiSingularAttribute) {\n parseSingularJsonReference(entity, (ErraiSingularAttribute<? super X, ?>) attr, attrJsonValue, eem);\n }\n else if (attr instanceof ErraiPluralAttribute) {\n parsePluralJsonReference(entity, (ErraiPluralAttribute<? super X, ?, ?>) attr, attrJsonValue.isArray(), eem);\n }\n else {\n throw new PersistenceException(\"Unknown attribute type \" + attr);\n }\n }\n }\n return entity;\n } finally {\n eem.removePartiallyConstructedEntity(key);\n }\n }", "public abstract String toJsonString();", "public JSON getJsonObject() {\n return jsonObject;\n }", "JsonObject raw();", "public JSONObject toJSONObject() {\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"id\", this.id);\n jSONObject.put(FIRST_NAME_KEY, this.firstName);\n jSONObject.put(MIDDLE_NAME_KEY, this.middleName);\n jSONObject.put(LAST_NAME_KEY, this.lastName);\n jSONObject.put(\"name\", this.name);\n if (this.linkUri == null) {\n return jSONObject;\n }\n jSONObject.put(LINK_URI_KEY, this.linkUri.toString());\n return jSONObject;\n } catch (JSONException e) {\n return null;\n }\n }", "@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}", "java.lang.String getMetadataJson();", "String getJSON();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}", "public JsonObject getObject() {\n return obj;\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "public final JSONObject toJSONObject() {\n AppMethodBeat.m2504i(71816);\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"id\", this.f5220id);\n jSONObject.put(FIRST_NAME_KEY, this.firstName);\n jSONObject.put(MIDDLE_NAME_KEY, this.middleName);\n jSONObject.put(LAST_NAME_KEY, this.lastName);\n jSONObject.put(\"name\", this.name);\n if (this.linkUri != null) {\n jSONObject.put(LINK_URI_KEY, this.linkUri.toString());\n }\n } catch (JSONException e) {\n jSONObject = null;\n }\n AppMethodBeat.m2505o(71816);\n return jSONObject;\n }", "public String jsonify() {\n return gson.toJson(this);\n }", "protected HttpEntity convertToHttpEntity(ClientEntity entity) {\r\n ByteArrayOutputStream output = new ByteArrayOutputStream();\r\n OutputStreamWriter writer = null;\r\n try {\r\n writer = new OutputStreamWriter(output, Constants.UTF8);\r\n final ODataSerializer serializer = odataClient.getSerializer(org.apache.olingo.commons.api.format.ContentType.JSON);\r\n serializer.write(writer, odataClient.getBinder().getEntity(entity));\r\n HttpEntity httpEntity = new ByteArrayEntity(output.toByteArray(),\r\n org.apache.http.entity.ContentType.APPLICATION_JSON);\r\n return httpEntity;\r\n } catch (Exception e) {\r\n throw new HttpClientException(e);\r\n } finally {\r\n IOUtils.closeQuietly(writer);\r\n }\r\n }", "protected abstract Serializable getEntity();", "@Override\r\n\tpublic JSONObject getJSON() {\n\t\treturn tenses;\r\n\t}", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "public native Object parse( Object json );", "<T> T parseToObject(Object json, Class<T> classObject);", "public String toJSON() throws JSONException;", "public JSONObject returnAsJSONObject() throws JSONException {\n\t\tJSONObject data = new JSONObject();\n\n\t\tdata.put(\"client_database_id\", this.id);\n\t\tdata.put(\"access_token\", this.access_token);\n\t\tdata.put(\"service\", this.service);\n\t\tdata.put(\"action\", this.action);\n\t\tdata.put(\"objects\", this.objects);\n\t\tdata.put(\"create_date\", this.create_date);\n\n\t\treturn data;\n\t}", "@Override\n\tpublic JSONObject getObjectInfo() {\n\t\tJSONObject jsonObject = new JSONObject();\n\t\ttry {\n\t jsonObject.put(\"bigpaytypename\", this.bigPayTypeName); \n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n return jsonObject;\n\t}", "String toJSON();", "public Object parseJsonToObject(String response, Class<?> modelClass) {\n\n try {\n return gson.fromJson(response, modelClass);\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "public JsonObject covertToJson() {\n JsonObject transObj = new JsonObject(); //kasutaja portf. positsiooni tehing\n transObj.addProperty(\"symbol\", symbol);\n transObj.addProperty(\"type\", type);\n transObj.addProperty(\"price\", price);\n transObj.addProperty(\"volume\", volume);\n transObj.addProperty(\"date\", date);\n transObj.addProperty(\"time\", time);\n transObj.addProperty(\"profitFromSell\", profitFromSell);\n transObj.addProperty(\"averagePurchasePrice\", averagePurchasePrice);\n return transObj;\n }", "String parseObjectToJson(Object obj);", "public Object getJsonObject() {\n return JSONArray.toJSON(values);\n }", "public JSONObject parseToJson() {\n JSONObject parsedExpense = new JSONObject();\n parsedExpense.put(\"name\", this.name);\n parsedExpense.put(\"amount\", this.amount);\n parsedExpense.put(\"month\",this.month);\n parsedExpense.put(\"category name\",this.category.getName());\n parsedExpense.put(\"category id\",this.category.getId());\n return parsedExpense;\n }", "public interface ApiObject {\n\n String toJson();\n\n Object fromJson(JsonObject json);\n}", "public MuseologicalObjectDO getEntity(){\r\n\t\tMuseologicalObjectDO objDO = new MuseologicalObjectDO();\r\n\t\tif(objectId != null) objDO.setId(objectId);\r\n\t\tobjDO.setName(name);\r\n\t\tobjDO.setDate(date.getTime());\r\n\t\tobjDO.setObjectType(objectType);\r\n\t\treturn objDO;\r\n\t}", "@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }", "@Override\n\tpublic JSONObject getJSONObject() {\n\t\treturn mainObj;\n\t}", "@Override\n public String toString() {\n return jsonString;\n }", "@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "private JsonElement serializeEntityType(Pair<EntityPrimitiveTypes, Stats> content) {\n JsonObject entityObject = new JsonObject();\n JsonObject statObject = new JsonObject();\n for (Map.Entry<Statistic, Double> entry :\n content.getSecond().getStatistics().entrySet()) {\n statObject.add(entry.getKey().name(), new JsonPrimitive(entry.getValue()));\n }\n entityObject.add(STATS, statObject);\n entityObject.add(JSONEntitySerializer.PRIMITIVE_TYPE, new JsonPrimitive(content.getFirst().name()));\n return entityObject;\n }", "public FilterItems jsonToObject(String json){\n json = json.replace(\"body=\",\"{ \\\"body\\\" : \");\n json = json.replace(\"&oil=\",\", \\\"oil\\\" : \");\n json = json.replace(\"&transmission=\",\", \\\"transmission\\\" :\");\n json = json + \"}\";\n json = json.replace(\"[]\",\"null\");\n ObjectMapper mapper = new ObjectMapper();\n FilterItems itemSearch = null;\n try {\n itemSearch = mapper.readValue(json, FilterItems.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return itemSearch;\n }", "public org.json.JSONObject getJSONObject() {\n return genClient.getJSONObject();\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public JSONObject toJSON() {\n JSONObject main = new JSONObject();\n JSONObject pocJSON = new JSONObject();\n pocJSON.put(JSON_NAME, this.getName());\n pocJSON.put(JSON_DESCRIPTION, this.getDescription());\n pocJSON.put(JSON_COLOR,this.colorConstraint.getColor().name());\n main.put(SharedConstants.TYPE, SharedConstants.PRIVATE_OBJECTIVE_CARD);\n main.put(SharedConstants.BODY,pocJSON);\n return main;\n }", "public String toJSON() {\n\t JSONObject outer = new JSONObject();\r\n\t JSONObject inner = new JSONObject();\r\n\t // Now generate the JSON output\r\n\t try {\r\n\t outer.put(\"articleMobile\", inner); // the outer object name\r\n\t inner.put(\"codeArticle\", codeArticle); // a name/value pair\r\n\t inner.put(\"designation\", designation); // a name/value pair\r\n\t inner.put(\"prixVente\", prixVente); // a name/value pair\r\n\t inner.put(\"stockTh\", stockTh);\r\n\t inner.put(\"error\", error); // a name/value pair\r\n\t inner.put(\"gisement\", gisement); // a name/value pair\r\n\t } catch (JSONException ex) {\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return outer.toString(); // return the JSON text\r\n\t}", "private JSON() {\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n return null;\n }", "@SuppressWarnings({\"hiding\", \"static-access\"})\n @Override\n public RavenJObject toJson() {\n RavenJObject ret = new RavenJObject();\n ret.add(\"Key\", new RavenJValue(key));\n ret.add(\"Method\", RavenJValue.fromObject(getMethod().name()));\n\n RavenJObject patch = new RavenJObject();\n patch.add(\"Script\", new RavenJValue(this.patch.getScript()));\n patch.add(\"Values\", RavenJObject.fromObject(this.patch.getValues()));\n\n ret.add(\"Patch\", patch);\n ret.add(\"DebugMode\", new RavenJValue(debugMode));\n ret.add(\"AdditionalData\", additionalData);\n ret.add(\"Metadata\", metadata);\n\n if (etag != null) {\n ret.add(\"Etag\", new RavenJValue(etag.toString()));\n }\n if (patchIfMissing != null) {\n RavenJObject patchIfMissing = new RavenJObject();\n patchIfMissing.add(\"Script\", new RavenJValue(this.patchIfMissing.getScript()));\n patchIfMissing.add(\"Values\", RavenJObject.fromObject(this.patchIfMissing.getValues()));\n ret.add(\"PatchIfMissing\", patchIfMissing);\n }\n return ret;\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "private JsonObject retrieveFlodContent(String alphacode) {\n\n\t\tString url = flodURL + alphacode;\n\n\t\tJsonObject flodJsonObject = null;\n\t\tJsonObject flodEntity = null;\n\t\tJsonReader reader = null;\n\t\ttry {\n\t\t\t// read Json data\n\t\t\tURL dataURL = new URL(url);\n\t\t\treader = new JsonReader(new InputStreamReader(dataURL.openStream()));\n\t\t\tJsonParser parser = new JsonParser();\n\t\t\tflodJsonObject = parser.parse(reader).getAsJsonObject();\n\n\t\t\tJsonArray bindings = flodJsonObject.get(\"results\")\n\t\t\t\t\t.getAsJsonObject().get(\"bindings\").getAsJsonArray();\n\n\t\t\tif (bindings.size() > 0) {\n\t\t\t\tflodEntity = flodJsonObject.get(\"results\").getAsJsonObject()\n\t\t\t\t\t\t.get(\"bindings\").getAsJsonArray().get(0)\n\t\t\t\t\t\t.getAsJsonObject();\n\t\t\t}\n\n\t\t\treader.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn flodEntity;\n\t\t// return flodJsonObject;\n\t}", "public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }", "private <T> JSONObject getJSONFromObject(T request) throws IOException, JSONException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);\n String temp = null;\n temp = mapper.writeValueAsString(request);\n JSONObject j = new JSONObject(temp);\n\n return j;\n }", "public abstract JsonElement serialize();", "public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }", "public JsonObject toJson() {\n\t\tJsonObject json = new JsonObject();\n\t\t\n\t\tif (id != null) {\n\t\t\tjson.addProperty( \"id\", id );\n\t\t}\n\t\tif (name != null) {\n\t\t\tjson.addProperty( \"name\", name );\n\t\t}\n\t\tif (version != null) {\n\t\t\tjson.addProperty( \"version\", version );\n\t\t}\n\t\tif (context != null) {\n\t\t\tjson.addProperty( \"context\", context );\n\t\t}\n\t\tif (provider != null) {\n\t\t\tjson.addProperty( \"provider\", provider );\n\t\t}\n\t\tif (description != null) {\n\t\t\tjson.addProperty( \"description\", description );\n\t\t}\n\t\tif (status != null) {\n\t\t\tjson.addProperty( \"status\", status );\n\t\t}\n\t\treturn json;\n\t}", "String getEntity();", "String getEntity();", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "@Override // java.util.concurrent.Callable\n public final Result<List<? extends Entity>> call() {\n DataManager instance = DataManager.getInstance();\n Intrinsics.checkNotNullExpressionValue(instance, \"DataManager.getInstance()\");\n return EntityConvertUtils.convertEntityList(instance.getGson(), FakeDanmakuData.access$createJson(this.this$0));\n }", "public static Employee convertJSONToJavaObject() throws JsonParseException, JsonMappingException, IOException{\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.configure(DeserializationFeature.UNWRAP_ROOT_VALUE,true); \n\t\tmapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n\t\tEmployee employee = mapper.readValue(new File(\"/home/ezcfghn/Technical Documents/REST_JAVA/EmployeeUpdated.json\"), Employee.class);\n\t\tSystem.out.println(\"Name:\"+employee.getFirstName()+\" \"+employee.getLastName());\n\t\tSystem.out.println(\"Department:\"+employee.getDepartment().toString());\n\t\tSystem.out.println(\"Academic Percentages:\"+employee.getAcademicPercentages().toString());\n\t\tSystem.out.println(\"Date Of Joining:\"+employee.getJodaDateOfJoining().toString());\n\t\tSystem.out.flush();\n\t\tSystem.out.close();\n\t\treturn employee;\n\t}", "@Override\r\n\tpublic JSONConvertor<?> getJSONConveter() throws OneM2MException {\n\t\treturn ConvertorFactory.getJSONConvertor(TimeSeries.class, TimeSeries.SCHEMA_LOCATION);\r\n\t}", "public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public JSONObject asJSON() {\n JSONObject object = new JSONObject();\n\n // Create the definition object\n JSONObject definition = new JSONObject();\n definition.put(\"name\", this.name);\n\n JSONArray jsonQuestions = new JSONArray();\n for (Question question : this.questions)\n jsonQuestions.add(question.asJSON());\n\n definition.put(\"questions\", jsonQuestions);\n\n // Create the \"completed\" array\n JSONArray jsonCompleted = new JSONArray();\n for (Response[] responses : this.completed) {\n JSONArray jsonResponses = new JSONArray();\n\n for (Response response : responses)\n jsonResponses.add(response);\n\n jsonCompleted.add(jsonResponses);\n }\n\n // Add both fields to the final object\n object.put(\"definition\", definition);\n object.put(\"completed\", jsonCompleted);\n\n return object;\n }", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "@Override\r\n public AseoEntity toEntity() {\r\n AseoEntity entity = new AseoEntity();\r\n entity.setBanho(this.banho);\r\n entity.setDientes(this.dientes);\r\n entity.setPeluqueria(this.peluqueria);\r\n entity.setCosto(this.getCosto());\r\n entity.setDuracion(this.getDuracion());\r\n entity.setEstado(this.isEstado());\r\n entity.setFecha(this.getFecha());\r\n entity.setRango(this.getRango());\r\n entity.setId(this.id);\r\n if (this.cliente != null) {\r\n entity.setCliente(cliente.toEntity());\r\n }\r\n if (this.mascota != null) {\r\n entity.setMascota(mascota.toEntity());\r\n }\r\n if (this.empleado != null) {\r\n entity.setEmpleado(empleado.toEntity());\r\n }\r\n if (this.factura != null) {\r\n entity.setFactura(factura.toEntity());\r\n }\r\n if (this.calificacion != null) {\r\n entity.setCalificacion(calificacion.toEntity());\r\n }\r\n if (this.getVeterinaria() != null) {\r\n entity.setVeterinaria(this.getVeterinaria().toEntity());\r\n }\r\n return entity;\r\n }", "@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }", "public abstract P toEntity();", "@Override\r\n\tpublic void translateToJSON(ParsedJSONContainer jsonContainer) {\t\tjsonContainer.put(\"id\",getId());\r\n\t\tjsonContainer.put(\"labels\",getLabels());\r\n\t\tjsonContainer.put(\"version\",getVersion());\r\n\t}", "public JSONObject toJSON() {\n return toJSON(true);\n }", "public String toJson() { return new Gson().toJson(this); }" ]
[ "0.67396325", "0.6480137", "0.64410377", "0.6188146", "0.6188146", "0.6188146", "0.61849326", "0.61849326", "0.61816317", "0.61389124", "0.60902244", "0.6079262", "0.6000751", "0.59721637", "0.5965397", "0.5942373", "0.5908444", "0.59062123", "0.59026396", "0.5869351", "0.5868852", "0.5867469", "0.5865351", "0.58643913", "0.5858739", "0.58328205", "0.5832248", "0.5829409", "0.5826584", "0.58222395", "0.5820964", "0.58184475", "0.5817184", "0.58115894", "0.58115894", "0.58115894", "0.5781751", "0.5778947", "0.5756706", "0.57542485", "0.5749789", "0.5749445", "0.57417333", "0.5740483", "0.5732163", "0.5726538", "0.57240975", "0.5716178", "0.57057697", "0.57050043", "0.5697451", "0.56920207", "0.5681916", "0.568086", "0.56649464", "0.564773", "0.56415296", "0.563765", "0.56366765", "0.5633591", "0.56331515", "0.5631002", "0.5627569", "0.56126654", "0.5609462", "0.5608878", "0.56072104", "0.5604454", "0.5590394", "0.55893284", "0.5586201", "0.5586201", "0.5586201", "0.5586201", "0.5586201", "0.5586201", "0.5586201", "0.5586201", "0.5586201", "0.5586201", "0.55849546", "0.557298", "0.5559988", "0.55586785", "0.555699", "0.5550903", "0.5545919", "0.5545919", "0.55400085", "0.55344903", "0.5531098", "0.5513388", "0.550425", "0.5500992", "0.5495293", "0.54937696", "0.5477403", "0.54749763", "0.54743135", "0.5473905", "0.5467364" ]
0.0
-1
Employee emp=new Employee("Tom","Elva","Edison"); Store store=new Store("summit ave", "123456"); Transaction test=new Transaction(store.getID(), store.getStoreInfo(), 0, emp.toString(), null, null, null, null);
@Test public void testGetEmployee() { Transaction test=new Transaction(null, null, 0, null, null, null, null, null); assertEquals(test.getID(),null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StoreOwner_Imp() {\n }", "public Transaction() {\n }", "public void createTransaction(Transaction trans);", "public Sale(Store store, Employee employee) {\n super(store);\n this.price = 0;\n\n if(store.getEmployees().contains(employee))\n this.employee = employee;\n else\n this.employee = null;\n }", "public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "Employee(int id, String name, String birthDate, int eage, double esalary){\r\n ID=id; \r\n NAME=name; \r\n BIRTHDATE=birthDate; \r\n age=eage; \r\n salary=esalary; \r\n }", "public static void main(String[] args) {\nmanager xx=new manager(\"sarath\",34,\"9895639874\",\"eloor\",30000,\"BPO\");\r\nemployee xx1=new employee(\"jomon\",24,\"9899999999\",\"eloor\",50000,\"testing\");\r\n\r\n\t}", "public void xxx() {\n System.out.println(\"Salary: \" + salary);\n printInfo();\n\n Employee e = new Employee(\"Andy\", \"123\", 26);\n// System.out.println(\"Name: \" + e.name + \"; Age: \" + e.age + \";ID: \" + e.id);\n\n Manager m = new Manager(\"Andylee\", \"124\", 27);\n// System.out.println(\"Name: \" + m.name + \"; Age: \" + m.age + \";ID: \" + m.id);\n\n }", "Transaction createTransaction();", "public EmployeeRecord(){}", "public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }", "public SalesEmployee(String firstName, String lastName, String number, double salary, double commission){\r\n this.firstname = firstName;\r\n this.lastname = lastName;\r\n this.number = number;\r\n this.salary = salary;\r\n this.commission = commission;\r\n }", "public Store() {\n }", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "public Employee(String firstName, String lastName, String SSN){\r\n this.firstName=firstName;\r\n this.lastName=lastName;\r\n this.SSN=SSN;\r\n }", "public static void main(String[] args) {\n\t\tStore store = new Store();\n\t\tEmployee e = new Employee(\"Dave\");\n\t\tfor(int i=1; i<6; i++) e.setHours(i, 8);\n\t\tstore.addEmp(e);\n\n\t\te = new Employee(\"Anna\");\n\t\te.setHours(6, 10);\n\t\tstore.addEmp(e);\n\n\t\te = new Employee(\"Paul\");\n\t\tstore.addEmp(e);\n\n\t\tSystem.out.println (store);\n\t\tSystem.out.println (store.getEmp(1));\n\t}", "public static void main(String[] args) {\nEmployee emp = new Employee();\r\nemp.setId(101);\r\n\t\temp.setName(\"Mrunal\");\r\n\t\tSystem.out.println(\"Id:\"+emp.getId()+\"EmpName:\"+emp.getName());;\r\n\t\t\r\n\t\t\r\n\t}", "public StoreTest() {\n }", "public Store(String name, String address1, String city, String state, String postalCode) {\n this.name = name;\n this.address1 = address1;\n this.city = city;\n this.state = state;\n this.postalCode = postalCode;\n }", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "public Txn() {\n }", "private Employee(String name, String city, String id,int salary) {\n\t\tthis.name = name;\n\t\tthis.city = city;\n\t\tthis.id = id;\n\t\tthis.salary = salary;\n\t}", "@Test\n public void testTransaction_1()\n throws Exception {\n Transaction result = new Transaction();\n assertNotNull(result);\n }", "public boolean requestTransaction(String name,String reason,double amount){\n Transaction t1 = new Transaction(name,reason,amount);\n boolean done=t1.registertransaction();\n \n return done; \n \n}", "public BookRecord(String NameOfTheBook, String NameofWriter, int isbnNumber, double booksCost) \r\n\r\n{ \r\n\r\nthis.NameOfTheBook = NameOfTheBook; \r\n\r\nthis.NameofWriter = NameofWriter; \r\n\r\nthis.isbnNumber = isbnNumber; \r\n\r\nthis.booksCost = booksCost; \r\n\r\n}", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee(String name, int id) {\n super(name, id);\n position = \"None\";\n salary = 0.0;\n }", "public static void main(String[] args) {\n\n Address tomAddress = new Address();\n tomAddress.address1 = \"Peter Drive\";\n tomAddress.address2 = \"Marine Street\";\n tomAddress.zip = \"3333\";\n tomAddress.country = \"India\";\n\n Student tom = new Student();\n tom.name = \"Tom\";\n tom.height = 4;\n tom.weigth = 50;\n tom.address = tomAddress;\n\n Student peter = new Student();\n peter.name = \"Peter\";\n peter.height = 5;\n peter.weigth = 55;\n\n Address peterAddress = new Address();\n peterAddress.address1 = \"Doll Wood\";\n peterAddress.address2 = \"Cota Street\";\n peterAddress.zip = \"322\";\n peterAddress.country = \"USA\";\n peter.address = peterAddress;\n\n// String address = new String(\"Some Drive\");\n// String address = (\"Some Drive\");\n// SpecialKitchen kitchen;\n }", "public Store() {\r\n\t\tsuper();\r\n\t}", "public creditPayment(String nm,String expdate,long no,double paymentAmount)\n{\nname=nm;\nexdate=expdate;\ncardnumber=no;\namount = paymentAmount;\n}", "public Transaction(){\n\t\t\n\t\ttransactions = new HashMap<String, ArrayList<Products>>();\n\t}", "int insert(Transaction record);", "public static void main (String[] args) //self testing main method\r\n {\n Employee emp = new Employee (\"John\", \"Smith\", \"P0444444\");\r\n System.out.println(emp.toString());\r\n System.out.println(emp.getFirstName());\r\n System.out.println(emp.getLastName());\r\n System.out.println(emp.getID());\r\n // change employee information\r\n emp.setFirstName(\"Joanne\");\r\n emp.setLastName(\"Johnson\");\r\n emp.setID(\"P0123456\");\r\n // display again\r\n System.out.println(emp.toString());\r\n }", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "public Transaction() {\n this(0, 0, null);\n }", "public Employee(String fName, String lName, String gender, double salary) {\n this.fName = fName;\n this.lName = lName;\n this.gender = gender;\n this.salary = salary; \n }", "public TransferMarket() {\n }", "public Employee(String name, int salary)\n\n\t{\n\t\tthis.name = name;\n\t\tthis.salary = salary;\n\t}", "public A_transaction() {\n initComponents();\n }", "public Employee(String Name) {\r\n this.Name = Name;\r\n }", "public Transaction(int staff, int memberInvovled, int bookInvovled) {\n this.type = TransactionType.RESERVE;\n this.staffHandled = staff;\n this.memberInvovled = memberInvovled;\n this.bookInvovled = bookInvovled;\n this.cashFlow = 0;\n }", "public JStore()\n {\n //put code in here\n }", "public Employee() {\n this.isActivated = false;\n this.salt = CryptographicHelper.getInstance().generateRandomString(32);\n\n this.address = new Address();\n this.reports = new ArrayList<>();\n }", "public Employee(String id) {\n super(id);\n }", "Transaction createTransaction(Settings settings);", "@Test\n public void purchaseCustomConstructor_isCorrect() throws Exception {\n\n int purchaseId = 41;\n int userId = 99;\n int accountId = 6541;\n double price = 99.99;\n String date = \"02/19/2019\";\n String time = \"12:12\";\n String category = \"test category\";\n String location = \"test location\";\n String comment = \"test comment\";\n\n //Create empty purchase\n Purchase purchase = new Purchase(purchaseId, userId, accountId, price, date, time, category, location, comment);\n\n // Verify Values\n assertEquals(purchaseId, purchase.getPurchaseId());\n assertEquals(userId, purchase.getUserId());\n assertEquals(accountId, purchase.getAccountId());\n assertEquals(price, purchase.getPrice(), 0);\n assertEquals(date, purchase.getDate());\n assertEquals(time, purchase.getTime());\n assertEquals(category, purchase.getCategory());\n assertEquals(location, purchase.getLocation());\n assertEquals(comment, purchase.getComment());\n }", "public TransactionProcessor(AtomicReference<Store> ref){\r\n this.storeRef = ref;\r\n }", "public Employee() {\t}", "@Test\r\n\tpublic void addEmployeeTestCase3() {\n\t\tEmployee employee3 = new Employee();\r\n\t\temployee3.name = \"Lingtan\";\r\n\t\temployee3.role = \"Ui designer\";\r\n\t\temployee3.email = \"[email protected]\";\r\n\t\temployee3.employeeID = \"Ling2655\";\r\n\t\temployee3.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee3.gender = \"Male\";\r\n\t\temployee3.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee3.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee3);\t\r\n\t}", "public Receipt recordTransaction(Transaction t) throws RemoteException;", "public static void main(String[] args) {\n\t\tEmployee e1=new Employee();\n\t\tSystem.out.println(e1);\n\t\tEmployee e2=new Employee(2,\"XYZ\",33333,new date(16,2,2014));\n\t\tSystem.out.println(e2);\n\t}", "@Test\n public void testInit()\n {\n SalesItem salesIte1 = new SalesItem(\"test name\", 1000);\n assertEquals(\"test name\", salesIte1.getName());\n assertEquals(1000, salesIte1.getPrice());\n }", "public Employee(){\r\n }", "public Employee() {\n\t\t\n\t}", "public Transaction(int somme, int payeur, int receveur) {\r\n\t\tthis.somme = somme;\r\n\t\tthis.payeur = payeur;\r\n\t\tthis.receveur = receveur;\r\n\t}", "public Trade() {\n\t}", "public Employee(String nama, int usia) {\r\n // Constructor digunakan untuk inisialisasi value, yang di inisiate saat melakukan instantiation\r\n this.nama = nama;\r\n this.usia = usia;\r\n }", "Employee() {\n\t}", "public SalesRecord() {\n super(Sales.SALES);\n }", "protected abstract Transaction createAndAdd();", "@Test\n public void testCreatePurchaseOrder() throws Exception {\n System.out.println(\"createPurchaseOrder\");\n Long factoryId = 1L;\n Long contractId = 2L;\n Double purchaseAmount = 4D;\n Long storeId = 2L;\n String destination = \"store\";\n Calendar deliveryDate = Calendar.getInstance();\n deliveryDate.set(2015, 0, 13);\n Boolean isManual = false;\n Boolean isToStore = true;\n PurchaseOrderEntity result = PurchaseOrderManagementModule.createPurchaseOrder(factoryId, contractId, purchaseAmount, storeId, destination, deliveryDate, isManual, isToStore);\n assertNotNull(result);\n }", "public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;", "public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }", "public static void main(String[] args) {\nnew Employee();// Calling the Constructor.\r\n\t}", "public void startNewSale() {\n sale = new Sale(cashRegister);\n }", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}", "void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public static void main(String[] args) {\n EmployeeTimed employeeTimed = null;\n try {\n employeeTimed = new EmployeeTimed(120000000000004L, \"Employee 1\", 100);\n } catch (IDException e) {\n e.printStackTrace();\n }\n /*\n try {\n employeeTimed.setID(1000000L);\n } catch (IDException e) {\n e.printStackTrace();\n }\n */\n System.out.println(employeeTimed.toString());\n\n// System.out.println(employeeSalaried.CalculateSalary());\n System.out.println(employeeTimed.CalculateSalary());\n\n }", "public Employee(Profile profile){\n this.profile = profile;\n this.payDue = payFormat(STARTPAY);\n\n }", "public Employee() {}", "public Employee() {\n }", "public Employee() {\n }", "public Employee() {\n }", "public Transaction(String transactionLine){\r\n\t\t\t//String delims = \"[\\\\s+]\";\r\n\t\t\tString[] tokens = transactionLine.split(\" +\");\r\n\t\t\tif (tokens[0].equals(\"\")){\r\n\t\t\t\tid = 00;\r\n\t\t\t}else{\r\n\t\t\t\tid = Integer.parseInt(tokens[0]);\r\n\t\t\t}\r\n\t\t\tif (id == 0){\r\n\t\t\t\tdate = 0;\r\n\t\t\t\tticket = 0;\r\n\t\t\t\tname = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tdate = Integer.parseInt(tokens[2]);\r\n\t\t\t\tticket = Integer.parseInt(tokens[3]);\r\n\t\t\t\tname = tokens[1];\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t }", "public Employee(){\n this.employeeName = new String();\n this.employeeSalary = null;\n this.employeeProjectList = new ArrayList<String>();\n this.employeeDepartmentLead = new String();\n }", "public PayrollRecord(String employee, double pay) {\n employeeName = employee;\n currentPay = pay;\n }", "public static void main(String[] args) {\n\t\temployee employee =new employee (\"hilal\",5000,20,2021);\n\t System.out.println(employee.toString());\n \n\t}", "public Store(String storeName, String streetAddress, String cityAddress, String stateAddress) {\n this.storeName = storeName;\n this.streetAddress = streetAddress;\n this.cityAddress = cityAddress;\n this.stateAddress = stateAddress;\n }", "void createACustomerWithoutTransaction() {\r\n\t\tSystem.out.println(\"\\nCreating a customer without a transaction:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tem.persist(c1);\r\n\t\tem.close();\r\n\t}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public static void main(String[] args) {\n Account firstAccount = new Account(\"first Account\",100.00);\n \n \n System.out.println(\"Initial State\");\n System.out.println(firstAccount);\n \n \n firstAccount.deposit(20);\n System.out.println(\"the balance of first Account is : \" + firstAccount.toString());\n \n \n }", "public Employee() {\n\n\t}", "public static void main(String[] args) {ITransactionBuilder t = TransactionFactory.tx_T();\n//\t\tITransactionBuilder t1 = TransactionFactory.tx_T1(42);\n//\t\tITransactionBuilder t2 = TransactionFactory.tx_T2();\n//\t\t\n//\t\tSystem.out.println(t);\n//\t\tSystem.out.println(t1);\n//\t\tSystem.out.println(t2);\n//\t\t\n//\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}", "RentalObject createRentalObject();", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String emailId, String mobileNumber) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.emailId = emailId;\n this.mobileNumber = mobileNumber;\n }", "Employees() { \r\n\t\t this(100,\"Hari\",\"TestLeaf\");\r\n\t\t System.out.println(\"default Constructor\"); \r\n\t }", "public static void main(String[] args) {\n Emp e=new Emp(\"tinku\",\"u\",\"hyd\",50000,(float)0.5);\n Emp m=new Emp(\"venu\",\"G\",\"hyd\",50000,(float)0.25);\n Emp k=new Emp(\"Srikanth\",\"v\",\"hyd\",75000,(float)0.15);\n Emp t=new Emp(\"sahith\",\"G\",\"hyd\",85000,(float)0.2);\n System.out.println(e);\n System.out.println(e.claculateNetSalary());\n System.out.println(m.claculateNetSalary());\n System.out.println(k.claculateNetSalary());\n System.out.println(t.claculateNetSalary());\n \t}", "public TRFStoreTotal() {\n }", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "public Employee(String name,String pos,int sal, int Vbal, int AnBon){\n Random rnd = new Random();\n this.idnum = 100000 + rnd.nextInt(900000);\n this.name = name;\n this.position = pos;\n this.salary = sal;\n this.vacationBal = Vbal;\n this.annualBonus = AnBon;\n this.password = \"AJDLIAFYI\";\n salaryHist[0] = salary;\n }", "public Employee(String fName, String lName, int ID) {\n this.FName = fName;\n this.LName = lName;\n this.ID = ID;\n }", "public static void main(String[] args) {\n\t\tDept dept= new Dept(1212, \"IT\", \"Bangalore\");\n\t\tEmp emp = new Emp(1234, \"Tarun\", 9999999999L, dept);\n\t\tSystem.out.println(emp);\n\t\tEmp e1=null;\n\t\ttry {\n\t\t\te1 = (Emp) emp.clone();\n\t\t\t\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdept.setLocation(\"Chennai\");\n\t\tSystem.out.println(e1);\n\t\t\n\t}", "public AddPurchaseDetail() {\r\n super();\r\n }", "public RecordStoreException() {\n }", "public static void main (String[] args)\r\n{\nAccount a = new SavingsAccount(\"john\",500,4);\r\nSystem.out.println(\"\\n Savings Account details\");\r\nSystem.out.println(\"----------------------\");\r\nSystem.out.println(\"\"+a.getName()+\"has an initial balance of:\"+a.getBalance());\r\na.deposit(200);\r\na.withdraw(200);\r\nSystem.out.println(\"\"+a.getName()+\"at the end of transaction has a balance of \"+a.getBalance());\r\n\r\nSystem.out.println(\"\\n checking account details\");\r\nSystem.out.println(\"----------------------\");\r\nCheckingAccount cAobj = new CheckingAccount(\"Stephen\",200,200);\r\nSystem.out.println(\"\\n Savings Account details\");\r\nSystem.out.println(\"----------------------\");\r\nSystem.out.println(\"\"+cAobj.getName()+\"has an initial balance of:\"+cAobj.getBalance());\r\ncAobj.deposit(200);\r\ncAobj.withdraw(500);\r\nSystem.out.println(\"\"+cAobj.getName()+\"at the end of transaction has a balance of \"+cAobj.getBalance());\r\n}", "public void saveEmployee(Employee emp){\n System.out.println(\"saved\" + emp);\n\n }", "Quote createQuote();" ]
[ "0.65053904", "0.64165646", "0.6262078", "0.6150274", "0.613193", "0.61302066", "0.609681", "0.6055645", "0.6046364", "0.6038797", "0.60088986", "0.59856904", "0.59808254", "0.5978472", "0.5976927", "0.5966272", "0.5964926", "0.5956187", "0.59451365", "0.593509", "0.5924766", "0.5898196", "0.58873427", "0.58701646", "0.58614767", "0.58233523", "0.5822382", "0.5822382", "0.58136624", "0.5795964", "0.5787288", "0.5777589", "0.57758534", "0.57646316", "0.5754582", "0.57518184", "0.57400215", "0.57399917", "0.5734239", "0.57225126", "0.57145894", "0.5708854", "0.57025725", "0.5697694", "0.56966424", "0.5694841", "0.56946874", "0.5686196", "0.568327", "0.5682624", "0.5682287", "0.56764525", "0.5675943", "0.5667124", "0.5663859", "0.56564766", "0.5652961", "0.5650484", "0.56486857", "0.56485295", "0.56477135", "0.56450826", "0.56450236", "0.56404835", "0.56345874", "0.5634571", "0.5631976", "0.5630081", "0.56297165", "0.5629001", "0.562077", "0.56155276", "0.56006235", "0.56006235", "0.56006235", "0.559972", "0.55930215", "0.5590146", "0.5587448", "0.5584134", "0.55775684", "0.5577061", "0.55762297", "0.557197", "0.5560608", "0.5552901", "0.5550771", "0.55496264", "0.55466855", "0.55466604", "0.55448747", "0.5540944", "0.5537071", "0.5534275", "0.5533552", "0.55286294", "0.5527565", "0.5522748", "0.5521544", "0.5521056" ]
0.6387225
2
Produce internal log format and save to SD card.
private synchronized static void internalLog(StringBuilder msg) { //add time header String timeStamp = simpleDateFormat.format(new Date()); msg.insert(0, timeStamp); byte[] contentArray = msg.toString().getBytes(); int length = contentArray.length; int srcPos = 0; if (mPos == LOG_BUFFER_SIZE_MAX) { //Flush internal buffer flushInternalBuffer(); } if (length > buffer.length) { //Strongly flush the current buffer no matter whether it is full flushInternalBuffer(); //Flush all msg string to sd card while (length > buffer.length) { System.arraycopy(contentArray, srcPos, buffer, mPos, buffer.length); flushInternalBuffer(); length -= buffer.length; srcPos += buffer.length; } } else if (length == buffer.length) { flushInternalBuffer(); //Copy contents to buffer System.arraycopy(contentArray, 0, buffer, mPos, length); flushInternalBuffer(); length = 0; } if (length < buffer.length && length > 0) { if ((mPos + length) > buffer.length) { flushInternalBuffer(); //Copy contents to buffer System.arraycopy(contentArray, srcPos, buffer, mPos, length); mPos += length; } else if ((mPos + length) == buffer.length) { //Add content to buffer System.arraycopy(contentArray, srcPos, buffer, mPos, length); mPos += length; flushInternalBuffer(); } else { //Add content to buffer System.arraycopy(contentArray, srcPos, buffer, mPos, length); mPos += length; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createLogFile() {\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFile root = Environment.getExternalStorageDirectory();\n\t\t\tLog.e(\"SD CARD WRITE ERROR : \", \"SD CARD mounted and writable? \"\n\t\t\t\t\t+ root.canWrite());\n\t\t\tif (root.canWrite()) {\n\t\t\t\tFile gpxfile = new File(root, \"ReadConfigLog.txt\");\n\t\t\t\tFileWriter gpxwriter = new FileWriter(gpxfile);\n\t\t\t\tout = new BufferedWriter(gpxwriter);\n\t\t\t\tout.write(\"Hello world\");\n\t\t\t\t// out.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"SD CARD READ ERROR : \", \"Problem reading SD CARD\");\n\t\t\tLog.e(\"SD CARD LOG ERROR : \", \"Please take logs using Logcat\");\n\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\"Could not write file \" + e.getMessage());\n\t\t}\n\t}", "private void writeLog(){\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(System.currentTimeMillis() + \", \");\r\n\t\tstr.append(fileInfo.getCreator() + \", \");\r\n\t\tstr.append(fileInfo.getFileName() + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(networkSize + \", \");\r\n\t\tstr.append(fileInfo.getN1() + \", \");\r\n\t\tstr.append(fileInfo.getK1() + \", \");\r\n\t\tstr.append(fileInfo.getN2() + \", \");\r\n\t\tstr.append(fileInfo.getK2() + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT)+ \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.encryStart, logger.encryStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \"\\n\");\r\n\t\t\r\n\t\tString tmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getKeyStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\r\n\t\t\r\n\t\ttmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getFileStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.FILE_CREATION, str.toString());\t\t\r\n\t\t\r\n\t\t// Topology Discovery\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"TopologyDisc, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.topStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT ) + \", \");\r\n\t\tstr.append(\"\\n\");\t\t\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\r\n\t\t\r\n\t\t// Optimization\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"Optimization, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.optStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(\"\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t\t\r\n\t\t\r\n\t\t// File Distribution\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"FileDistribution, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(logger.distStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \", \");\r\n\t\tstr.append(\"\\n\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t}", "protected void writeLog() {\r\n\r\n // get the current date/time\r\n DateFormat df1 = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\r\n\r\n // write to the history area\r\n if (Preferences.is(Preferences.PREF_LOG) && completed) {\r\n\r\n if (destImage != null) {\r\n\r\n if (srcImage != null) {\r\n destImage.getHistoryArea().setText(srcImage.getHistoryArea().getText());\r\n }\r\n\r\n if (historyString != null) {\r\n destImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n } else if (srcImage != null) {\r\n\r\n if (historyString != null) {\r\n srcImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n }\r\n }\r\n }", "public static void dumpLog() {\n\t\t\n\t\tif (log == null) {\n\t\t\t// We have no log! We must be accessing this entirely statically. Create a new log. \n\t\t\tnew Auditor(); // This will create the log for us. \n\t\t}\n\n\t\t// Try to open the log for writing.\n\t\ttry {\n\t\t\tFileWriter logOut = new FileWriter(log);\n\n\t\t\t// Write to the log.\n\t\t\tlogOut.write( trail.toString() );\n\n\t\t\t// Close the log writer.\n\t\t\tlogOut.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Close the log file itself.\n\t\t// Apparently we can't? TODO: Look into this. \n\n\t}", "public void generateLogFile() {\n\t\tFileOperations operator = new FileOperations(path);\n\t\toperator.writeFile(buildLogContent());\n\t}", "public void writeLog(){\n\t\ttry\n\t\t{\n\t\t\tFileWriter writer = new FileWriter(\"toptrumps.log\");\n\t\t\twriter.write(log);\n\t\t\twriter.close();\n\t\t\tSystem.out.println(\"log saved to toptrumps.log\");\n\t\t\t\n\t\t\tDataBaseCon.gameInfo(winName, countRounds, roundWins);\n\t\t\tDataBaseCon.numGames();\n\t\t\tDataBaseCon.humanWins();\n\t\t\tDataBaseCon.aIWins();\n\t\t\tDataBaseCon.avgDraws();\n\t\t\tDataBaseCon.maxDraws();\n\t\t\t\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void saveLog(LogInfo logText);", "private static void createLogFile() {\n try {\n String date = new Date().toString().replaceAll(\":\", \"-\");\n logFile = new FileWriter(\"bio-formats-test-\" + date + \".log\");\n TestLogger log = new TestLogger(logFile);\n LogTools.setLog(log);\n }\n catch (IOException e) { }\n }", "public void saveToLog(String log){\n \n File logfile = new File(System.getProperty(\"user.home\"), \"db_logfile\" + DwenguinoBlocklyArduinoPlugin.startTimestamp + \".txt\");\n try {\n BufferedWriter bWriter = new BufferedWriter(new PrintWriter(logfile));\n bWriter.write(log);\n bWriter.flush();\n bWriter.close();\n \n } catch (IOException ex) {\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void configLog()\n\t{\n\t\tlogConfigurator.setFileName(Environment.getExternalStorageDirectory() + File.separator + dataFileName);\n\t\t// Set the root log level\n\t\t//writerConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\t///writerConfigurator.setMaxFileSize(1024 * 1024 * 500);\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 1024);\n\t\t// Set log level of a specific logger\n\t\t//writerConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setImmediateFlush(true);\n\t\t//writerConfigurator.configure();\n\t\tlogConfigurator.configure();\n\n\t\t//gLogger = Logger.getLogger(this.getClass());\n\t\t//gWriter = \n\t\tgLogger = Logger.getLogger(\"vdian\");\n\t}", "void storeLogMessage(String log)\n {\n logImage += log + \"\\n\";\n System.out.println(logImage);\n printFile(\"Log.txt\");\n }", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "public void enableSDKLog() {\r\n\t\tString path = null;\r\n\t\tpath = Environment.getExternalStorageDirectory().toString() + \"/IcatchWifiCamera_SDK_Log\";\r\n\t\tEnvironment.getExternalStorageDirectory();\r\n\t\tICatchWificamLog.getInstance().setFileLogPath(path);\r\n\t\tLog.d(\"AppStart\", \"path: \" + path);\r\n\t\tif (path != null) {\r\n\t\t\tFile file = new File(path);\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.mkdirs();\r\n\t\t\t}\r\n\t\t}\r\n\t\tICatchWificamLog.getInstance().setSystemLogOutput(true);\r\n\t\tICatchWificamLog.getInstance().setFileLogOutput(true);\r\n\t\tICatchWificamLog.getInstance().setRtpLog(true);\r\n\t\tICatchWificamLog.getInstance().setPtpLog(true);\r\n\t\tICatchWificamLog.getInstance().setRtpLogLevel(ICatchLogLevel.ICH_LOG_LEVEL_INFO);\r\n\t\tICatchWificamLog.getInstance().setPtpLogLevel(ICatchLogLevel.ICH_LOG_LEVEL_INFO);\r\n\t}", "private void logToFile() {\n }", "public final void toLogFile() {\n\t\tRetroTectorEngine.toLogFile(\"Error message from \" + THESTRINGS[0] + \":\");\n\t\tfor (int i=1; i<THESTRINGS.length; i++) {\n\t\t\tRetroTectorEngine.toLogFile(THESTRINGS[i]);\n\t\t}\n\t}", "private static void saveIntoFile() throws IOException {\n\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\");\n\t\tString fileName = \"./ipmi.\" + format.format(new Date()) + \".log\";\n\n\t\tBasicConsumptionList file = new BasicConsumptionList();\n\t\tlogger.debug(\"file:\" + fileName);\n\t\tfile.setWriter(new FileWriter(fileName));\n\n\t\tSystem.err.println(ipmi.execute(Command.IPMI_SENSOR_LIST));\n\n\t\twhile (true) {\n\t\t\tDouble watts = ipmi.getWatt();\n\t\t\tfile.addData(System.currentTimeMillis(), watts);\n\t\t\tfile.commit();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.trace(\"\", e);\n\t\t\t}\n\t\t}\n\t}", "private static void saveLogs(boolean append) {\n\t\ttry {\n\t\t\tif (alLogs!=null && alLogs.size()>0) {\n\t\t\t\t// Convert the ArrayList to string array\n\t\t\t\tString[] arrLogs = new String[alLogs.size()];\n\t\t\t\tarrLogs = alLogs.toArray(arrLogs);\n\n\t\t\t\t// Open the log\n\t\t\t\tFileWriter fileWriterLog = new FileWriter(FILE_LOG, append);\n\n\t\t\t\t// User BufferedWriter to add new line\n\t\t\t\tBufferedWriter bufferedWriterLog = new BufferedWriter(fileWriterLog);\n\n\t\t\t\t// Go through all the content and write them to the file\n\t\t\t\tfor(int ix=0; ix < arrLogs.length; ix++) {\n\t\t\t\t\t// Write the current log\n\t\t\t\t\tbufferedWriterLog.write(arrLogs[ix]);\n\t\t\t\t\t// One log one line\n\t\t\t\t\tbufferedWriterLog.newLine();\n\t\t\t\t}\n\n\t\t\t\t// Always close files.\n\t\t\t\tbufferedWriterLog.close();\n\t\t\t}\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + FILE_LOG + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void saveComm() throws Exception {\n JFileChooser chooser = new JFileChooser();\n chooser.setFileFilter(new FileNameExtensionFilter(\"Log-Datei (*.log)\", \"log\"));\n\n File comfile = null;\n File home;\n File folder;\n Date date = Calendar.getInstance().getTime();\n DateFormat df = new SimpleDateFormat(\"yy.MM.dd-HH.mm.ss.SSS\");\n\n try {\n home = new File(System.getProperty(\"user.home\"));\n } catch (Exception e) {\n home = null;\n }\n\n if (home != null && home.exists()) {\n folder = new File(home + File.separator + \"Bike-Files\" + File.separator + \"Service_Files\");\n if (!folder.exists()) {\n if (!folder.mkdir()) {\n throw new Exception(\"Internal Error\");\n }\n }\n comfile = new File(folder + File.separator + \"CommLog_\" + df.format(date) + \".log\");\n }\n\n chooser.setSelectedFile(comfile);\n\n int rv = chooser.showSaveDialog(this);\n if (rv == JFileChooser.APPROVE_OPTION) {\n comfile = chooser.getSelectedFile();\n\n try (BufferedWriter w = new BufferedWriter(new FileWriter(comfile))) {\n CommunicationLogger.getInstance().writeFile(w);\n } catch (Exception ex) {\n LOG.severe(ex);\n }\n }\n }", "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }", "public void dumpLog(String filename){\n }", "public abstract WriteResult writeSystemLog(Log log);", "public void saveScreenshot() {\n if (ensureSDCardAccess()) {\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n doDraw(1, canvas);\n File file = new File(mScreenshotPath + \"/\" + System.currentTimeMillis() + \".jpg\");\n FileOutputStream fos;\n try {\n fos = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Panel\", \"FileNotFoundException\", e);\n } catch (IOException e) {\n Log.e(\"Panel\", \"IOEception\", e);\n }\n }\n }", "private void createOutputFiles(){\n\t\tFile folder = new File(C.appFolderPath + C.DEBUG_FOLDER);\n\t\tboolean success = true;\n\t\tif(folder.exists()){\n\t\t\t// erase the folder\n\t\t\tDeleteRecursive(folder);\n\t\t}\n\t\t\n\t\t// create necessary folders\n\t\tif (!folder.exists()) {\n\t\t success = folder.mkdir();\n\t\t Log.d(C.LOG_TAG, \"folder is not existed, create one\");\n\t\t} else {\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: folder has not been deleted\");\n\t\t}\n\t\tFile monitorFolder = new File(C.appFolderPath + C.DEBUG_FOLDER + logFolder);\n\t\tmonitorFolder.mkdir();\n\n\t\ttry {\n\t\t\tmMatlabOutFile = new PrintWriter(new FileOutputStream(new File(C.appFolderPath+ C.DEBUG_FOLDER +\"matlab.txt\"),true));\n\t\t\tmMatlabOutFile.println(inputPrefix+audioSettingName);\n\t\t\tmMatlabOutFile.println(RECODER_CHANNEL_CNT);\n\t\t\tmMatlabOutFile.println(C.DEFAULT_VOL);\n\t\t\tmMatlabOutFile.close();\n\t\t\tmMatlabOutFile = null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: can't open sensor file to write\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeToLogFile(String entry) {\r\n\t\ttry{\r\n\t\t\tStringBuilder out = new StringBuilder(50);\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\r\n\t\t out.append(sdf.format(cal.getTime()) + \";\" + entry);\r\n\t\t \r\n\t\t this.write(out);\r\n\t\t}catch (Exception e){\r\n\t\t System.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n\tpublic void update() {\n\t\tFile logFile = new File(AppStorage.getInstance().getLogFileLocation());\n\t\tlogFile.getParentFile().mkdirs();\n\n\t\ttry {\n\t\t\tFileHandler fileHandler = new FileHandler(AppStorage.getInstance().getLogFileLocation(), true);\n\t\t\tSimpleFormatter formatter = new SimpleFormatter();\n\t\t\tfileHandler.setFormatter(formatter);\n\n\t\t\twhile (logger.getHandlers().length > 0) {\n\t\t\t\tFileHandler prevFileHandler = (FileHandler)logger.getHandlers()[0];\n\t\t\t\tlogger.removeHandler(prevFileHandler);\n\t\t\t\tprevFileHandler.close();\n\t\t\t}\n\n\t\t\tlogger.addHandler(fileHandler);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeDeviceInfo() {\n StringBuffer text = new StringBuffer(getDeviceReport());\n dataWriter.writeTextData(text, \"info.txt\");\n }", "private void saveLog (String Tag, String Message) {\n Log.v(TAG, \"Init save log data\");\n String message = Tag + \" - \" + Message + \"\\n\";\n try {\n File file = new File(context.getExternalFilesDir(null).getAbsolutePath() + \"logcat.txt\");\n Log.v(TAG, \"SaveLog() - declare file success: \" + file);\n if(!file.exists()) {\n file.createNewFile();\n Log.v(TAG, \"SaveLog() - Check file exist: \");\n } else {\n FileOutputStream fos = new FileOutputStream(file,true);\n Log.v(TAG, \"SaveLog() - File exist\");\n fos.write(message.getBytes());\n Log.v(TAG, \"SaveLog() - Write data success\");\n fos.close();\n }\n Log.v(TAG, \"saveData() - Save success\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n Log.v(TAG, e.getMessage());\n } catch (Exception e ) {\n e.printStackTrace();\n Log.v(TAG, e.getMessage());\n }\n }", "public void log(String logThis){\n\t\t\n\t\t DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t Date today = Calendar.getInstance().getTime();\n\t String reportDate = df.format(today);\n\t\t\n\t\t\t{\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tFile log = new File(\"C:\\\\Users\\\\Student\\\\Downloads\\\\m1-java-capstone-vending-machine-A-Copy\\\\m1-java-capstone-vending-machine\\\\Log.txt\");\t\n\t\t\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(log, true));\n\n\t\t bufferedWriter.write(reportDate + \"||\" + logThis);\n\t\t bufferedWriter.newLine();\n\n\t\t bufferedWriter.close();\n\t\t\t\t\n\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t}", "public void dump(PhoneBill bill) throws IOException{\n String customer = bill.getCustomer();\n File file = new File(\"/Users/srubey/PortlandStateJavaSummer2020/phonebill/src/main/resources/edu/pdx/cs410J/scrubey/\"\n + Project2.getFileName());\n FileWriter writer = null;\n\n try{\n //**if file not yet created\n writer = new FileWriter(file);\n\n writer.write(\"Customer name: \" + bill.getCustomer() + \"\\n\\n\");\n writer.write(\"Caller# Callee#\\t\\t Start Date\\tStart Time\\tEnd Date\\tEnd Time\\n\");\n\n //iterate through each phone call, extracting and adding data to file\n for(int i = 0; i < bill.getPhoneCalls().size(); ++i) {\n String caller = bill.getPhoneCalls().get(i).callerNumber;\n String callee = bill.getPhoneCalls().get(i).calleeNumber;\n String sd = bill.getPhoneCalls().get(i).startDate;\n String st = bill.getPhoneCalls().get(i).startTime;\n String ed = bill.getPhoneCalls().get(i).endDate;\n String et = bill.getPhoneCalls().get(i).endTime;\n\n writer.write(caller + \" \" + callee + \" \" + sd);\n\n //formatting\n if(sd.length() < 10)\n writer.write(\"\\t\");\n\n writer.write(\"\\t\" + st + \"\\t\\t\" + ed + \"\\t\" + et + \"\\n\");\n }\n\n file.createNewFile();\n }catch(IOException e){\n System.out.print(\"\\nText File error\");\n }finally{\n writer.close();\n }\n }", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }", "@Override\n\tpublic void writeToDeviceReport(XmlSerializer serializer) throws IOException {\n\t\tthis.serializer = serializer;\n\t\t\n serializer.startTag(DeviceReportWriter.XMLNS, \"log_subreport\");\n \n try {\n\t\t\tif(storage != null) {\n\t\t\t\tif(Logger._() != null) {\n\t\t\t\t\tLogger._().serializeLogs(this);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tserializeLog(entry);\n\t\t\t}\n } finally {\n \tserializer.endTag(DeviceReportWriter.XMLNS, \"log_subreport\");\n }\n\t}", "private void CreateNewFile() {\n\tcheckState();\n\t\n\tif (CanR=CanW=true)\n\t{\n\t\t\n\t\ttry {\n\t\t root = Environment.getExternalStorageDirectory();\n\t\t \n\t\t if (root.canWrite()){\n\t\t gpxfile = new File(root, \"Speed_SD.csv\");\n\t\t gpxwriter = new FileWriter(gpxfile,true);\n\t\t out = new BufferedWriter(gpxwriter);\nout.append(\"\"+\",\"+\"\"+\",\"+\"\");\n\t\t out.newLine();\n\t\t }\n\t\t} catch (IOException e) {\n\t\t //Log.e(, \"Could not write file \" + e.getMessage());\ne.printStackTrace();\n\t\t\n\t}\n\t\t\n}\n\t\t}", "public static void snd_log(File filename, int size_of_file, int retrans, int pld, int num_of_drop, int num_of_corrupt,\n\t\t\t int num_of_rorder, int num_of_duplicate, int num_of_delay, int num_of_retran, int num_of_ftran,\n\t\t\t int num_of_dup){\n\t\ttry {\n\t\t\tBufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filename, true)));\n\t\t\tString line = \"=============================================================\\n\";\n\t\t\tString SOF = String.format(\"%-50s%8s\\n\", \"Size of the file (in Bytes)\", size_of_file);\n\t\t\tString ST = String.format(\"%-50s%8s\\n\", \"Segments transmitted (including drop & RXT)\", retrans);\n\t\t\tString NOSHP = String.format(\"%-50s%8s\\n\", \"Number of Segments handled by PLD\", pld);\n\t\t\tString NOSD = String.format(\"%-50s%8s\\n\", \"Number of Segments dropped \", num_of_drop);\n\t\t\tString NOSC = String.format(\"%-50s%8s\\n\", \"Number of Segments Corrupted\", num_of_corrupt);\n\t\t\tString NOSR = String.format(\"%-50s%8s\\n\", \"Number of Segments Re-ordered \", num_of_rorder);\n\t\t\tString NOSDUP = String.format(\"%-50s%8s\\n\", \"Number of Segments Duplicated \", num_of_duplicate);\n\t\t\tString NOSDLY = String.format(\"%-50s%8s\\n\", \"Number of Segments Delayed \", num_of_delay);\n\t\t\tString NOSRT = String.format(\"%-50s%8s\\n\", \"Number of Retransmissions due to TIMEOUT\", num_of_retran);\n\t\t\tString NOFR = String.format(\"%-50s%8s\\n\", \"Number of FAST RETRANSMISSION \", num_of_ftran);\n\t\t\tString NODA = String.format(\"%-50s%8s\\n\", \"Number of DUP ACKS received\", num_of_dup);\n\t\t\tout.write(line);\n\t\t\tout.write(SOF);\n\t\t\tout.write(ST);\n\t\t\tout.write(NOSHP);\n\t\t\tout.write(NOSD);\n\t\t\tout.write(NOSC);\n\t\t\tout.write(NOSR);\n\t\t\tout.write(NOSDUP);\n\t\t\tout.write(NOSDLY);\n\t\t\tout.write(NOSRT);\n\t\t\tout.write(NOFR);\n\t\t\tout.write(NODA);\n\t\t\tout.write(line);\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void open()\n {\n try\n {\n // Found how to append to a file here \n //http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java\n r = new PrintWriter( new BufferedWriter(new FileWriter(filePath, true)));\n }\n catch( IOException e )\n {\n r = null;\n UI.println(\"An error occored when operning stream to the log file.\\n This game wont be logged\");\n Trace.println(e);\n }\n }", "public String ToFile() {\n\t\tif (ismonitored) {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",1;\");\r\n\t\t} else {\r\n\t\t\treturn (\"\" + this.lon + \",\" + this.lat + \",\" + this.vtec + \",\" + this.rms + \",\" + this.timestamp + \",0;\");\r\n\t\t}\r\n\r\n\t}", "private String saveCrashInfo2File(Throwable throwable) {\n StringBuffer stringBuffer = new StringBuffer();\n Iterator iterator = this.infos.entrySet().iterator();\n do {\n if (!iterator.hasNext()) break;\n Map.Entry entry = (Map.Entry)iterator.next();\n String string2 = (String)entry.getKey();\n String string3 = (String)entry.getValue();\n stringBuffer.append(String.valueOf((Object)string2) + \"=\" + string3 + \"\\n\");\n } while (true);\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter((Writer)stringWriter);\n throwable.printStackTrace(printWriter);\n Throwable throwable2 = throwable.getCause();\n do {\n if (throwable2 == null) {\n printWriter.close();\n stringBuffer.append(stringWriter.toString());\n long l = System.currentTimeMillis();\n String string4 = this.formatter.format(new Date());\n String string5 = \"crash-\" + string4 + \"-\" + l + \".log\";\n if (!Environment.getExternalStorageState().equals((Object)\"mounted\")) return string5;\n File file = new File(\"/sdcard/crash/\");\n if (!file.exists()) {\n file.mkdirs();\n }\n FileOutputStream fileOutputStream = new FileOutputStream(String.valueOf((Object)\"/sdcard/crash/\") + string5);\n fileOutputStream.write(stringBuffer.toString().getBytes());\n fileOutputStream.close();\n return string5;\n }\n throwable2.printStackTrace(printWriter);\n throwable2 = throwable2.getCause();\n } while (true);\n catch (Exception exception) {\n Log.e((String)\"CrashHandler\", (String)\"an error occured while writing file...\", (Throwable)exception);\n return null;\n }\n }", "private void saveLocalFile(ByteArrayOutputStream out) {\n //sava in local files\n FileWriter fw;\n File file = new File(\"/home/shaowen2/testdata/\" + \"vm\" +servers.getServerAddress().substring(15, 17) +\"-ouput.log\");\n\n try {\n if (!file.exists()) {\n file.createNewFile();\n }\n fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(out.toString());\n //bw.write(\"\\n\" + \"Query Count:\" + count + \"|| Time:\" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void appendLog(String text) {\r\n\t\tFile logFile = new File(\"sdcard/\" + application.LOGFILENAME);\r\n\t\tif (!logFile.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tlogFile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tBufferedWriter buf = new BufferedWriter(new FileWriter(logFile, true));\r\n\t\t\tCalendar calendar = Calendar.getInstance();\r\n\t\t\ttry {\r\n\t\t\t\tSystem.err.println(\"Logged Date-Time : \" + calendar.getTime().toLocaleString());\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t}\r\n\t\t\tbuf.append(\"Logged Date-Time : \" + calendar.getTime().toLocaleString());\r\n\t\t\tbuf.append(\"\\n\\n\");\r\n\t\t\tbuf.append(text);\r\n\t\t\tbuf.newLine();\r\n\t\t\tbuf.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "private void chatSave() {\n try{\n //create a text file to write the chatList to\n PrintStream print =\n new PrintStream(new FileOutputStream(\"log.txt\", true));\n //write each line of the array to the file \n for (String str:chatList)\n print.println(str);\n //once each record has been written to the file, close it.\n print.close();\n } catch (IOException e) {\n // exception handling\n }\n }", "private void saveData( ) throws IOException {\n \tString FILENAME = \"data_file\";\n String stringT = Long.toString((SystemClock.elapsedRealtime() - timer.getBase())/1000)+\"\\n\";\n String stringS = textView.getText().toString()+\"\\n\";\n String stringD = Long.toString(System.currentTimeMillis())+\"\\n\";\n FileOutputStream fos;\n\t\ttry {\n\t\t\tfos = openFileOutput(FILENAME, Context.MODE_APPEND); //MODE_APPEND\n\t\t\tfos.write(stringS.getBytes());\n\t\t\tfos.write(stringT.getBytes());\n\t\t\tfos.write(stringD.getBytes());\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "@FXML\n\tprivate void onSaveClicked(){\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\tFile file = new File(\"log.txt\");\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\twriter = new PrintWriter(bw);\n\t\t\twriter.println(\"New record\");\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\twriter.println(list.get(i) +\" & \"+ (dat.get(i)));\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\ttextArea.setText(\"Exception occurred:\" + ioe.getMessage());\n\t\t} finally {\n\t\t\tif (writer != null) {\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t}\n\n\t}", "public void serializeLogs();", "public void writeLog(String log){\n //Create, if no files.\n if(!this.loggingFile.exists()){\n try {\n this.loggingFile.createNewFile();\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //Open the file.\n else{\n try {\n synchronized (this.loggingFile) {\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n\n }", "public File exportData() {\n File zephyrlogFolder = new File(Environment.getExternalStorageDirectory(), \"QuestionnaireActs\");\n\n boolean dirExists = zephyrlogFolder.exists();\n //if the directory doesn't exist, create it\n if (!dirExists) {\n dirExists = zephyrlogFolder.mkdirs();\n //if it still doesn't exist, give up and exit\n if (!dirExists) {\n Toast.makeText(this, \"Could not create ZephyrLogs directory!\", Toast.LENGTH_LONG).show();\n }\n }\n\n\n //create a data file and write into it\n File file = new File(zephyrlogFolder, \"Questionnaire_\"+promptName+\".txt\");\n try {\n FileWriter writer;\n if(!file.exists()){\n boolean created = file.createNewFile();\n if (!created) throw new IOException(\"Could not create data file\");\n writer = new FileWriter(file, true);\n //if this is a new file, write the CSV format at the top\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n } else {\n writer = new FileWriter(file, true);\n }\n writer.write(\"Ονοματεπώνυμο: \"+promptName+\"\\n\"+\"Score: \"+myscore+\"\\n\\n\");\n writer.close();\n } catch (FileNotFoundException e) {\n Toast.makeText(this, \"Could not create logging file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n Toast.makeText(this, \"Unsupported encoding exception thrown trying to write file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(this, \"IO Exception trying to write to data file!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n return file;\n }", "private void writeToSDFile() {\n File root = android.os.Environment.getExternalStorageDirectory();\n //Environment.getExternalStoragePublicDirectory()\n File dir = root.getAbsoluteFile();\n // See http://stackoverflow.com/questions/3551821/android-write-to-sd-card-folder\n //dir = new File (root.getAbsolutePath() + \"../extSdCard/FieldImages\"); //wrote to internal directory\n\n File dirnew = new File(dir.getParent());\n File dirfinal = new File(dirnew.getParent() + \"/extSdCard/FieldImages/mydata.txt\");\n Log.d(\"Files\", \"Path: \" + dirfinal.getPath());\n// String path = dirnew.getParent();\n File file[] = new File(dirnew.getParentFile() + \"/extSdCard/FieldImages\").listFiles();\n Log.d(\"Files\", \"Size: \" + file.length);\n for (int i = 0; i < file.length; i++) {\n Log.d(\"Files\", \"FileName:\" + file[i].getName());\n }\n\n// String pathnew = dir.getParent() + \"/legacy\";\n// Log.d(\"Files\", \"Pathnew: \" + pathnew);\n// File fnew = new File(pathnew);\n// File filenew[] = f.listFiles();\n// Log.d(\"Files\", \"Size: \"+ filenew.length);\n// for (int i=0; i < filenew.length; i++)\n// {\n// Log.d(\"Files\", \"FileName:\" + filenew[i].getName());\n// }\n //dir.mkdirs();\n //File file = new File(dir, \"myData.txt\");\n\n// try {\n// FileOutputStream f = new FileOutputStream(dirfinal);\n// PrintWriter pw = new PrintWriter(f);\n// pw.println(\"Hi , How are you\");\n// pw.println(\"Hello\");\n// pw.flush();\n// pw.close();\n// f.close();\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// Log.i(TAG, \"******* File not found. Did you\" +\n// \" add a WRITE_EXTERNAL_STORAGE permission to the manifest?\");\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n\n //Get the text file\n File filetest = dirfinal;\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(filetest));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }\n br.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n Log.i(TAG, \"******* File not found. Did you\" +\n \" add a WRITE_EXTERNAL_STORAGE permission to the manifest?\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Log.v(null,text.toString());\n\n }", "public void saveToSD() {\n sizeOfArrayList = scannedList.size();\n for (int i = 0; i < sizeOfArrayList; i++) {\n String fileName = \"STS\" + \".txt\";//like 2016_01_12.txt\n try {\n File root = new File(Environment.getExternalStorageDirectory() + File.separator + \"ScanToSheet\");\n if (!root.exists()) {\n root.mkdirs();\n }\n File gpxfile = new File(root, fileName);\n FileWriter writer = new FileWriter(gpxfile, true);\n writer.append(\"--------------------------------------------------------\\n\"\n +scannedList.get(i)+\"-\"+listDescOfItem.get(i)\n +\"\\n\"+listNoteOfItem.get(i)+\"\\n--------------------------------------------------------\\n\\n\\n\");\n writer.flush();\n writer.close();\n if(sizeOfArrayList==i+1){\n Snackbar.make(view, sizeOfArrayList+\" item saved to './ScanToSheet/STS.txt'...️\", Snackbar.LENGTH_LONG).show();\n }\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }\n }", "public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "protected BuildLog\n (\n final String fileName,\n final int buffer\n ) \n throws IOException\n {\n File logDir = new File(\"log\");\n if (!logDir.exists()) logDir.mkdirs();\n out = new PrintWriter\n (\n new BufferedWriter\n (\n new FileWriter(\"log\" + fileName, StandardCharsets.UTF_8), \n buffer\n )\n );\n }", "private static void write(String message) {\n\t\tFile log = new File(filePath);\t// File for the database log\n\t\tboolean isNew = false;\t\t\t// Stores if the file created is a new or an old one\n\t\t\n\t\ttry {\n\t\t\tif (!log.exists()) {\n\t\t\t\tisNew = log.createNewFile();\n\t\t\t} // End if\n\t\t\tPrintWriter pw = new PrintWriter(new FileWriter(log, true));\n\t\t\t\n\t\t\tif (Boolean.TRUE.equals(isNew)) {\n\t\t\t\tpw.append(\"Database operations log:\");\n\t\t\t} // End if\n\t\t\tpw.append(message);\n\t\t\tpw.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void doExport() {\n\t\tSQLiteDatabase db = null;\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tdb = openOrCreateDatabase(MyDbHelper.DATABASE_NAME, SQLiteDatabase.OPEN_READWRITE, null);\n\t\t\tcursor = db.rawQuery(\"SELECT * \" +\n \" FROM \" + LocationTable.TABLE_NAME +\n \" ORDER BY \" + LocationTable.COLUMN_TIMESTAMP + \" ASC\",\n null);\n \n\t\t\tint timestampColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_TIMESTAMP);\n int latitudeColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_LATITUDE);\n int longitudeColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_LONGITUDE);\n int accuracyColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_ACCURANCY);\n \n\t\t\tif (cursor.moveToFirst()) {\n\t\t\t\tStringBuffer fileBuf = new StringBuffer();\n\t\t\t\tString beginTimestamp = null;\n\t\t\t\tString endTimestamp = null;\n\t\t\t\tString timestamp = null;\n\t\t\t\tdo {\n\t\t\t\t\ttimestamp = cursor.getString(timestampColumnIndex);\n\t\t\t\t\tif (beginTimestamp == null) {\n\t\t\t\t\t\tbeginTimestamp = timestamp;\n\t\t\t\t\t}\n\t\t\t\t\tdouble latitude = cursor.getDouble(latitudeColumnIndex);\n\t\t\t\t\tdouble longitude = cursor.getDouble(longitudeColumnIndex);\n\t\t\t\t\tdouble accuracy = cursor.getDouble(accuracyColumnIndex);\n\t\t\t\t\tfileBuf.append(sevenSigDigits.format(longitude)+\",\"+sevenSigDigits.format(latitude)+\"\\n\");\n\t\t\t\t} while (cursor.moveToNext());\n\t\t\t\t\n\t\t\t\tendTimestamp = timestamp;\n\t\t\t\t\n\t\t\t\tcloseFileBuf(fileBuf, beginTimestamp, endTimestamp);\n\t\t\t\tString fileContents = fileBuf.toString();\n\t\t\t\tLog.d(ActivityName, fileContents);\n\t\t\t\tFile sdcard_path = Environment.getExternalStorageDirectory();\n\t\t\t\tFile sdDir = new File(sdcard_path, \"GPSLogger\");\n\t\t\t\tsdDir.mkdirs();\n\t\t\t\tFile file = new File(sdDir, zuluFormat(beginTimestamp) + \".kml\");\n\t\t\t\tFileWriter sdWriter = new FileWriter(file, false);\n\t\t\t\tsdWriter.write(fileContents);\n\t\t\t\tsdWriter.close();\n \t\t\tToast.makeText(getBaseContext(),\n \t\t\t\t\t\"Export completed!\",\n \t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\t\"I didn't find any location points in the database, so no KML file was exported.\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t}\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\"Error trying access the SD card. Make sure your handset is not connected to a computer and the SD card is properly installed\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t} catch (Exception e) {\n\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\"Error trying to export: \" + e.getMessage(),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t} finally {\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t\tif (db != null && db.isOpen()) {\n\t\t\t\tdb.close();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public synchronized void record(LogEvent le) {\n \n le.setDateEvent(new Date());\n System.out.println(\"Записывается в \"+name+\" лог с датой: \"+SDF.format(le.getDateEvent()));\n String message = layout.getMessage(le);\n \n if (isRotation){\n try {\n if (Files.size(file.toPath())>=maxSize){\n System.out.println(\"Размер файла\" +file.getName()+\" был превышен!\");\n file = getRotationFile(file);\n \n if (changeXML){\n changeXML(file.toPath(), config, name);\n }\n }\n } catch (FileNotFoundException f){\n System.out.println(\"Ошибка ввода-вывода в RollingFileAppender\");\n System.out.println(\"Файд не найден! \"+f.getMessage());\n } catch (IOException ex){\n System.out.println(\"Ошибка ввода-вывода в RollingFileAppender\");\n System.out.println(\"Ошибка в проверке размера файла: \"+ex.getMessage());\n }\n }\n \n try(OutputStreamWriter writer \n = new OutputStreamWriter(Files.newOutputStream(file.toPath(),\n StandardOpenOption.APPEND, StandardOpenOption.WRITE,\n StandardOpenOption.CREATE, StandardOpenOption.DSYNC) )){\n String m2 = new String(message.getBytes(\"UTF-8\"));\n writer.append(m2);\n } catch (IOException ex){\n System.out.println(\"Ошибка ввода-вывода в FileAppender \"+ex.getMessage());\n }\n }", "public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }", "LogRecord saveLog(LogRecord logRecord);", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }", "void setupFileLogging();", "private static void writeLog(String s) {\n if (logFile == null) createLogFile();\n LogTools.println(s);\n LogTools.flush();\n }", "public File newLogFile() {\n File flog = null;\n try {\n this.logFileName = getTimestamp() + \".xml\";\n this.pathToLogFile = logFileFolder + logFileName;\n URL logURL = new URL(this.pathToLogFile);\n flog = new File(logURL.toURI());\n if (!flog.exists()) {\n flog.createNewFile();\n }\n } catch (Exception ex) {\n log.error(\"newLogFile :\"+ ex.getMessage());\n } finally{\n this.fLogFile = flog;\n return flog;\n }\n }", "private static void LOG() {\n if (!RESULTFILE.exists()) {\n\n if (!RESULTFILE.getParentFile().exists()) {\n RESULTFILE.getParentFile().mkdirs();\n }\n\n try {\n RESULTFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + RESULTFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(RESULTFILE, true));\n bw.write(\"rank\" + \"\\t\" + \"DBID\" + \"\\n\");\n bw.close();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(RESULTFILE));\n out.writeObject(RESULTS);\n out.close();\n\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n }\n\n /**\n * print also SQL query into a sql file\n *\n */\n if (!SQLFILE.exists()) {\n if (!SQLFILE.getParentFile().exists()) {\n SQLFILE.getParentFile().mkdirs();\n }\n try {\n SQLFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + SQLFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(SQLFILE, true));\n bw.write(UNKNOWN.getSortedQuery() + \"\\n\");\n bw.close();\n } catch (Exception e) {\n System.err.println(\"Konnte nicht in Datei \" + SQLFILE + \" schreiben!\");\n }\n }\n }", "private void openLogFile()\r\n {\n try\r\n {\r\n GregorianCalendar gc = new GregorianCalendar();\r\n runTS = su.reformatDate(\"now\", null, DTFMT);\r\n logFile = new File(logDir + File.separator + runTS + \"_identifyFTPRequests_log.txt\");\r\n logWriter = new BufferedWriter(new FileWriter(logFile));\r\n String now = su.DateToString(gc.getTime(), DTFMT);\r\n writeToLogFile(\"identifyFTPRequests processing started at \" +\r\n now.substring(8, 10) + \":\" + now.substring(10, 12) + \".\" +\r\n now.substring(12, 14) + \" on \" + now.substring(6, 8) + \"/\" +\r\n now.substring(4, 6) + \"/\" + now.substring(0, 4));\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error opening log file: \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }", "static public boolean writeDatedLog(String logContent, Context context){\n //Create a filename\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy_MM_dd\");\n SimpleDateFormat timeFormatter = new SimpleDateFormat(\"HH:mm:ss\");\n Date now = new Date();\n String timeNow = timeFormatter.format(now);\n String fileName = \"Log_\" + dateFormatter.format(now) + \".txt\";\n try\n {\n //Get app directory\n File root = context.getExternalFilesDir(\"Logs\");\n if (!root.exists())\n {\n //If the root does not already exist create it\n root.mkdirs();\n }\n //Create or append to the file\n File logFile = new File(root, fileName);\n FileWriter writer = new FileWriter(logFile,true);\n logContent = timeNow + \": \" + logContent + \"\\n\";\n writer.append(logContent);\n writer.flush();\n writer.close();\n }\n catch(IOException e)\n {\n Log.e(TAG, e.toString());\n e.printStackTrace();\n return false;\n }\n return true;\n }", "private String setFileName() {\n Calendar c = Calendar.getInstance();\n\n String LOG = \"\";\n\n LOG += c.get(Calendar.YEAR);\n\n if (c.get(Calendar.MONTH) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.MONTH) + 1;\n\n if (c.get(Calendar.DATE) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.DATE);\n\n if (c.get(Calendar.HOUR_OF_DAY) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.HOUR_OF_DAY);\n\n if (c.get(Calendar.MINUTE) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.MINUTE);\n\n LOG += \".csv\";\n\n return LOG;\n }", "private static void writeLog(String log) {\n\t\twriteLog(log, true);\n\t}", "public Log()\n {\n filePath = String.format(\"log-%d.sl\", System.currentTimeMillis());\n\n open();\n }", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }", "private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void save(SystenLogInfo osInfo, String string) {\n\t\t\n\t}", "public Auditor () {\n\n\t\t// Create a new log file without deleting existing logs. Use the current time. \n\t\ttry {\n\t\t\tlog = new File( \"log: \" + Double.toString( new Date().getTime()) + \".txt\" );\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static void WriteFile(){\n String[] linha;\n FileWriter writer;\n try{\n writer = new FileWriter(logscommissions, true);\n PrintWriter printer = new PrintWriter(writer);\n linha = ManageCommissionerList.ReturnsCommissionerListInString(ManageCommissionerList.comms.size()-1);\n for(int i=0;i<19;i++){\n printer.append(linha[i]+ \"\\n\");\n }\n printer.close();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"Unable to read file\\n\");\n }\n try{\n Commissions temp = ManageCommissionerList.comms.get(ManageCommissionerList.comms.size()-1);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + temp.GetUniqueID() + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n \n }", "private void write(StringBuilder result) {\r\n\t\tif (this.fileWriter != null){\r\n\t\t\ttry {\r\n\t\t\t\tfileWriter.write(result.toString());\r\n\t\t\t\tfileWriter.flush();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlogger.error(\"Cannot write to file \"+this.myfilename+\" Logging the result at level INFO now. Cause: \"+e.getMessage());\r\n\t\t\t\tlogger.info(result.toString());\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tlogger.info(result.toString());\r\n\t\t}\r\n\t}", "private static synchronized void writeLog(String text, int level )\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[\"+DateUtil.toTime(System.currentTimeMillis(),DateUtil.DATE_FORMATE_HOUR_MINUTE_SECOND)+\"]\");\n\t\tswitch (level) {\n\t\tcase Log.VERBOSE:\n\t\t\tsb.append(\"[VERBOSE]\\t\");\n\t\t\tbreak;\n\t\tcase Log.DEBUG:\n\t\t\tsb.append(\"[DEBUG]\\t\");\n\t\t\tbreak;\n\t\tcase Log.INFO:\n\t\t\tsb.append(\"[INFO ]\\t\");\n\t\t\tbreak;\n\t\tcase Log.WARN:\n\t\t\tsb.append(\"[WARN ]\\t\");\n\t\t\tbreak;\n\t\tcase Log.ERROR:\n\t\t\tsb.append(\"[ERROR]\\t\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tRandomAccessFile raf = null;\n\t\ttry {\n\t\t\tString fileName = PERSIST_PATH+\"_\"+DateUtil.toTime(System.currentTimeMillis(), DateUtil.DATE_DEFAULT_FORMATE);\n\t\t\tFile logFile = new File(fileName);\n\t\t\tif(!logFile.exists())\n\t\t\t{\n\t\t\t\tUtil.initExternalDir(false);\n\t\t\t\tlogFile.createNewFile();\n\t\t\t}\n\t\t\traf = new RandomAccessFile(fileName, \"rw\");\n\t\t\traf.seek(raf.length());\n\t\t\traf.writeBytes(sb.toString()+text+\"\\r\\n\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(raf!=null)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\traf.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void createLogFile(int peerID) {\n String filename = \"peer_\" + peerID + \"/log_peer_\" + peerID + \".log\";\n File output = new File(\"peer_\" + peerID);\n output.mkdir();\n\n File file = new File(filename);\n\n try {\n if(!file.exists()) {\n file.createNewFile();\n FileWriter fw = new FileWriter(file.getAbsoluteFile(), true);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(\"Log File for peer_\" + peerID + \".\");\n bw.newLine();\n bw.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void saveTLZ(String dateTime) {\n try {\n Logger.writeLog(\"TESTCASERUNNER: Saving TLZ\");\n// File tlzPath = Globals.mainActivity.getFilesDir();\n File tlzPath = Globals.mainActivity.getExternalFilesDir(null);\n client.saveLog(new File(tlzPath, MessageFormat.format(\"{0}_{1}.tlz\", this.currentTestCase, dateTime)));\n } catch (IOException ioex) {\n Logger.writeLog(\"TESTCASERUNNER: Error while saving TLZ: \" + ioex.getMessage());\n }\n }", "public abstract void saveToFile(PrintWriter out);", "private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void _generate() {\n System.out.println(\"Started...\");\n try {\n log_ = new PrintStream(new FileOutputStream(System.getProperty(\"user.dir\") +\n \"\\\\\" + LOG_FILE));\n //writer_.start(); \n\t for (int i = 0; i < instances_[CS_C_UNIV].num; i++) {\n\t _generateUniv(i + startIndex_);\n\t }\n \n //writer_.end();\n log_.close();\n }\n catch (IOException e) {\n System.out.println(\"Failed to create log file!\");\n }\n System.out.println(\"Completed!\");\n }", "private void logOutputFile(TestInfo test, ITestInvocationListener listener)\n throws DeviceNotAvailableException {\n File resFile = null;\n InputStreamSource outputSource = null;\n\n try {\n resFile = mTestDevice.pullFileFromExternal(mOutputFile);\n if (resFile != null) {\n // Save a copy of the output file\n CLog.d(\"Sending %d byte file %s into the logosphere!\",\n resFile.length(), resFile);\n outputSource = new FileInputStreamSource(resFile);\n listener.testLog(String.format(\"result-%s.txt\", test.mTestName), LogDataType.TEXT,\n outputSource);\n\n // Parse the results file and post results to test listener\n parseOutputFile(test, resFile, listener);\n }\n } finally {\n FileUtil.deleteFile(resFile);\n StreamUtil.cancel(outputSource);\n }\n }", "private static void writeLog(Exception e) {\n if (logFile == null) createLogFile();\n LogTools.trace(e);\n LogTools.flush();\n }", "public void logOpen() throws IOException {\n\t\t\t\t// Initialization:\n\t\t\t\tfileCleaner(\"failed.log\");\n\t\t\t\tfileCleaner(\"failed.num\");\n\t\t\t\tfileCleaner(\"finish.time\");\n\t\t\t\tfileCleaner(\"ini.time\");\n\t\t\t\tfileCleaner(\"run.log\");\n\t\t\t\tfileCleaner(\"print.log\");\n\t\t\t\tfileCleaner(\"start.time\");\n\t\t\t\tfileCleaner(\"stack.trace\");\n\t\t\t\tfileCleaner(\"test.num\");\n\t\t\t\tfileCleaner(\"wait.log\");\n\t\t\t\tfileCleaner(\"xml.path\");\n\t\t\t\tfileCleaner(\"source.html\");\n\t\t\t\tString time = getCurrentDateTimeFull(); // System.out.print(\" TEST START: \" + time + \"\\n\");\n\t\t\t\tfileWriter(\"ini.time\", convertLongToString(System.currentTimeMillis()));\n\t\t\t\t// Initial Log record:\n\t\t\t\tfileWriter(\"run.log\", \" TEST START: \" + time);\n\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t}", "public void logClose() throws IOException {\n\t\t\t\tlong finish = System.currentTimeMillis();\n\t\t\t\tString time = getCurrentDateTimeFull();\n\t\t\t\t// Scanning Failure Counter record:\n\t\t\t\tint failed = 0;\n\t\t\t\tif (fileExist(\"failed.num\", false)) { failed = Integer.valueOf(fileScanner(\"failed.num\")); }\n\t\t\t\t// Scanning Test Counter record:\n\t\t\t\tint n = 1;\n\t\t\t\tif (fileExist(\"test.num\", false)) {\n\t\t\t\t\tif (!fileScanner(\"test.num\").equals(null)) { n = Integer.valueOf(fileScanner(\"test.num\")); }\n\t\t\t\t}\n\t\t\t\tif (n > 1) {\n\t\t\t\t\t// Scanning Initialization record:\n\t\t\t\t\tString startingTime = fileScanner(\"ini.time\");\n\t\t\t\t\tlong start = convertStringToLong(startingTime);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\tfileWriterPrinter(\" FAILED: \" + failed);\n\t\t\t\t\tfileWriterPrinter(\"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\tfileWriterPrinter(\"TEST FINISH: \" + time);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\tfileWriterPrinter();\n\t\t\t\t\t// Final Log record:\n\t\t\t\t\tif (fileExist(\"run.log\")) { \n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\t\tfileWriter(\"run.log\", \" FAILED: \" + failed);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST FINISH: \" + time);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Clean-up unnecessary file(s)\n\t\t\t\tfileCleaner(\"failed.num\");\n\t\t\t\tfileCleaner(\"finish.time\");\n\t\t\t\tfileCleaner(\"ini.time\");\n\t\t\t\tfileCleaner(\"start.time\");\n\t\t\t\tfileCleaner(\"stack.trace\");\n\t\t\t\tfileCleaner(\"test.num\");\n\t\t\t\tfileCleaner(\"xml.path\");\n\t\t\t}", "@Override\n public void initialize() \n {\n try {\n mLogFile = new FileWriter(\"/home/lvuser/drivePath.csv\", true);\n mLogFile.write(\"\\n\");\n mLogFile.write(\"\\n\");\n mLogFile.write(\"Event:\"+DriverStation.getInstance().getEventName()+\"\\n\");\n mLogFile.write(\"Match Number:\"+DriverStation.getInstance().getMatchNumber()+\"\\n\");\n mLogFile.write(\"Replay Number:\"+DriverStation.getInstance().getReplayNumber()+\"\\n\");\n mLogFile.write(\"Game Data:\"+DriverStation.getInstance().getGameSpecificMessage()+\"\\n\"); \n mLogFile.write(\"\\n\");\n }\n catch(IOException e) \n {\n e.printStackTrace();\n System.out.println(\"Unable to create FileWriter\");\n }\n mCount = 0;\n }", "public void writeLineToSdcard(String filename, String line) {\n final String outputFile = Environment.getExternalStorageDirectory().toString() + \"/\"\n + filename;\n try {\n FileWriter fstream = null;\n fstream = new FileWriter(outputFile, true);\n BufferedWriter out = new BufferedWriter(fstream);\n out.write(line + \"\\n\");\n out.close();\n fstream.close();\n Log.print(\"write log: \" + outputFile);\n } catch (Exception e) {\n Log.print(\"exception for write log\");\n }\n }", "public static void _generateStatistics() {\n\t\ttry {\n\t\t\t// Setup info\n\t\t\tPrintStream stats = new PrintStream(new File (_statLogFileName + \".txt\"));\n\n\t\t\tScanner scan = new Scanner(new File(_logFileName+\".txt\"));\n\t\t\twhile (scan.hasNext(SETUP.toString())) {\n\t\t\t\t// Append setup info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tstats.append(\"\\n\");\n\n\t\t\twhile (scan.hasNext(DETAILS.toString()) || scan.hasNext(RUN.toString())) {\n\t\t\t\t// Throw detailed info away\n\t\t\t\tscan.nextLine();\n\t\t\t}\n\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\t// Append post-run info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tscan.close();\n\t\t\tstats.append(\"\\n\");\n\n\t\t\t// Perf4J info\n\t\t\tReader reader = new FileReader(_logFileName+\".txt\");\n\t\t\tLogParser parser = new LogParser(reader, stats, null, 10800000, true, new GroupedTimingStatisticsTextFormatter());\n\t\t\tparser.parseLog();\n\t\t\tstats.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "static void recordProcess() {\n try {\n PrintWriter output = new PrintWriter(new FileWriter(file, true));\n output.print(huLuWaList.size() + \" \");\n lock.lock();\n for (Creature creature : huLuWaList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.print(enemyList.size() + \" \");\n for (Creature creature : enemyList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.println();\n output.close();\n lock.unlock();\n }catch (Exception ex){\n System.out.println(ex);\n }\n }", "private void closeLogFile()\r\n {\n try\r\n {\r\n GregorianCalendar gc = new GregorianCalendar();\r\n String now = su.DateToString(gc.getTime(), DTFMT);\r\n writeToLogFile(\"identifyFTPRequests processing ended at \" +\r\n now.substring(8, 10) + \":\" + now.substring(10, 12) + \".\" +\r\n now.substring(12, 14) + \" on \" + now.substring(6, 8) + \"/\" +\r\n now.substring(4, 6) + \"/\" + now.substring(0, 4));\r\n logWriter.close();\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error closing log file: \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }", "private void logToFile(ByteArrayOutputStream logbaos) {\n String filename = \"/tmp/QlikLoad.dat\"; // + totalOps;\n try(OutputStream outputStream = new FileOutputStream(filename, true)) {\n System.out.println(\"logging BAOS content to file: \" + filename);\n logbaos.writeTo(outputStream);\n } catch (FileNotFoundException e) {\n LOG.error(\"error writing buffer to file\", e);\n } catch (IOException e) {\n LOG.error(\"IOException when writing buffer to file\", e);\n }\n }", "public void writeToDir() {\n\t\ttry{\n\t\t\tString dirPath = Paths.get(\".\").toAbsolutePath().normalize().toString()+\"/\";\n\t\t\tString path = dirPath + filename; //get server dir path\n\t\t\tSystem.out.println(\"output file path is: \" + path);\n\t\t\tFileOutputStream out = new FileOutputStream(path);\n out.write(img);\n out.close();\n PL.fsync();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String saveCrashReportFile() {\r\n try {\r\n Log.d(LOG_TAG, \"Writing crash report file.\");\r\n long timestamp = System.currentTimeMillis();\r\n String isSilent = mCrashProperties.getProperty(IS_SILENT_KEY);\r\n String fileName = (isSilent != null ? SILENT_PREFIX : \"\") + \"stack-\" + timestamp + \".stacktrace\";\r\n FileOutputStream trace = mContext.openFileOutput(fileName, Context.MODE_PRIVATE);\r\n mCrashProperties.store(trace, \"\");\r\n trace.flush();\r\n trace.close();\r\n return fileName;\r\n } catch (Exception e) {\r\n Log.e(LOG_TAG, \"An error occured while writing the report file...\", e);\r\n }\r\n return null;\r\n }", "public static void clearLog(Context context) {\n if (log != null) log.clear();\n try {\n FileOutputStream fos = context.openFileOutput(FILENAME_LOG, Context.MODE_PRIVATE);\n PrintWriter writer = new PrintWriter(fos);\n writer.print(\"\");\n writer.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void constructLog() {\r\n String padStr = new String();\r\n padStr = \"Pad with slices \";\r\n\r\n if (padMode == PAD_FRONT) {\r\n padStr += \" using front slices\";\r\n } else if (padMode == PAD_BACK) {\r\n padStr += \" using back slices\";\r\n } else if (padMode == PAD_HALF) {\r\n padStr += \" using front and back slices\";\r\n }\r\n\r\n historyString = new String(\"PadWithSlices(\" + padStr + \")\\n\");\r\n }", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }" ]
[ "0.731265", "0.7134482", "0.6912129", "0.6720439", "0.6538103", "0.65193546", "0.6413904", "0.62889034", "0.6257529", "0.62249494", "0.61505574", "0.6133776", "0.6133776", "0.6133776", "0.6096363", "0.60319203", "0.59942055", "0.59905624", "0.5978539", "0.5955691", "0.5952305", "0.59219885", "0.59206563", "0.59145206", "0.5888843", "0.5886469", "0.5863682", "0.5822754", "0.5816049", "0.580857", "0.57491875", "0.5742082", "0.57263076", "0.5717225", "0.5711707", "0.56845605", "0.5674059", "0.5672198", "0.5665621", "0.56526166", "0.5645756", "0.5642728", "0.5636085", "0.5617869", "0.560598", "0.5599183", "0.5592054", "0.558848", "0.5581251", "0.5577768", "0.55756056", "0.5554543", "0.5538117", "0.55123883", "0.5511698", "0.5499283", "0.5498594", "0.54834867", "0.548342", "0.5477137", "0.54682994", "0.54631746", "0.5457225", "0.5429735", "0.54239345", "0.5423445", "0.5416592", "0.5410933", "0.5396035", "0.5391189", "0.5387005", "0.53768665", "0.53762287", "0.5368875", "0.53665215", "0.5360059", "0.53570056", "0.5352693", "0.53493387", "0.5343179", "0.53401613", "0.5338445", "0.53261423", "0.5323947", "0.53081983", "0.53013307", "0.52972406", "0.5296355", "0.5286974", "0.5285048", "0.52696395", "0.5267787", "0.5262058", "0.5261641", "0.5260898", "0.5259161", "0.52558994", "0.5253944", "0.525355", "0.52468705" ]
0.5297985
86
Flush internal buffer to SD card and then clear buffer to 0.
private static void flushInternalBuffer() { //Strongly set the last byte to "0A"(new line) if (mPos < LOG_BUFFER_SIZE_MAX) { buffer[LOG_BUFFER_SIZE_MAX - 1] = 10; } long t1, t2; //Save buffer to SD card. t1 = System.currentTimeMillis(); writeToSDCard(); //calculate write file cost t2 = System.currentTimeMillis(); Log.i(LOG_TAG, "internalLog():Cost of write file to SD card is " + (t2 - t1) + " ms!"); //flush buffer. Arrays.fill(buffer, (byte) 0); mPos = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flush(){\r\n mBufferData.clear();\r\n }", "public void clearBuffer(){\n System.out.println(\"Clearning beffer\");\n //Deletes the buffer file\n File bufferFile = new File(\"data/buffer.ser\");\n bufferFile.delete();\n }", "public void flushData()\n {\n try {\n //outputStreamAccelerometer.flush();\n //outputStreamLinear.flush();\n outputStreamAccelerometer.close();\n outputStreamLinear.close();\n\n String paths[] = {fileAccelerometer.getPath(), fileLinear.getPath(), fileSettings.getPath()};\n MediaScannerConnection.scanFile(context, paths, null, this);\n }\n catch(Exception exc)\n {\n Log.e(\"LOGGER_ERROR_FLUSH\", exc.toString());\n exc.printStackTrace();\n }\n }", "@Override\r\n public synchronized void flush() throws IOException {\r\n\t\tif ( count != 0 ) {\r\n\t\t writeBuffer(buf, 0, count );\r\n\t\t count = 0;\r\n\t\t}\r\n\t}", "public void clear() {\n\t\tbufferLast = 0;\n\t\tbufferIndex = 0;\n\t}", "public void clear() throws DeviceException;", "public static void flush() {\n try {\n sDiskLruCache.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void flush(){\n\t\ttry{\n\t\t\tse.write(buffer, 0, bufferPos);\n\t\t\tbufferPos = 0;\n\t\t\tse.flush();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}", "private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }", "private void clearBuffer() {\n\t\tfor (int i = 0; i < buffer.length; i++) {\n\t\t\tbuffer[i] = 0x0;\n\t\t}\n\t}", "public void clear() {\n this.init(buffer.length);\n }", "public void flush() {\r\n // Flushing is required only if there are written bytes in\r\n // the current data element.\r\n if (bytenum != 0) {\r\n data[offset] = elem;\r\n }\r\n }", "public void clear() {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\ttry {\n\t\t\tfileChannel.position(0).truncate(0);\n\t\t\tsync();\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Exception in clear()\", e);\n\t\t}\n\t}", "private synchronized void clear(){\n if(line != null){\n line.flush();\n line.stop();\n line.close();\n if(audioInputStream != null) {\n try {\n audioInputStream.close();\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n }\n }\n }", "private void flush() {\n try {\n final int flushResult = Mp3EncoderWrap.newInstance().encodeFlush(mp3Buffer);\n Log.d(TAG, \"===zhongjihao====flush mp3Buffer: \"+mp3Buffer+\" flush size: \"+flushResult);\n if (flushResult > 0) {\n mp3File.write(mp3Buffer, 0, flushResult);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n mp3File.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n Log.d(TAG, \"===zhongjihao====destroy===mp3 encoder====\");\n Mp3EncoderWrap.newInstance().destroyMp3Encoder();\n }\n }", "private void flushBuffer(Runnable paramRunnable) {\n/* 149 */ int i = this.buf.position();\n/* 150 */ if (i > 0 || paramRunnable != null)\n/* */ {\n/* 152 */ flushBuffer(this.buf.getAddress(), i, paramRunnable);\n/* */ }\n/* */ \n/* 155 */ this.buf.clear();\n/* */ \n/* 157 */ this.refSet.clear();\n/* */ }", "public void flush() throws IOException {\n\t\tmFile.seek(mOffset);\n\t\tmWriter.write(mBuffer, 0, mBufferLength);\n\t\tmOffset += mBufferLength;\n\t\tmBufferLength = 0;\n\t}", "void flushBuffer();", "public synchronized void clear() throws IOException {\n init(bytesPerId, bytesPerType, bytesPerPath);\n }", "public final void clearBuffer() {\n width = 0;\n height = 0;\n noiseBuffer = null;\n }", "private void resetBuffer() {\n baos.reset();\n }", "private void flush() {\n try {\n output.write(digits);\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n digits = 0;\n numDigits = 0;\n }", "public abstract void Flush()\n\t\tthrows IOException, SMBException;", "@Override\n public void flush() throws IOException {\n FileDescriptor myFd = fd;\n if (myFd == null) throw new IOException(\"socket closed\");\n\n // Loop until the output buffer is empty.\n Int32Ref pending = new Int32Ref(0);\n while (true) {\n try {\n // See linux/net/unix/af_unix.c\n Os.ioctlInt(myFd, OsConstants.TIOCOUTQ, pending);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n\n if (pending.value <= 0) {\n // The output buffer is empty.\n break;\n }\n\n try {\n Thread.sleep(10);\n } catch (InterruptedException ie) {\n break;\n }\n }\n }", "public void factoryResetWithEraseSD() {\n Intent intent = new Intent(\n com.android.internal.os.storage.ExternalStorageFormatter.FORMAT_AND_FACTORY_RESET);\n intent.setComponent(com.android.internal.os.storage.ExternalStorageFormatter.COMPONENT_NAME);\n mContext.startService(intent);\n }", "public void flush() throws IOException\n {\n getStream().flush();\n }", "private void clearData() {}", "public final void clear()\n {\n this.pointer = 0;\n }", "public void reset() {\n\t\tnewBuffer = null;\n\t\treadyBuffer = new StringBuilder();\n\t\tstatus = ConsumptionStatus.EMPTY;\n\t}", "@SuppressWarnings( \"unused\" )\n private void clear() {\n frameOpenDetected = false;\n frameLength = 0;\n buffer.limit( 0 ); // this marks our buffer as empty...\n }", "public void flush() throws IOException {\n // nothing to do with cached bytes\n }", "@Override\n public void clear() {\n size = 0;\n storage = null;\n }", "public void flush() {\r\n\t\ttry {\r\n\t\t\tdos.flush();\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}", "protected final void resetBuffer() {\n buffer.reset();\n }", "public synchronized void flush() throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }", "public synchronized void truncate()\n {\n clear(true);\n }", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }", "public void rescanSdcard(){\n }", "public void flush() throws IOException {\n dos.flush();\n }", "private void resetBytesFree()\r\n {\r\n this.bytesFree.set(0);\r\n }", "public void resetBuffer() {\n\n\t}", "public native void clear();", "public void clear(){\r\n\t\tthis.countRead \t\t\t= 0;\r\n\t\tthis.countReadData \t\t= 0;\r\n\t\tthis.countRemoved \t\t= 0;\r\n\t\tthis.countRemovedData \t= 0;\r\n\t\tthis.countWrite \t\t= 0;\r\n\t\tthis.countWriteData \t= 0;\r\n\t\tthis.dataList.clear();\r\n\t\tthis.dataMap.clear();\r\n\t}", "public synchronized void flush() throws IOException {\n\t\tcheckNotClosed();\n\t\ttrimToSize();\n\t\tjournalWriter.flush();\n\t}", "public synchronized void reset() {\n java.util.Arrays.fill(buffer, (byte) 0);\n writeHead = 0;\n cumulativeWritten = 0;\n synchronized (allReaders) {\n for (Reader reader : allReaders) {\n reader.reset();\n }\n }\n }", "public void flush()\r\n {\r\n if ( content != null )\r\n {\r\n content.flush();\r\n }\r\n }", "public void flush () throws IOException\n {\n if (m_nBufferedBitCount > 0)\n {\n if (m_nBufferedBitCount != CGlobal.BITS_PER_BYTE)\n if (LOGGER.isDebugEnabled ())\n LOGGER.debug (\"Flushing BitOutputStream with only \" + m_nBufferedBitCount + \" bits\");\n m_aOS.write ((byte) m_nBuffer);\n m_nBufferedBitCount = 0;\n m_nBuffer = 0;\n }\n }", "public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}", "public void clearBytes() {\n this.f12193a = 0;\n this.f12194b = 0;\n this.f12195c = 0;\n this.f12196d.clear();\n this.f12197e.mo42967b();\n this.f12198f.clear();\n mo42980c();\n }", "public void resetBuffer(){\n bufferSet = false;\n init();\n }", "private void clearBuffer(ByteBuffer buffer) {\n while (numberLeftInBuffer > 0) {\n readbit(buffer);\n }\n }", "private void invalidateBuffer() throws IOException, BadDescriptorException {\n if (!reading) flushWrite();\n int posOverrun = buffer.remaining(); // how far ahead we are when reading\n buffer.clear();\n if (reading) {\n buffer.flip();\n // if the read buffer is ahead, back up\n FileChannel fileChannel = (FileChannel)descriptor.getChannel();\n if (posOverrun != 0) fileChannel.position(fileChannel.position() - posOverrun);\n }\n }", "public void reset () {\n\t\topen();\n\t\ttry {\n\t\t\tcontainer.setLength(0);\n\t\t\treservedBitMap.setLength(0);\n\t\t\tupdatedBitMap.setLength(0);\n\t\t\tfreeList.setLength(0);\n\t\t\tsize = 0;\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}", "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "public void clear() {\n streams.clear();\n }", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() throws IOException;", "@Override\n\tprotected void clearBuffer() {\n\t\tsynchronized (listLock) {\n\t\t\tif (deleteList != null && deleteList.size() > 0) {\n\t\t\t\tdeleteList.clear();\n\t\t\t}\n\t\t}\n\n\t}", "public final void clear()\n {\n\t\tcmr_queue_.removeAllElements();\n buffer_size_ = 0;\n }", "private void clearStrBuf() {\n strBufLen = 0;\n }", "@Override\n public void clearData() {\n }", "public final void resetDataBuffer() {\n dataBuffer_.resetReaderIndex();\n lastValidBytePosition_ = 0;\n currentRowPosition_ = 0;\n nextRowPosition_ = 0;\n setAllRowsReceivedFromServer(false);\n }", "@Override\n public void flushBuffer() throws IOException {\n\n }", "public void clearStorage();", "public void clearData()\r\n {\r\n \r\n }", "void clearData();", "public void clear()\n \t{\n \t\tint byteLength = getLengthInBytes();\n \t\tfor (int ix=0; ix < byteLength; ix++)\n value[ix] = 0;\n \t}", "public abstract void resetBytesWritten();", "public boolean clearDeviceTypeAndNameBuffer();", "void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }", "public void clear(){\r\n currentSize = 0;\r\n }", "@Override\n\tpublic synchronized void reset() {\n\t\tiOBuffer.reset();\n\t}", "public void flush() {\n\t\t\n\t}", "@Override\n public void clear() {\n for (int i = 0; i < size; i++) {\n data[i] = null;\n }\n size = 0;\n }", "void clearDisposable();", "public void clear()\n\t{\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t{\n\t\t\tdata[i] = 0;\n\t\t}\n\t}", "public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }", "public void ClearBuffer() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tpixel_data[x + y * width] = 0x00000000;\n\t\t\t}\n\t\t}\n\t}", "public void clear(){\r\n cards.clear();\r\n deckSize = 0;\r\n }", "public void flush() {\n\t//Gets os name\n\tString os = System.getProperty(\"os.name\");\n\t//Checks if system is Windows\n\ttry {\n\t if (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\n\t\tString[] clear = {\"cmd\", \"/c\", \"cls\"};\n\t\tRuntime.getRuntime().exec(clear);\n\t } else {\n\t\tSystem.out.println(\"\\033[2J\");\n\t }\n\t} catch (Exception e) {\n\t System.out.println(\"Nope\");\n\t}\n }", "void flush() throws IOException;", "void flush() throws IOException;", "void flush() throws IOException;", "public void clear() {\n\n\t\tdata = null;\n\t\tnumRows = 0;\n\t\tnumCols = 0;\n\t\tsize = 0L;\n\n\t}", "public void clearData(){\n\r\n\t}", "protected int fillClearBuffer()\n throws IOException\n {\n ByteBuffer buffEnc = f_buffEncIn;\n ByteBuffer buffClear = f_buffClearIn;\n int ofPos = buffClear.position();\n int ofLim = buffClear.limit();\n int cb = 0;\n int cbStart = buffEnc.remaining();\n\n try\n {\n if (ofPos == ofLim)\n {\n buffClear.clear();\n ofPos = ofLim = 0;\n }\n else\n {\n buffClear.position(buffClear.limit())\n .limit(buffClear.capacity());\n }\n cb = decrypt(f_aBuffClear, 0, 1);\n return cbStart - buffEnc.remaining();\n }\n finally\n {\n buffClear.position(ofPos)\n .limit(ofLim + cb);\n }\n }", "@Override\n\tprotected void flushBuffer() throws IOException {\n\t\tif (connection != null && !connection.isClosed()) {\n\t\t\tHTableInterface myTable = connection.getTable(tableNameBytes);\n\t\t\tif (myTable != null && deleteList != null && deleteList.size() > 0) {\n\t\t\t\tsynchronized (listLock) {\n\t\t\t\t\tif (deleteList != null && deleteList.size() > 0) {\n\t\t\t\t\t\tmyTable.delete(deleteList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void clear() throws FileQueueClosedException;", "public void flush() throws IOException {\n\t\t// TODO implement me\n\t}", "public void clear() {\r\n\t\tsize = 0;\r\n\t}", "public void clearBuffer() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "private static void buffer() {\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t\tByteBuffer mBuffer=ByteBuffer.allocate(10240000);\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n// mBuffer.clear();\n System.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t}", "public final void ogg_sync_clear() {// return changed to void\r\n\t\t//if( oy != null ) {\r\n\t\t\tclear();\r\n\t\t//}\r\n\t\t//return 0;\r\n\t}", "public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}", "public void clear(){\n\t\tclear(0);\n\t}", "private void resetBuffer() {\n\t\tbufferWidth = getSize().width;\n\t\tbufferHeight = getSize().height;\n\n\t\t// clean up the previous image\n\t\tif (bufferGraphics != null) {\n\t\t\tbufferGraphics.dispose();\n\t\t\tbufferGraphics = null;\n\t\t}\n\t\tif (bufferImage != null) {\n\t\t\tbufferImage.flush();\n\t\t\tbufferImage = null;\n\t\t}\n\t\tSystem.gc();\n\n\t\tbufferImage = new BufferedImage(bufferWidth, bufferHeight,\n\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\t\tbufferGraphics = bufferImage.createGraphics();\n\t\tbufferGraphics.setRenderingHint (RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t}", "public final void erase()\n\t{\n\t\t for(int i=0;i<itsData.length;i++) itsData[i] = 0;\n\t\t clear();\n\t}", "public void flushPacket()\n throws IOException {\n\n // Nothing to do\n }" ]
[ "0.7472472", "0.71230155", "0.67160916", "0.66658384", "0.6514822", "0.6462711", "0.63859713", "0.63825977", "0.6345226", "0.62158597", "0.61743706", "0.61723876", "0.6164816", "0.61536753", "0.6140673", "0.60836357", "0.60763496", "0.6037335", "0.6025915", "0.6014434", "0.597099", "0.5963867", "0.5927206", "0.5926561", "0.59264207", "0.5911941", "0.5903351", "0.58777416", "0.5876345", "0.58416843", "0.58373886", "0.5833209", "0.58294904", "0.5829294", "0.5817182", "0.5806986", "0.57935876", "0.5775654", "0.5766876", "0.57630354", "0.575495", "0.57458556", "0.5743274", "0.57422036", "0.57406193", "0.5735149", "0.57250553", "0.57234555", "0.5709731", "0.5709686", "0.5708026", "0.5699029", "0.5654404", "0.5652988", "0.56504196", "0.5648333", "0.56228286", "0.56228286", "0.56228286", "0.5616578", "0.56149054", "0.5611485", "0.56105345", "0.5598999", "0.55860233", "0.5583271", "0.55738264", "0.5571168", "0.55640644", "0.5560666", "0.5539639", "0.55382437", "0.5532781", "0.55327266", "0.55322456", "0.55115795", "0.55107105", "0.55092597", "0.5498918", "0.5497268", "0.5494684", "0.5487375", "0.5478408", "0.5478408", "0.5478408", "0.5475979", "0.5464658", "0.5462996", "0.5462433", "0.5461677", "0.54539686", "0.5447018", "0.5443906", "0.5436334", "0.5435298", "0.5430628", "0.54297507", "0.5420959", "0.5414007", "0.54138803" ]
0.71366644
1
Get last modified file in Log folder logDir.
private static File getLastModifiedFile(File logDir) { File[] files = logDir.listFiles(); if (files == null) { Log.e(LOG_TAG, "getLastModifiedFile(): This file dir is invalid. logDir= " + logDir.getAbsolutePath()); return null; } //Create a new file if no file exists in this folder if (files.length == 0) { File file = new File(logDir, fileNameFormat.format(new Date()) + ".txt"); return file; } //Find the last modified file long lastModifiedTime = 0; File lastModifiedFile = null; for (File f : files) { if (lastModifiedTime <= f.lastModified()) { lastModifiedTime = f.lastModified(); lastModifiedFile = f; } } return lastModifiedFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getLastModifiedTime() throws FileSystemException;", "public File getLatestFilefromDir(String dirPath) {\r\n\t\t\r\n\t\tFile dir = new File(dirPath);\r\n\t\tFile[] files = dir.listFiles();\r\n\t\tif (files == null || files.length == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tFile lastModifiedFile = files[0];\r\n\t\tfor (int i = 1; i < files.length; i++) {\r\n\t\t\tif (lastModifiedFile.lastModified() < files[i].lastModified()) {\r\n\t\t\t\tlastModifiedFile = files[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lastModifiedFile;\r\n\t}", "public Date getLastModified() {\n\t\treturn new Date(file.lastModified());\n\t}", "long getLastWriteTime(String path) throws IOException;", "public File getLastRunFile () \n\t{\n\t\tLOG.info(\"Reading lastrun file located in directory '\" + config.getTriggerDirectory() + \"'\");\n\t\treturn new File(config.getTriggerDirectory() + \"/\" + config.getJobId() + \"_lastrun.txt\");\n\t}", "long getLastWriteTimeUtc(String path) throws IOException;", "Path getLogFilePath();", "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "long getLastModifiedDate(String path) throws NotFoundException;", "String getLastModified();", "public Date getLastlogintime() {\n return lastlogintime;\n }", "long getLastAccessTime(String path) throws IOException;", "public File getLog(File localFolder, String suffix){\r\n\t\tArrayList <FileInfo> allOutput = getOutputFiles();\r\n\t\tfor(FileInfo f : allOutput){\r\n\t\t\tif(f.toString().endsWith(suffix))\r\n\t\t\t\treturn new File(localFolder, f.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "long getLastAccessTimeUtc(String path) throws IOException;", "public long getLastModified() throws RepositoryException {\n return this.contentFile.lastModified();\n }", "public long getLastModified()\n\t{\n\t\treturn lastModified;\n\t}", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public long getLastModified() { return lastModified; }", "public long getLastModified()\n {\n return( lastModified );\n }", "Date getWorkfileLastChangedDate();", "public File getLogDir() {\n return logDir;\n }", "@Override\n\tpublic long lastModified() throws IOException {\n\t\t// We can not use the superclass method since it uses conversion to a File and\n\t\t// only a Path on the default file system can be converted to a File...\n\t\treturn Files.getLastModifiedTime(this.path).toMillis();\n\t}", "public Date getLastModified() {\n return _lastModified;\n }", "public long getLastModified() { return _entry!=null? _entry.getLastModified() : 0; }", "public Date getLastmodifieddate() {\n return lastmodifieddate;\n }", "public long getLastModified() {\n return lastModified;\n }", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public long lastModified() {\n return _file.lastModified();\n }", "public static long lastModified(String directory) throws IOException {\n return lastModified(new File(directory));\n }", "public Date getLastModifiedDate() {\n\t\treturn this.lastModifiedDate;\n\t\t\n\t}", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}", "public static String getLastDir() {\n return getProperty(\"lastdir\");\n }", "public abstract long getLastModified();", "public Timestamp getLastLogintime() {\n return lastLogintime;\n }", "public String getLastModified()\n {\n return lastModified;\n }", "long getLastUpdatedTime();", "@Override\n public Date getLastModificationDate(String guid) {\n FileDescription fileDescription = getFileDescription(guid);\n return fileDescription.getLastModificationDate();\n }", "@Override\n\tpublic File getDefaultLogFile() {\n\t\tif (SystemUtils.IS_OS_WINDOWS) {\n\t\t\tfinal File[] foundFiles = getLogDirInternal().listFiles(new FilenameFilter() {\n\t\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\t\treturn name.startsWith(\"catalina.\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tArrays.sort(foundFiles, NameFileComparator.NAME_COMPARATOR);\n\t\t\tif (foundFiles.length > 0) {\n\t\t\t\treturn foundFiles[foundFiles.length - 1];\n\t\t\t}\n\t\t}\n\t\treturn super.getDefaultLogFile();\n\t}", "public LocalDateTime getLastModified() {\n return lastModified;\n }", "public String getSecondFilename() {\n\t\tTreeMap<Double,File> tm = new TreeMap<Double,File>();\n\t\tFile file=new File(\"C:\\\\temp\");\n\t\tFile subFile[] = file.listFiles();\n\t\tint fileNum = subFile.length;\n\t\tfor (int i = 0; i < fileNum; i++) {\n\t\t Double tempDouble = new Double(subFile[i].lastModified());\n\t\t tm.put(tempDouble, subFile[i]);\n\t\t }\t \n\t\t System.out.println(\"第二个log的文件名称-->\"+tm.get(tm.lastKey()).getName());\n\t\t return tm.get(tm.lastKey()).getName();\n\t}", "public long getLastModified(){\n\t\tDate lastMod;\n\t\tIterator<ArrayList<String>> i = headerLines.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tArrayList<String> headerLines = i.next();\n\t\t\tString headerName = headerLines.get(0);\n\t\t\tif (headerName.matches(\"Last-Modified:\")){\n\t\t\t\tString headerData = headerLines.get(1);\n\t\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss z\");\n\t\t\t\ttry {\n\t\t\t\t\tlastMod = dateFormat.parse(headerData.trim());\n\t\t\t\t\treturn lastMod.getTime();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (long) -1;\n\t}", "public java.util.Date getLastModified () {\r\n\t\treturn lastModified;\r\n\t}", "public String getLastModified() {\n return lastModified;\n }", "public final Date getLastModifiedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"lastModifiedAt\" ) );\n\t}", "public static long getLastModified(String path) {\n if (HttpUtils.isRemoteURL(path)) {\n String resp = null;\n try {\n URL url = HttpUtils.createURL(path);\n if (path.startsWith(\"ftp:\")) {\n String host = url.getHost();\n FTPClient ftp = FTPUtils.connect(host, url.getUserInfo(), new UserPasswordInputImpl());\n ftp.pasv();\n FTPReply reply = ftp.executeCommand(\"MDTM \" + url.getPath());\n resp = reply.getReplyString();\n return ftpDateFormat.parse(resp).getTime();\n } else {\n return HttpUtils.getInstance().getLastModified(url);\n }\n\n } catch (MalformedURLException e) {\n log.error(\"Malformed url \" + path, e);\n } catch (IOException e) {\n log.error(\"Error getting modified date for \" + path, e);\n } catch (ParseException e) {\n log.error(\"Error parsing Last-Modified \" + resp, e);\n } catch (NumberFormatException e) {\n log.error(\"Error parsing Last-Modified \" + resp, e);\n }\n return 0;\n\n } else {\n File f = new File(path);\n return f.exists() ? f.lastModified() : 0;\n }\n }", "Object getRelativeToChangelogFile();", "public String getLastModifiedDate() {\r\n\t\treturn lastModifiedDate;\r\n\t}", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "public long getLastModified()\r\n/* 283: */ {\r\n/* 284:424 */ return getFirstDate(\"Last-Modified\");\r\n/* 285: */ }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public java.util.Date getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public String getLogFile() {\n return logFile;\n }", "public static File modified (File f)\n\t{\n\t\tif(f.isFile())\n\t\t{\n\t\t\treturn f;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFile mostRecent = f;\n\t\t\tfor (File file: f.listFiles())\n\t\t\t{\n\t\t\t\tFile g = modified(file);\n\t\t\t\tif(g.lastModified()>file.lastModified())\n\t\t\t\t{\n\t\t\t\t\tmostRecent = g;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn mostRecent;\n\t\t}\n\t}", "alluxio.proto.journal.File.InodeLastModificationTimeEntry getInodeLastModificationTime();", "long getLastLogIndex();", "long getLastAccessedTime();", "@Override\n public long getLastModifiedTime() {\n return this.processor.getLastModifiedTime();\n }", "public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }", "public String getTimeStampedLogPath() {\n\t\treturn m_timeStampedLogPath;\n\t}", "public abstract Date getLastModified() throws AccessException;", "public static long getLastModified(final String fileName) {\n\n return FileSystem.getInstance(fileName).getLastModified(fileName);\n }", "public java.util.Date getLastModifiedDate() {\n return this.lastModifiedDate;\n }", "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}", "public Date getLastModified ()\n throws ContentObjectException \n {\n try\n {\n final String METHOD_NAME = \"getLastModified\";\n this.logDebug(METHOD_NAME + \": 1/2: Started\");\n this.ensureDbHelper();\n ResultSet resultSet =\n this.dbHelper.queryDatum(this.type, this.id, DbColumn.LAST_MODIFIED);\n if ( ! resultSet.next() )\n throw new SQLException\n (this.getIdentification() + \": \" + METHOD_NAME + \": Empty ResultSet\");\n Date lastModified = resultSet.getTimestamp(DbColumn.LAST_MODIFIED);\n this.logDebug(METHOD_NAME + \": 2/2: Done. lastModified = \" + lastModified);\n return lastModified;\n }\n catch (Exception exception)\n {\n throw new ContentObjectException(exception);\n }\n }", "public Timestamp getLastModifiedOn() {\r\n\t\treturn lastModifiedOn;\r\n\t}", "public String getLogFile() {\n return agentConfig.getLogFile();\n }", "protected String getLogFile(@Nullable final String descriptor) {\n final StringBuffer directory = getLogDirectory();\n final StringBuffer file = new StringBuffer();\n final String md5String;\n if (descriptor == null) {\n file.append(\"null.log\");\n md5String = \"\";\n } else {\n file.append(sanitise(descriptor.toLowerCase()));\n md5String = descriptor;\n }\n return getPath(directory, file, md5String);\n }", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public java.util.Calendar getLastModifiedDate() {\r\n return lastModifiedDate;\r\n }", "public Date getLastModifiedDate() {\n return lastModifiedDate != null ? new Date(lastModifiedDate.getTime()) : null;\n }", "private long getLastCacheUpdateTimeMillis() {\n return this.fileManager.getFromPreferences(this.context, SETTINGS_KEY);\n }", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public long getLastUpdateDate() {\n return (Long)content.get(LAST_UPDATE_DATE);\n }", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "public String getTheLastModificationDate(final String id) throws Exception {\r\n\r\n Document resource = EscidocAbstractTest.getDocument(retrieve(id));\r\n return getTheLastModificationDate(resource);\r\n }", "public java.util.Calendar getLastModifiedDate() {\n return lastModifiedDate;\n }", "public java.util.Calendar getLastModified() {\n return localLastModified;\n }", "public static long calcLastModified(final SolrQueryRequest solrReq) {\n final SolrCore core = solrReq.getCore();\n final SolrIndexSearcher searcher = solrReq.getSearcher();\n\n final LastModFrom lastModFrom = core.getSolrConfig().getHttpCachingConfig().getLastModFrom();\n\n long lastMod;\n try {\n // assume default, change if needed (getOpenTime() should be fast)\n lastMod =\n LastModFrom.DIRLASTMOD == lastModFrom\n ? IndexDeletionPolicyWrapper.getCommitTimestamp(\n searcher.getIndexReader().getIndexCommit())\n : searcher.getOpenTimeStamp().getTime();\n } catch (IOException e) {\n // we're pretty freaking screwed if this happens\n throw new SolrException(ErrorCode.SERVER_ERROR, e);\n }\n // Get the time where the searcher has been opened\n // We get rid of the milliseconds because the HTTP header has only\n // second granularity\n return lastMod - (lastMod % 1000L);\n }", "public Timestamp getLastModifiedByTimestamp() {\n\t\treturn new Timestamp(this.lastModifiedByTimestamp.getTime());\n\t}", "public Date getLastModifyDate() {\n return lastModifyDate;\n }", "@Override\n\tpublic String getLogFileName() {\n\t\treturn model.getLogFileName();\n\t}", "public long getLastAccessTime();", "public String getTheLastModificationDate(final Document resource) throws Exception {\r\n\r\n // get last-modification-date\r\n NamedNodeMap atts = resource.getDocumentElement().getAttributes();\r\n Node lastModificationDateNode = atts.getNamedItem(\"last-modification-date\");\r\n return (lastModificationDateNode.getNodeValue());\r\n\r\n }", "long getLastAccessed( );", "public String getLogfileLocation() {\n return logfileLocation;\n }", "@Override\n\tpublic synchronized Date getLastUpdate() {\n\t\treturn getDiskLastModifiedDate();\n\t}", "private synchronized File readCsvFile() {\r\n\t\ttry {\r\n\t\t\tFile lastUpdatedFile = null, directory = new File(rb.getString(\"file.path\"));\r\n\t\t\tFile[] filesList = directory.listFiles(new FileFilter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic boolean accept(File pathname) {\r\n\t\t\t\t\treturn pathname.getName().endsWith(\".csv\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tfor (File f : filesList) {\r\n\t\t\t\tif (lastUpdatedFile == null) {\r\n\t\t\t\t\tlastUpdatedFile = f;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (new Date(lastUpdatedFile.lastModified()).before(new Date(f.lastModified())))\r\n\t\t\t\t\tlastUpdatedFile = f;\r\n\t\t\t}\r\n\t\t\tif (lastUpdatedFile == null)\r\n\t\t\t\tthrow new NullPointerException(\"No csv file in folder \" + rb.getString(\"file.path\"));\r\n\r\n\t\t\treturn lastUpdatedFile;\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (Util.DEBUG)\r\n\t\t\t\tUtil.writeLog(\"readCsvFile()\", e);\r\n\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public LogfileInfo getLogfileInfo() {\n return logfileInfo;\n }", "public InstantFilter getLastModifiedDate() {\n\t\treturn lastModifiedDate;\n\t}", "public static long lastModified(File directory) throws IOException {\n return FSDirectory.fileModified(directory, \"segments\");\n }", "public alluxio.proto.journal.File.InodeLastModificationTimeEntry getInodeLastModificationTime() {\n if (inodeLastModificationTimeBuilder_ == null) {\n return inodeLastModificationTime_;\n } else {\n return inodeLastModificationTimeBuilder_.getMessage();\n }\n }", "Date getLastTime();", "public String getLastmodifiedTimeView() {\r\n if (lastmodifiedTime != null) {\r\n lastmodifiedTimeView = DateUtils.dateToStr(lastmodifiedTime, DateUtils.YMD_DASH);\r\n }\r\n return lastmodifiedTimeView;\r\n }", "public static long getModifiedDate(String filename) {\n boolean fromJar = filename.startsWith(jarPrefix());\n return fromJar ? 0 : new File(filename).lastModified();\n }", "public long getPropertiesLastModified() {\r\n\r\n File f = null;\r\n try {\r\n f = new File(getUrl().toURI());\r\n } catch (IllegalArgumentException e) {\r\n e.printStackTrace();\r\n store();\r\n\r\n\r\n } catch (URISyntaxException e) {\r\n f = new File(getUrl().getPath());\r\n }\r\n\r\n return f.lastModified();\r\n }", "public File getLoggerFile() throws IOException {\n var logFilePath = this.serverProperties.getProperty(LOGFILE);\n File logFile = null;\n if (logFilePath == null || logFilePath.isEmpty()) {\n System.out.println(\"No valid LogFile defined, logging to tmp File...\");\n logFile = File.createTempFile(\"server\", \".log\");\n } else {\n logFile = new File(logFilePath);\n }\n\n this.createFileIfNotExisting(logFile);\n\n System.out.println(String.format(\"Logging to file : '%s'\", logFile.getAbsoluteFile()));\n return logFile;\n }", "long getLastPersistenceTime();", "public Long getModificationDate(String fileName) throws GRIDAClientException {\n\n List<String> filesList = new ArrayList<String>();\n filesList.add(fileName);\n\n return getModificationDate(filesList).get(0);\n }", "public java.util.Date getLastModifiedDateTime() {\n return this.lastModifiedDateTime;\n }" ]
[ "0.6527065", "0.6520046", "0.6496688", "0.6433014", "0.6417441", "0.6383742", "0.62763524", "0.6179676", "0.6149765", "0.61230874", "0.60982054", "0.6067748", "0.6065957", "0.6029974", "0.60186535", "0.59933627", "0.5961004", "0.5956799", "0.5945547", "0.59327114", "0.5926808", "0.5925179", "0.59204876", "0.59044707", "0.5896581", "0.5896027", "0.5890299", "0.58778584", "0.58689445", "0.58656543", "0.5860475", "0.585576", "0.58418995", "0.5829418", "0.582921", "0.58272755", "0.5824304", "0.5782091", "0.57790005", "0.5775188", "0.57718325", "0.5763913", "0.5742604", "0.57410836", "0.5731972", "0.5698164", "0.56969637", "0.56967264", "0.56843704", "0.5667313", "0.56671876", "0.56671876", "0.5661426", "0.56353337", "0.5625459", "0.5621266", "0.56153464", "0.5609106", "0.5605674", "0.56004965", "0.5585054", "0.55673033", "0.5546647", "0.554481", "0.55128646", "0.5505631", "0.55002016", "0.548409", "0.54744434", "0.5466548", "0.546063", "0.5459273", "0.5457552", "0.54552394", "0.5449012", "0.544287", "0.54413784", "0.54408276", "0.5437299", "0.54270536", "0.54247206", "0.5423494", "0.5419465", "0.5418117", "0.5410508", "0.54046166", "0.54017085", "0.53889704", "0.5378242", "0.5376849", "0.537302", "0.53704166", "0.5369304", "0.53673667", "0.53643817", "0.53617454", "0.5356102", "0.53541434", "0.5351693", "0.5340512" ]
0.8236461
0
Write to a file fileName with content writeStr.
public static void writeFileSdCardFile(String fileName, String writeStr) { FileOutputStream fout = null; try { fout = new FileOutputStream(fileName); byte[] bytes = writeStr.getBytes(); fout.write(bytes); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { if (fout != null) { try { fout.close(); } catch (IOException e) { e.printStackTrace(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void writeStringToFile(String contents,\n \t\t\tFileOutputStream filePath) throws IOException {\n \t\tif (contents != null) {\n \t\t\tBufferedOutputStream bw = new BufferedOutputStream(filePath);\n \t\t\tbw.write(contents.getBytes(\"UTF-8\"));\n \t\t\tbw.flush();\n \t\t\tbw.close();\n \t\t}\n \t}", "private static void writeToFile(String writeString, String outputFileName){\n String[] substring = writeString.split(\"\\\\n\");\n writeToFile(substring, outputFileName);\n }", "public static void write(String content, String fileName) throws IOException {\n FileWriter fileWriter = new FileWriter(FileCreator.create(fileName));\n fileWriter.write(content);\n fileWriter.flush();\n fileWriter.close();\n }", "private void writeOutputFile(String str, String file) throws Exception {\n FileOutputStream fout = new FileOutputStream(file);\n\n fout.write(str.getBytes());\n fout.close();\n }", "protected void openWriteFile(Path filePath, String s) throws IOException{\n\t\tBufferedWriter writer = Files.newBufferedWriter(filePath, ENCODING);\n\t\twriter.write(s, 0, s.length());\n\t\twriter.close();\n\t}", "private static void writeToFile(String string){\n try {\n buffer.write(string);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void write(String fileName, String content) {\r\n BufferedWriter bufferedWriter = null;\r\n try {\r\n\r\n //Will use FileWriter, BufferedWriter, and PrintWriter in this method.\r\n FileWriter fileWriter = null;\r\n try {\r\n fileWriter = new FileWriter(fileName, true);\r\n } catch (Exception e) {\r\n System.out.println(\"Error creating fileWriter in FileUtility.write(...)\");\r\n }\r\n\r\n bufferedWriter = new BufferedWriter(fileWriter);\r\n PrintWriter pw = new PrintWriter(bufferedWriter, true);\r\n pw.print(content);\r\n\r\n// bufferedWriter.write(content);\r\n// bufferedWriter.flush();\r\n } finally {\r\n try {\r\n bufferedWriter.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"could not close buffered writer\");\r\n }\r\n }\r\n }", "public void writeFileContents(String filename, String contents) {\n }", "public void writeToTextFile(String fileName, String content) throws IOException {\n \tFiles.write(Paths.get(fileName), content.getBytes(), StandardOpenOption.CREATE);\n \t}", "@Override\n public void write(String str) {\n BufferedWriter writer;\n try {\n String path = FileManager.getInstance().getPath();\n writer = new BufferedWriter(new FileWriter(path, true));\n writer.write(str);\n writer.newLine();\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeFile(String content){\n\t\tFile file = new File(filePath);\n\t\t\n\t\tBufferedWriter bw = null;\n\t\t\n\t\ttry{\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\t\n\t\t\tbw = new BufferedWriter(new FileWriter(file));\n\t\t\tbw.write(content);\n\t\t}\n\t\tcatch (Exception oops){\n\t\t\tSystem.err.print(\"There was an error writing the file \"+oops.getStackTrace());\n\t\t}\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tbw.close();\n\t\t\t}\t\n\t\t\tcatch(IOException oops){\n\t\t\t\tSystem.err.print(\"There was an error closing the write buffer \"+oops.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public static void writeToFile(File file, String string) throws IOException {\n FileWriter fileWriter = new FileWriter(file);\n fileWriter.write(string);\n fileWriter.close();\n }", "private static void writeStringToFile(String string) {\n\t\ttry (BufferedWriter writer = new BufferedWriter(new FileWriter(OUTPUT_FILE_TEMP))) {\n\t\t\twriter.write(string);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeStringToFile(String string, String targetFilename, boolean appendFlag)\r\n\tthrows FileNotFoundException, IOException {\r\n\t\tStringBufferInputStream theTargetInputStream = new StringBufferInputStream(\r\n\t\t\t\tstring);\r\n\t\tFileOutputStream theFileOutputStream = new FileOutputStream(\r\n\t\t\t\ttargetFilename, appendFlag);\r\n\t\tcopyStreamContent(theTargetInputStream, theFileOutputStream);\r\n\t\ttheFileOutputStream.close();\r\n\t\ttheTargetInputStream.close();\r\n\t}", "public void write(String str) throws IOException {\n\t\toffset = dataBase.getFilePointer();\n\t\tdataBase.writeBytes(str + \"\\n\");\n\t}", "private void writeToFile(String fileName,String contents) throws IOException{\r\n\t\tFileWriter fw = new FileWriter(fileName,true);\r\n\t\tPrintWriter pw = new PrintWriter(fw);\r\n\t\tpw.write(contents+\"\\r\\n\");\r\n\t\tpw.close();\r\n\t}", "public static void writeToFile(String text, String fileName) {\r\n\t\t// Get the file reference\r\n\t\tif (null != text && null != fileName) {\r\n\t\t\tSystem.out.println(\"Writing to file....\"+FILEPATH+ \"\\\\\" + fileName + \".txt\");\r\n\t\t\tPath path = Paths.get(FILEPATH+\"\\\\\" + fileName + \".txt\");\r\n\t\t\ttext = text.replaceAll(NEWLINE+\",\", \"\\r\\n\");\r\n\t\t\ttry (BufferedWriter writer = Files.newBufferedWriter(path)) {\r\n\t\t\t\twriter.write(text);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Unable to generate the output file!\" + e.getMessage());\r\n\t\t\t}catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Unable to generate the output file!\" + e.getMessage());\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"File generated path: \"+FILEPATH +\"\\\\\"+ fileName + \".txt\");\r\n\t\t}\r\n\t}", "public void writeToTextFile(String filename){\n try{\n FileWriter myWriter = new FileWriter(filename); \n myWriter.write(toString());\n myWriter.close();\n } \n catch(IOException e) { \n System.out.println(\"An error occurred.\"); \n e.printStackTrace();\n } \n }", "public void writeTextFile(String s) {\n\t\ttry {\n\t\t\twriter = new PrintWriter(new BufferedWriter(new FileWriter(filename,true)));\n\t\t\twriter.println(s);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not write to\\t\\\"\" + filename + \"\\\"\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\twriter.close();\n\t\t}\n\t}", "public void writeFile(String text, String writePath)\r\n\t{\r\n\t\t//Use a filewriter but change it to a buffered writer. Open writing on the file provided by writePath\r\n\t\ttry (BufferedWriter writer = new BufferedWriter(new FileWriter(writePath)))\r\n\t\t{\r\n\t\t\t// Write given text to file\r\n\t\t\twriter.write(text);\t\r\n\t\t} \r\n\t\tcatch (IOException except)\r\n\t\t{\r\n\t\t\texcept.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void write(String str)\n\t\tthrows IOException\n\t{\n\t\tFileLock flock = null;\n\t\ttry\n\t\t{\n\t\t\tflock = channel.tryLock();\n\t\t\tif (file.length() >= sizeLimit)\n\t\t\t{\n\t\t\t\tFile oldFile = new File(file.getPath() + \".old\");\n\t\t\t\tif (oldFile.exists())\n\t\t\t\t\toldFile.delete();\n\t\t\t\tfile.renameTo(oldFile);\n\t\t\t\tFileOutputStream newStream = new FileOutputStream(file, false);\n\t\t\t\tFileChannel newChannel = newStream.getChannel();\n\t\t\t\tFileLock newLock = newChannel.tryLock();\n\t\t\t\ttry { flock.release(); } catch(Exception ex0) {}\n\t\t\t\ttry { stream.close(); } catch(Exception ex1) {}\n\t\t\t\ttry { channel.close(); } catch(Exception ex2) {}\n\t\t\t\tstream = newStream;\n\t\t\t\tchannel = newChannel;\n\t\t\t\tflock = newLock;\n\t\t\t}\n\t\t\tstream.write(str.getBytes());\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tLogger.instance().warning(\"IO Error writing to '\" + file.getPath()\n\t\t\t\t+ \"': \" + ex);\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif (flock != null)\n\t\t\t\ttry { flock.release(); } catch(Exception ex) {}\n\t\t}\n\t}", "public static void writeOut(String iFilename, String iContents)\n {\n File wFile = new File(iFilename);\n BufferedWriter bw = null;\n \n try\n {\n bw = new BufferedWriter(new FileWriter(wFile));\n bw.write(iContents);\n bw.close();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }", "public void writeContentToFile(String writeInformation)\n {\n try\n {\n PrintWriter printWriter = new PrintWriter(filename);\n try\n {\n printWriter.println(writeInformation);\n } finally\n {\n printWriter.close();\n }\n } catch (Exception e)\n {\n System.out.println(\"cannot write to file called \" + filename);\n }\n }", "public static void overWriteFile(String output, String filePath,\n FileSystem fs) {\n File outFile = openFile(filePath, fs);\n if (outFile != null) {\n outFile.clearContent();\n outFile.appendContent(output);\n }\n }", "public void write(String filename, String text) {\n\n try (FileWriter writer = new FileWriter(filename)) {\n writer.write(text);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void writeFile(String fileName, String data) {\r\n\t\tFileOutputStream fop = null;\r\n\t\tFile file;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tfile = new File(fileName);\r\n\t\t\tfop = new FileOutputStream(file);\r\n\r\n\t\t\t// if file doesnt exists, then create it\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\r\n\t\t\t// get the content in bytes\r\n\t\t\tbyte[] contentInBytes = data.getBytes();\r\n\r\n\t\t\tfop.write(contentInBytes);\r\n\t\t\tfop.flush();\r\n\t\t\tfop.close();\r\n\r\n\t\t\tSystem.out.println(\"Done\");\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (fop != null) {\r\n\t\t\t\t\tfop.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void writeToFile(String filename, String content){\n\t\tFileWriter file;\n\t\ttry {\n\t\t\tfile = new FileWriter(filename,true);\n\t\t\tBufferedWriter writer = new BufferedWriter(file);\n\n\t\t\twriter.append(content);\n\t\t\twriter.newLine();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void writeToFile(String messageToWrite) throws IOException {\n writer.write(messageToWrite);\n }", "public void write(String s) {\n String s_t_txt = s + \".txt\";\n try {\n PrintWriter writer = new PrintWriter(s_t_txt, \"UTF-8\");\n writer.print(s + \"\\n\");\n writer.print(toString());\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void writeFile(String fileName, String fileContent) {\n\t\ttry {\n\t\t\tFileWriter fstream;\n\t\t\tfstream = new FileWriter(fileName);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\t\tout.write(fileContent);\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error Writing File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeFile(String string) {\n\t\ttry {\n\t\t\tFormatter fileWriter = new Formatter(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tfileWriter.format(string);\n\t\t\t\n\t\t\tfileWriter.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.print(\"ERROR: Line 132: Unable to write file\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "public static void fileWriter(String fileName, Object printLine) throws NumberFormatException, IOException {\n // Create File:\n\t\t\t\tFile f = new File(Common.testOutputFileDir + fileName);\t\t\t\t \n\t\t\t // Write or add a String line into File:\t\n\t\t\t FileWriter fw = new FileWriter(f,true);\n\t\t\t PrintWriter pw = new PrintWriter(fw);\n\t\t\t pw.println(printLine);\n\t\t\t pw.close();\n\t\t\t}", "public static void writeTextToFile(String fileName,String text){\r\n File file=new File(fileName);\r\n log.fine(\"Writing to file: \"+fileName);\r\n try { if (!file.exists()){\r\n file.createNewFile();\r\n }\r\n PrintWriter out=new PrintWriter(file.getAbsoluteFile());\r\n try {\r\n out.print(text);\r\n }finally {\r\n out.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n }", "public static void writeFile(final String contents, final String name) {\n writeFile(contents, name, false);\n }", "private void writeStringToFileSafe(String string, String targetFilename, boolean appendFlag) {\r\n\t\ttry {\r\n\t\t\twriteStringToFile(string, targetFilename, appendFlag);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\thandleFileNotFoundException(e, targetFilename);\r\n\t\t} catch (IOException e) {\r\n\t\t\thandleIOException(e, targetFilename);\r\n\t\t}\r\n\t}", "public void reWriteFile(String filename,String data) {\n\n if (filename.trim().length() > 0) {\n try {\n PrintWriter output = new PrintWriter(filename);\n\n output.write(data);\n\n output.close();\n } catch (IOException e) {\n System.out.println(\"I/O Error\");\n }\n } else {\n System.out.println(\"Enter a filename:\");\n }\n }", "public static void writeToFile(String fileName, String lineToWrite) throws IOException\n\t{\n\t\tFileWriter writer = new FileWriter(fileName, true);\n\t\twriter.write(lineToWrite);\n\t\twriter.close();\n\t}", "public static void writeStreamAppendByFileWriter(String fileName, String content) throws IOException {\n try {\n FileWriter writer = new FileWriter(fileName, true);\n writer.write(content);\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void writeTextFile(File file, String content) throws IOException {\n BufferedWriter bw = new BufferedWriter(new FileWriter(file));\n bw.write(content, 0, content.length());\n bw.flush();\n bw.close();\n }", "void write(String text);", "public void writeToFile(String msg, String filePath, boolean append){\n try{\n FileWriter myWriter = new FileWriter(filePath, append);\n myWriter.write(msg);\n myWriter.close();\n System.out.println(\"Successfully wrote to the file.\");\n } catch(IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "public void write(String filePath) {\n\t\tcmd = new WriteCommand(editor, filePath);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public static void fileWriter(String path, String fileName, Object printLine) throws NumberFormatException, IOException {\n // Create File:\n\t\t\t\tFile f = new File(path + File.separator + fileName);\t\t\t\t \n\t\t\t // Write or add a String line into File:\t\n\t\t\t FileWriter fw = new FileWriter(f,true);\n\t\t\t PrintWriter pw = new PrintWriter(fw);\n\t\t\t pw.println(printLine);\n\t\t\t pw.close();\n\t\t\t}", "public static void writeStringToFile(String content, File file) throws IOException {\n if(StringUtil.isNullOrBlank(content) || file == null) {\n return;\n }\n if(!file.exists() && !file.createNewFile() || file.isDirectory() || !file.canWrite()) {\n return;\n }\n\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(file);\n fos.write(content.getBytes());\n } finally {\n if(fos != null) {\n fos.close();\n }\n }\n }", "public static void writeFile(final File file, final String content) throws IOException\n\t{\n\t\tfinal Writer output = new BufferedWriter(new OutputStreamWriter(\n\t\t\t\tnew FileOutputStream(file), FILE_CHARSET_NAME));\n\t\ttry\n\t\t{\n\t\t\toutput.write(content);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\toutput.close();\n\t\t}\n\t}", "public static void WriteStreamAppendByFileOutputStream(String fileName, String content) throws IOException {\n BufferedWriter out = null;\n try {\n out = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(fileName, true)));\n out.write(content);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "protected abstract void writeFile();", "public void writeFile(String filename,String data) {\n\n BufferedWriter out = null;\n if (filename.trim().length() > 0) {\n try {\n out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filename,true)));\n out.write(data);\n out.close();\n } catch (IOException e) {\n System.out.println(\"I/O Error\");\n }\n } else {\n System.out.println(\"Enter a filename:\");\n }\n }", "public static void writeFile(String msg){\n\t\ttry { \n File f1 = new File(\"/Users/snehithraj/eclipse-workspace/ThreePhaseCommit/src/ServerDB.txt\");\n if(!f1.exists()) {\n f1.createNewFile();\n } \n FileWriter fileWriter = new FileWriter(f1.getName(),true);\n BufferedWriter bw = new BufferedWriter(fileWriter);\n bw.write(msg);\n bw.close();\n } catch(IOException e){\n e.printStackTrace();\n }\n }", "public static void writeFile(String targetFilePath, String content)\r\n throws IOException {\r\n writeFile(new File(targetFilePath), content);\r\n }", "private void saveStringToFile(String s) {\n try {\n FileWriter saveData = new FileWriter(SAVE_FILE);\n BufferedWriter bW = new BufferedWriter(saveData);\n bW.write(s);\n bW.flush();\n bW.close();\n } catch (IOException noFile) {\n System.out.println(\"SaveFile not found.\");\n }\n }", "public static void writeToFile(String filename, String line) {\n try {\n FileWriter fw = new FileWriter(PATH + filename, true); //the true will append the new data\n fw.write(line + \"\\n\");//appends the string to the file\n fw.close();\n } catch (IOException ioe) {\n System.err.println(\"IOException: \" + ioe.getMessage());\n }\n }", "public static void writeFile(File targetFile, String content)\r\n throws IOException {\r\n final FileWriter writer = new FileWriter(targetFile);\r\n writer.write(content);\r\n writer.close();\r\n }", "public static void saveAsTxtFile(String filename, String saveString) throws IOException{\n\t\tBufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filename)));\n\t\tout.write(saveString);\n\t\tout.close();\n\t}", "private void writeStringToFile(String filenamePath, String fileContent) throws ServletException {\n\n final File destinationFile = new File(filenamePath);\n try {\n Files.write(fileContent, destinationFile, Charsets.UTF_8);\n } catch (IOException e) {\n throw new ServletException(\n \"cant write to file '\" + filenamePath + \"' these contents: '\" +\n fileContent + \"'\", e);\n }\n }", "public static void writeFile(final File f, final String content) throws IOException {\n final FileOutputStream o = new FileOutputStream(f);\n o.write(content.getBytes());\n o.close();\n }", "public static void writeString(String path, String content) {\n //Open file\n Path jPath = Paths.get(path);\n\n //Create file if necessary\n if (!Files.exists(jPath, LinkOption.NOFOLLOW_LINKS)) {\n try {\n Files.createFile(jPath);\n } catch (IOException ex) {\n System.out.print(ex);\n System.exit(1);\n }\n }\n\n //Error if not writable\n if (!Files.isWritable(jPath)) {\n System.out.println(\"File \" + jPath + \" could not be written!\");\n System.exit(1);\n }\n //Write lines\n try {\n Files.write(jPath, content.getBytes(Charset.forName(\"UTF-8\")));\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "public void writeString(String s) throws Exception {\r\n\tout.write(s.getBytes());\r\n}", "private void writeFileLine(String s, File file)throws IOException{\n\t\tFileWriter filewriter = new FileWriter(file);\n\t\tPrintWriter printWriter = new PrintWriter(filewriter);\n\t\tprintWriter.print(s);\n\t\tprintWriter.close();\n\t}", "public static void writeFile(String line, String filename) throws IOException {\n\t\tFile file = new File(filename);\r\n\r\n\t\tif (!file.exists()) {\r\n\t\t\tfile.createNewFile();\r\n\t\t}\r\n\r\n\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\tbw.write(line);\r\n\t\tbw.close();\r\n\t}", "public static void writeChachedFile(Context ctx, String filename, String text){\n \t\t// write data to file\n \t\tFileOutputStream fos;\n \t\ttry {\n \t\t\tfilename = filePrefix + filename;\n \t\t\tfos = ctx.openFileOutput(filename, Context.MODE_PRIVATE);\n \t\t\tfos.write(text.getBytes());\t\t\t\n \t\t} catch (FileNotFoundException e) {\n \t\t} catch (IOException e) {}\n \t}", "public static void WriteStreamAppendByRandomAccessFile(String fileName, String content) throws IOException {\n try {\n RandomAccessFile randomFile = new RandomAccessFile(fileName, \"rw\");\n long fileLength = randomFile.length();\n // Write point to the end of file.\n randomFile.seek(fileLength);\n randomFile.writeBytes(content);\n randomFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void writeText(FsPath path, String text);", "@Override\n\tpublic void writeBlob(String contents) throws PersistBlobException {\n\t\tlog.debug(\"writeString: [{}]\",contents);\n\t\ttry {\n\t\t\tFiles.write(Paths.get(full_file_name), contents.getBytes());\n\t\t\treturn;\n\t\t} catch (RuntimeException | IOException e) {\n\t\t\tthrow new PersistBlobException(\"Wrapped Exception in PersistString\",e);\n\t\t}\n\t}", "private static void writeToFile(String[] writeStringArr, String outputFileName){\n BufferedWriter outputBuffer = null;\n try{\n File outputFile = new File(outputFileName);\n if(!outputFile.exists()){\n outputFile.createNewFile();\n }\n\n outputBuffer = new BufferedWriter(new FileWriter(outputFile)); //create buffered reader\n// outputBuffer.write(writeString);\n\n for(int i=0; i< writeStringArr.length; i++){\n outputBuffer.write(writeStringArr[i]);\n outputBuffer.newLine();\n }\n } catch (IOException e){System.err.println(\"Error Writing File\");}\n finally {\n try {\n outputBuffer.close();\n }catch (IOException e){System.err.println(\"Error Closing File\");}\n }\n }", "public void appendStringToFileSafe(String string, String targetFilename) {\r\n\t\twriteStringToFileSafe(string, targetFilename, true);\r\n\t}", "public OutputStream writeFile( String filename, FileType type );", "@Override\n public void saveFile(String fileString, String filename) throws IOException {\n }", "public static void writeToFile(String path, String text) throws IOException {\n Charset charSet = Charset.forName(\"US-ASCII\");\n BufferedWriter writer = new BufferedWriter(new FileWriter(path));\n writer.write(text,0,text.length());\n writer.close();\n }", "public static void writeToParamsFile(String FILENAME, String contentToWrite) {\n\n BufferedWriter bw = null;\n BufferedReader br = null;\n FileWriter fw = null;\n FileReader fr = null;\n\n try {\n\n String content = contentToWrite;\n bw = new BufferedWriter(new FileWriter(FILENAME, true));\n bw.write(System.getProperty(\"line.separator\"));\n bw.write(content);\n } catch (IOException e) {\n\n e.printStackTrace();\n\n } finally {\n\n try {\n\n if (bw != null) {\n bw.close();\n }\n\n if (fw != null) {\n fw.close();\n }\n\n } catch (IOException ex) {\n\n ex.printStackTrace();\n\n }\n\n }\n\n }", "public void appendStringToFile(String string, String targetFilename)\r\n\tthrows FileNotFoundException, IOException {\r\n\t\twriteStringToFile(string, targetFilename, true);\r\n\t}", "public void writeFile(String data){\n\t\t\n\t\tcurrentLine = data;\n\t\t\n\t\t\ttry{ \n\t\t\t\tFile file = new File(\"/Users/bpfruin/Documents/CSPP51036/hw3-bpfruin/src/phfmm/output.txt\");\n \n\t\t\t\t//if file doesnt exists, then create it\n\t\t\t\tif(!file.exists()){\n\t\t\t\t\tfile.createNewFile();\n\t\t\t\t}\n \n\t\t\t\t//true = append file\n\t\t\t\tFileWriter fileWriter = new FileWriter(file,true);\n \t \tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\n \t \tbufferWriter.write(data);\n \t \tbufferWriter.close();\n \n \n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t}", "void writeString(final String result) throws WriterException;", "public static void toFile(String fileName, String content) {\n\t\ttoFile( fileName, content, false );\n\t}", "private void writeFileContents(String contents, String destination) throws IOException {\n FileUtils.write(new File(destination), contents, Charset.defaultCharset());\n System.out.println(\"Wrote file: \" + destination);\n }", "public static void appendToFile(String fileName, String fileContent) throws Exception {\n\t\tFileWriter fstream = new FileWriter(fileName, true);\n\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\tout.write(fileContent);\n\t\tout.close();\n\t}", "public static void writeFile(String outFile, String text) {\n try{\n FileWriter fileWriter = new FileWriter(outFile,false);\n PrintWriter pw = new PrintWriter(fileWriter,true);\n \n if (text==null) {\n pw.println();\n }\n else\n {\n pw.println(text);\n }\n \n pw.close();\n fileWriter.close();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }", "void writeString(String value);", "private void writeToFile(final String data, final File outFile) {\n try {\n FileOutputStream foutStream = new FileOutputStream(outFile);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(foutStream);\n outputStreamWriter.write(data);\n outputStreamWriter.close();\n foutStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "public static void writeStringToFile(File file, String data)\n throws IOException {\n FileUtils.writeStringToFile(file, data, Charset.forName(\"utf-8\"));\n }", "public void write(String s) throws IOException {\n\t\tif (s != null && s.length() > 0) {\n\t\t\tfos.write(s.getBytes());\n\t\t}\n\t}", "public void write(String str) {\n Log.d(TAG, \"-> \"+str);\n mmOutStream.println(str);\n mmOutStream.flush();\n }", "public void write(String text) throws IOException {\r\n writer.write(text);\r\n writer.flush();\r\n }", "public static void writeToFile(String data, String filePath, boolean isAppend) {\r\n\t\tFile file = new File(filePath);\r\n\t\tif (!file.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tBufferedWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file, isAppend)));\r\n\t\t\tout.write(data + \"\\n\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(out!=null){\r\n\t\t\t\t\tout.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void writeFile(String fileToWriteTo, String info) throws IOException\n\t{\n\t\tFileWriter write = new FileWriter(fileToWriteTo, true);\n\t\twrite.write(info);\n\t\twrite.close();\n\t}", "private void writeContent(String content) throws IOException {\n FileChannel ch = lockFile.getChannel();\n\n byte[] bytes = content.getBytes();\n\n ByteBuffer buf = ByteBuffer.allocate(bytes.length);\n buf.put(bytes);\n\n buf.flip();\n\n ch.write(buf, 1);\n\n ch.force(false);\n }", "static void Output(String filename, String message){\n FileOutputStream out;\n DataOutputStream data;\n try {\n out = new FileOutputStream(filename);\n data = new DataOutputStream(out);\n data.writeBytes(message);\n data.close();\n }\n catch (FileNotFoundException ex){\n System.out.println(\"File to open file for writing\");\n }\n catch (IOException ex) {\n System.out.println(\"RuntimeException on writing/closing file\");\n }\n }", "public static void writeBytesToFile(String pathString, String fileName, byte[] bytes) throws IOException {\r\n\t\tPath path = Paths.get(pathString);\r\n\t\twriteBytesToFile(path, fileName, bytes);\t\t\r\n\t}", "private static String writeToFile(String data, String fileName, Context context) {\n try {\n File documentsPath = new File(context.getExternalFilesDir(null).toString());\n if (!documentsPath.exists()) {\n documentsPath.mkdirs();\n }\n File myExternalFile = new File(documentsPath, fileName);\n FileOutputStream fileOutputStream = new FileOutputStream(myExternalFile);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n outputStreamWriter.write(data);\n outputStreamWriter.close();\n fileOutputStream.close();\n return myExternalFile.getAbsolutePath();\n } catch (IOException e) {\n writeLog(LOG_LEVEL.ERROR, \"File write failed: \" + e.toString());\n }\n return \"\";\n }", "public void writeStrToNewFile(String groupResult, String writeLocation) throws InvalidFileException \r\n\t{\r\n\t\ttry {\r\n\t\t BufferedWriter writer = new BufferedWriter(new FileWriter(getFileName(writeLocation)));\r\n\t\t writer.write(groupResult);\r\n\t\t writer.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new InvalidFileException(\"Invalid file. File not found at: \" + writeLocation, e);\r\n\t\t}\r\n\t}", "public void write_line(String string)\n {\n String[] current = read();\n\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n PrintWriter writer = new PrintWriter(dir);\n\n for (int i = 0; i < current.length; i++)\n {\n String line = current[i];\n if (line != null)\n {\n writer.println(line);\n }\n }\n writer.println(string);\n writer.close();\n }catch (Exception ex)\n {\n debug = \"test write failure\";\n }\n }", "void Writer(String data, String FileName, Context context) {\n FileOutputStream outputStream = null;\n try {\n outputStream = context.openFileOutput(FileName,Context.MODE_PRIVATE);\n outputStream.write(data.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n }finally{\n if (outputStream != null){\n try {\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public static void writeToFile(String str) throws IOException {\n\t\tkeyboard2 = new Scanner(System.in);\n\t\tScanner file = new Scanner(myFile);\n\t\tPrintWriter write = new PrintWriter(myFile);\n\t\tString current = \"\";\n\t\twhile(file.hasNextLine()) {\n\t\t\tcurrent += file.nextLine()+\"\\n\";\n\t\t\tif(str.equalsIgnoreCase(\"CLOSE\")) {\n\t\t\t\twrite.write(current + \"\\n\");\n\t\t\t\tfile.close();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "static void writeFile(String path , String data) throws IOException{\n\t\tFileOutputStream fo = new FileOutputStream(path,true);\n\t\tfo.write(data.getBytes());\n\t\tfo.close();\n\t\tSystem.out.println(\"Done...\");\n\t}", "public static void writeTextFile(String path, String content) throws IOException{\r\n FileWriter fw = new FileWriter(path, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n bw.write(content);\r\n bw.close();\r\n fw.close();\r\n }", "public static void WriteToFile (String filename, String insert) {\r\n\t\t try {\r\n\t\t FileWriter myWriter = new FileWriter(filename + \".txt\");\r\n\t\t myWriter.write(insert);\r\n\t\t myWriter.close();\r\n\t\t System.out.println(\"Successfully wrote to the file.\");\r\n\t\t } catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }", "public static void writeFile(File fileName, String texto) {\n FileWriter fileToWrite = null;\r\n BufferedWriter bufferWillWrite = null;\r\n\r\n try {\r\n //creacion de estructura de escritura\r\n fileToWrite = new FileWriter(fileName); //true: permite agregar info sin borrar el archivo\r\n\r\n bufferWillWrite = new BufferedWriter(fileToWrite);\r\n try {\r\n bufferWillWrite.write(texto + \"\\n\");\r\n\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n } finally {\r\n try {\r\n if (bufferWillWrite != null) {\r\n bufferWillWrite.close();\r\n }\r\n if (fileToWrite != null) {\r\n fileToWrite.close();\r\n }\r\n } catch (Exception er) {\r\n System.out.println(er.getMessage());\r\n }\r\n }\r\n } catch (IOException err) {\r\n System.out.println(err.getMessage());\r\n }\r\n }", "public void write_file(String filename)\n {\n out.println(\"WRITE\");\n out.println(filename);\n int timestamp = 0;\n synchronized(cnode.r_list)\n {\n timestamp = cnode.r_list.get(filename).cword.our_sn;\n }\n // content = client <ID>, <ts>\n out.println(\"Client \"+my_c_id+\", \"+timestamp);\n // check if write operation finished on server and then exit method\n try\n {\n String em = null;\n em = in.readLine();\n Matcher m_eom = eom.matcher(em);\n if (m_eom.find())\n {\n System.out.println(\"WRITE operation finished on server : \"+remote_c_id);\n }\n else\n {\n System.out.println(\"WRITE operation ERROR on server : \"+remote_c_id);\n }\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }", "static void write (String filename, String graph_str) throws IOException {\n \ttry (FileWriter writer = new FileWriter(filename);\n BufferedWriter bw = new BufferedWriter(writer)) {\n bw.write(graph_str);\n } catch (IOException e) {\n System.err.format(\"IOException: %s%n\", e);\n }\n\t}", "void write (String s, int offset);" ]
[ "0.7004114", "0.69366723", "0.6915539", "0.6895717", "0.6859281", "0.68415284", "0.68277985", "0.6748915", "0.66366786", "0.66147137", "0.6604371", "0.65606964", "0.6552799", "0.6546801", "0.65297914", "0.6478972", "0.6456303", "0.6422606", "0.6389097", "0.6350586", "0.6330812", "0.6327952", "0.63171166", "0.6304865", "0.628179", "0.6276047", "0.6272503", "0.62483644", "0.62309307", "0.62148446", "0.62139094", "0.6193876", "0.617735", "0.615638", "0.613953", "0.6137857", "0.6123916", "0.61120653", "0.6084739", "0.6074816", "0.6057804", "0.6050688", "0.60441494", "0.6021331", "0.6013101", "0.60077804", "0.600323", "0.5984407", "0.5977486", "0.5967352", "0.5953863", "0.59397703", "0.59375095", "0.5930821", "0.5929986", "0.5915386", "0.5914718", "0.5899324", "0.5897766", "0.5887975", "0.58738446", "0.5872483", "0.58601767", "0.58467126", "0.58146507", "0.58135146", "0.5804942", "0.5804428", "0.58031464", "0.58027756", "0.5800907", "0.5789304", "0.5782184", "0.57821727", "0.5767076", "0.5766932", "0.5763298", "0.57615817", "0.5761405", "0.5756342", "0.57411736", "0.5736955", "0.57323974", "0.57092303", "0.57015127", "0.56873876", "0.56847954", "0.5677935", "0.56718826", "0.5669447", "0.56631464", "0.5661324", "0.565987", "0.56552637", "0.5654248", "0.5641618", "0.5638321", "0.5630475", "0.56283057", "0.56099004" ]
0.68335277
6
Append content to a SD card file.
public static void appendFileSdCardFile(String fileName, String content) { FileWriter writer = null; try { //Open a file writer and write a file with appending format with "true". writer = new FileWriter(fileName, true); writer.write(content); } catch (IOException e) { e.printStackTrace(); } finally { try { if (writer != null) { writer.close(); } } catch (IOException e) { e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeToSDFile() {\n File root = android.os.Environment.getExternalStorageDirectory();\n //Environment.getExternalStoragePublicDirectory()\n File dir = root.getAbsoluteFile();\n // See http://stackoverflow.com/questions/3551821/android-write-to-sd-card-folder\n //dir = new File (root.getAbsolutePath() + \"../extSdCard/FieldImages\"); //wrote to internal directory\n\n File dirnew = new File(dir.getParent());\n File dirfinal = new File(dirnew.getParent() + \"/extSdCard/FieldImages/mydata.txt\");\n Log.d(\"Files\", \"Path: \" + dirfinal.getPath());\n// String path = dirnew.getParent();\n File file[] = new File(dirnew.getParentFile() + \"/extSdCard/FieldImages\").listFiles();\n Log.d(\"Files\", \"Size: \" + file.length);\n for (int i = 0; i < file.length; i++) {\n Log.d(\"Files\", \"FileName:\" + file[i].getName());\n }\n\n// String pathnew = dir.getParent() + \"/legacy\";\n// Log.d(\"Files\", \"Pathnew: \" + pathnew);\n// File fnew = new File(pathnew);\n// File filenew[] = f.listFiles();\n// Log.d(\"Files\", \"Size: \"+ filenew.length);\n// for (int i=0; i < filenew.length; i++)\n// {\n// Log.d(\"Files\", \"FileName:\" + filenew[i].getName());\n// }\n //dir.mkdirs();\n //File file = new File(dir, \"myData.txt\");\n\n// try {\n// FileOutputStream f = new FileOutputStream(dirfinal);\n// PrintWriter pw = new PrintWriter(f);\n// pw.println(\"Hi , How are you\");\n// pw.println(\"Hello\");\n// pw.flush();\n// pw.close();\n// f.close();\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// Log.i(TAG, \"******* File not found. Did you\" +\n// \" add a WRITE_EXTERNAL_STORAGE permission to the manifest?\");\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n\n //Get the text file\n File filetest = dirfinal;\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(filetest));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }\n br.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n Log.i(TAG, \"******* File not found. Did you\" +\n \" add a WRITE_EXTERNAL_STORAGE permission to the manifest?\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Log.v(null,text.toString());\n\n }", "@Override\n public void onClick(View v) {\n try {\n File dir = getExternalFilesDir(\"Myfiles\");\n File sdCard = new File(dir, \"myfile.txt\");\n dir.mkdirs();\n\n if(!sdCard.exists()) { //if file doesn't exists\n sdCard.createNewFile();\n }\n\n FileOutputStream fOut = new FileOutputStream(sdCard, true);\n\n fOut.write(txtData.getText().toString().getBytes());\n fOut.close();\n\n Toast.makeText(MainActivity.this, \"Done writing SD 'myfile.txt\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void writeLineToSdcard(String filename, String line) {\n final String outputFile = Environment.getExternalStorageDirectory().toString() + \"/\"\n + filename;\n try {\n FileWriter fstream = null;\n fstream = new FileWriter(outputFile, true);\n BufferedWriter out = new BufferedWriter(fstream);\n out.write(line + \"\\n\");\n out.close();\n fstream.close();\n Log.print(\"write log: \" + outputFile);\n } catch (Exception e) {\n Log.print(\"exception for write log\");\n }\n }", "public void append(String path, String content) throws IOException {\n Path destionationPath = new Path(path);\n\n if (!hdfs.exists(destionationPath)) {\n create(path);\n }\n\n OutputStream os = hdfs.append(destionationPath);\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, \"UTF-8\"));\n bw.write(content);\n bw.flush();\n bw.close();\n }", "public static synchronized void append(String path, String content) {\n\t\tPrintWriter out = null;\n\t\ttry {\n\t\t\tout = new PrintWriter(new BufferedWriter(new FileWriter(path, true)));\n\t\t\tout.println(content);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(e);\n\t\t} finally {\n\t\t\tif (out != null) {\n\t\t\t\tout.close();\n\t\t\t}\n\t\t}\n\t}", "public static boolean writeSD(String data, String fileName) {\n\n try {\n\n String state = Environment.getExternalStorageState();\n if (state.equals(Environment.MEDIA_MOUNTED)) {\n\n File ext = Environment.getExternalStorageDirectory();\n\n FileOutputStream fos = new FileOutputStream(new File(ext, fileName), true);\n fos.write(data.getBytes());\n fos.close();\n\n return true;\n\n }\n\n return false;\n\n\n } catch (Exception e) {\n\n // TODO Auto-generated catch block\n\n e.printStackTrace();\n\n return false;\n\n }\n\n }", "public static void appendString(String path, String content) {\n //Open file\n Path jPath = Paths.get(path);\n\n //Create file if necessary\n if (!Files.exists(jPath, LinkOption.NOFOLLOW_LINKS)) {\n try {\n Files.createFile(jPath);\n } catch (IOException ex) {\n System.out.print(ex);\n System.exit(1);\n }\n }\n\n //Error if not writable\n if (!Files.isWritable(jPath)) {\n System.out.println(\"File \" + jPath + \" could not be written!\");\n System.exit(1);\n }\n //Write lines\n try {\n FileWriter fw = new FileWriter(path, true);\n fw.write(content);//appends the string to the file\n fw.close();\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "public static void WriteStreamAppendByRandomAccessFile(String fileName, String content) throws IOException {\n try {\n RandomAccessFile randomFile = new RandomAccessFile(fileName, \"rw\");\n long fileLength = randomFile.length();\n // Write point to the end of file.\n randomFile.seek(fileLength);\n randomFile.writeBytes(content);\n randomFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void appendData_File(String BSSID){\n try {\n outputStreamWriter = new OutputStreamWriter(context.openFileOutput(Constant.FILE_NAME, Context.MODE_APPEND));\n BSSID+=\",\";\n outputStreamWriter.write(BSSID);\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n finally {\n try{\n if(outputStreamWriter!=null)\n outputStreamWriter.close();\n }\n catch (Exception e){\n Message.logMessages(\"ERROR: \",e.toString());\n }\n }\n }", "public void onClick(View v) {\n try {\n File sdCard = new File(getExternalFilesDir(\"Myfiles\"), \"myfile.txt\");\n\n FileInputStream fIn = new FileInputStream(sdCard);\n InputStreamReader isw = new InputStreamReader(fIn);\n\n byte[] data = new byte[fIn.available()];\n while (fIn.read(data) != -1) { //read until data is done\n }\n txtData.setText(new String(data));\n fIn.close();\n\n Toast.makeText(MainActivity.this, \"Done reading SD 'myfile.txt'\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public synchronized static void writeFileToSDCard(@NonNull final byte[] buffer, final String folder,\n final String fileName, final boolean append, final boolean autoLine,int sampleRate,int channel) {\n\n\n boolean sdCardExist = Environment.getExternalStorageState().equals(\n Environment.MEDIA_MOUNTED);\n String folderPath = folder;\n if (sdCardExist) {\n //TextUtils为android自带的帮助类\n if (TextUtils.isEmpty(folder)) {\n //如果folder为空,则直接保存在sd卡的根目录\n folderPath = Environment.getExternalStorageDirectory()\n + File.separator;\n } else {\n folderPath = Environment.getExternalStorageDirectory()\n + File.separator + folder + File.separator;\n }\n } else {\n return;\n }\n\n\n Log.i(\"chaoli\", \"writeFileToSDCard: folderPath=\"+folderPath+fileName);\n File fileDir = new File(folderPath);\n if (!fileDir.exists()) {\n if (!fileDir.mkdirs()) {\n return;\n }\n }\n File file;\n //判断文件名是否为空\n if (TextUtils.isEmpty(fileName)) {\n file = new File(folderPath + \"sample.wav\");\n } else {\n file = new File(folderPath + fileName);\n }\n RandomAccessFile raf = null;\n FileOutputStream out = null;\n try {\n if (append) {\n\n long fileLength = file.length();\n long bufferLength = buffer.length;\n\n\n\n //如果为追加则在原来的基础上继续写文件\n raf = new RandomAccessFile(file, \"rw\");\n int format = AAASettingParam.getInstance().getDumpAudioFormat();\n\n if(format==0){\n //dump PCM格式\n raf.seek(fileLength);\n }else {\n //dump WAV格式\n if(fileLength==0){\n writeHeader(raf,bufferLength+44,bufferLength,sampleRate,channel,16);\n raf.seek(44);\n }else{\n writeHeader(raf,fileLength+bufferLength,fileLength+bufferLength-44,sampleRate,channel,16);\n raf.seek(fileLength);\n }\n }\n\n raf.write(buffer);\n\n // 如果你的资源需要换行,请自行打开 此处我是保存的音频文件\n //if (autoLine) {\n // raf.write( \"\\n\".getBytes() );\n // }\n } else {\n //重写文件,覆盖掉原来的数据\n out = new FileOutputStream(file);\n out.write(buffer);\n out.flush();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (raf != null) {\n raf.close();\n }\n if (out != null) {\n out.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "private void fileModify(String text) throws IOException {\n text += \"\\n\";\n try {\n File filePath;\n filePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS);\n if (!filePath.exists()) {\n if (filePath.mkdir()) ; //directory is created;\n }\n\n fileOutputStream = new FileOutputStream(file);\n fileOutputStream.write(text.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n fileOutputStream.flush();\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n public StorageOutputStream append(File file) throws IOException {\n\treturn null;\n }", "public void appendFile(String path, String content) throws Exception {\n\n\t\ttry {\n\n\t\t\t// Create file\n\t\t\tFileWriter fstream = new FileWriter(path, true);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\t\tout.append('\\n');\n\t\t\tout.append(content);\n\t\t\t// Close the output stream\n\t\t\tout.close();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error escribiendo fichero\", e);\n\t\t}\n\n\t}", "public ExternalStorageFileOutputStream(File file, boolean append) throws FileNotFoundException {\n super(file instanceof ExternalStorageFile ? ((ExternalStorageFile) file).getInternalFile() : file, append);\n if (mDoAccessDefalut) {\n refreshSDCardFSCache(file.getAbsolutePath());\n }\n }", "private void saveToSd(InputStream stream) {\n\t\tString fileName = \"exchange_rates.xml\";\n\n\t\tFile sdCard = android.os.Environment.getExternalStorageDirectory(); \n\t\tFile dir = new File (sdCard.getAbsolutePath() + \"/Android/data/com.douchedata.exchange/files/\");\n\t\tFile file = new File(dir, fileName);\n\t\t\n\t\ttry {\n\t\t\tif ((file.exists() != false))\n\t\t\t\tfile.createNewFile();\n\t\t\t\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\t\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\n\t\t\tint len = 0;\n\t\t\twhile ((len = stream.read(buffer)) > 0) {\n\t\t\t\tfos.write(buffer, 0, len);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void WriteStreamAppendByFileOutputStream(String fileName, String content) throws IOException {\n BufferedWriter out = null;\n try {\n out = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(fileName, true)));\n out.write(content);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private void saveData( ) throws IOException {\n \tString FILENAME = \"data_file\";\n String stringT = Long.toString((SystemClock.elapsedRealtime() - timer.getBase())/1000)+\"\\n\";\n String stringS = textView.getText().toString()+\"\\n\";\n String stringD = Long.toString(System.currentTimeMillis())+\"\\n\";\n FileOutputStream fos;\n\t\ttry {\n\t\t\tfos = openFileOutput(FILENAME, Context.MODE_APPEND); //MODE_APPEND\n\t\t\tfos.write(stringS.getBytes());\n\t\t\tfos.write(stringT.getBytes());\n\t\t\tfos.write(stringD.getBytes());\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "private void writeToFile(String data, Context context) throws FileNotFoundException\r\n{\n if (fileExists(this, \"todolist.txt\"))\r\n {\r\n\r\n FileOutputStream fOut = openFileOutput(\"todolist.txt\", MODE_APPEND);\r\n OutputStreamWriter osw = new OutputStreamWriter(fOut);\r\n try {\r\n osw.write(\"\\n\");\r\n osw.write(data);\r\n osw.flush();\r\n osw.close();\r\n } catch (IOException e) {\r\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\r\n }\r\n }\r\n // otherwise make the file\r\n else\r\n {\r\n FileOutputStream fos = null;\r\n\r\n fos = openFileOutput(\"todolist.txt\", MODE_PRIVATE);\r\n try {\r\n fos.write(data.getBytes());\r\n // Toast.makeText(this, getFilesDir() + \"/\" + \"todolist.txt\", Toast.LENGTH_LONG).show();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n if (fos != null) {\r\n try {\r\n fos.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n}\r\n}", "@Override\n\tpublic void onClick(View v) {\n\t\tif (!isOpen) {\n\t\t\taddFile(Environment.getExternalStorageDirectory());\n\t\t\tisOpen = true;\n\t\t}\n\t}", "public static boolean saveFileToSDCard(String filePath, String filename, String content)\n throws Exception {\n boolean flag = false;\n if (checkSDCardAvailable()) {\n File dir = new File(filePath);\n if (!dir.exists()) {\n dir.mkdir();\n }\n File file = new File(filePath, filename);\n FileOutputStream outStream = new FileOutputStream(file);\n outStream.write(content.getBytes());\n outStream.close();\n flag = true;\n }\n return flag;\n }", "public void saveToSD() {\n sizeOfArrayList = scannedList.size();\n for (int i = 0; i < sizeOfArrayList; i++) {\n String fileName = \"STS\" + \".txt\";//like 2016_01_12.txt\n try {\n File root = new File(Environment.getExternalStorageDirectory() + File.separator + \"ScanToSheet\");\n if (!root.exists()) {\n root.mkdirs();\n }\n File gpxfile = new File(root, fileName);\n FileWriter writer = new FileWriter(gpxfile, true);\n writer.append(\"--------------------------------------------------------\\n\"\n +scannedList.get(i)+\"-\"+listDescOfItem.get(i)\n +\"\\n\"+listNoteOfItem.get(i)+\"\\n--------------------------------------------------------\\n\\n\\n\");\n writer.flush();\n writer.close();\n if(sizeOfArrayList==i+1){\n Snackbar.make(view, sizeOfArrayList+\" item saved to './ScanToSheet/STS.txt'...️\", Snackbar.LENGTH_LONG).show();\n }\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }\n }", "@Override\n public void append(long address, LogData entry) {\n try {\n // make sure the entry doesn't currently exist...\n // (probably need a faster way to do this - high watermark?)\n FileHandle fh = getChannelForAddress(address);\n if (!fh.getKnownAddresses().contains(address)) {\n fh.getKnownAddresses().add(address);\n if (sync) {\n writeEntry(fh, address, entry);\n } else {\n CompletableFuture.runAsync(() -> {\n try {\n writeEntry(fh, address, entry);\n } catch (Exception e) {\n log.error(\"Disk_write[{}]: Exception\", address, e);\n }\n });\n }\n } else {\n throw new OverwriteException();\n }\n log.info(\"Disk_write[{}]: Written to disk.\", address);\n } catch (Exception e) {\n log.error(\"Disk_write[{}]: Exception\", address, e);\n throw new RuntimeException(e);\n }\n }", "public static void writeFileSdCardFile(String fileName, String writeStr) {\n\n FileOutputStream fout = null;\n try {\n fout = new FileOutputStream(fileName);\n byte[] bytes = writeStr.getBytes();\n\n fout.write(bytes);\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fout != null) {\n try {\n fout.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "@Override\n public void onClick(View v) {\n\n writeFile();\n\n File INTERNAL = getFilesDir();\n File EXT_DIR = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File dataDir = Environment.getExternalStorageDirectory();\n\n Log.d(\"FILE\", \"INTERNAL: \" + INTERNAL.getAbsolutePath());\n Log.d(\"FILE\", \"EXTERNAL: \" + EXT_DIR.getAbsolutePath());\n Log.d(\"FILE\", \"DATA: \" + dataDir.getAbsolutePath());\n }", "public void appendFileContent(String fileContent) {\n if (this.fileContent != null) {\n this.fileContent += \"\\n\" + fileContent;\n } else {\n setFileContent(fileContent);\n }\n }", "private void insertIntoFile(String data){\n\t\tOutputStream os = null;\n try {\n os = new FileOutputStream(file);\n os.write(data.getBytes(), 0, data.length());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}", "public static void append(String path, String message) {\t\r\n\t\twrite(path, read(path).concat(\"\\n\" + message));\r\n\t}", "private void updateStatusSDCard(){\n\t\tString status = StorageUtils.getSDcardState();\n\t\tString readOnly = \"\";\n\t\tif (status.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) {\n\t\t\tstatus = Environment.MEDIA_MOUNTED;\n\t\t\treadOnly = getResources().getString(R.string.read_only);\n\t\t}\n\n\t\t// Calculate the space of SDcard\n\t\tif (status.equals(Environment.MEDIA_MOUNTED)) {\n\t\t\ttry {\n\t\t\t\tString path = StorageUtils.getSDcardDir();\n\t\t\t\tStatFs stat = new StatFs(path);\n\t\t\t\tlong blockSize = stat.getBlockSize();\n\t\t\t\tlong totalBlocks = stat.getBlockCount();\n\t\t\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t\t\tmSdTotalSpace=formatSize(totalBlocks * blockSize);\n\t\t\t\tmSdAvailableSpace=formatSize(availableBlocks * blockSize) + readOnly;\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tstatus = Environment.MEDIA_REMOVED;\n\t\t\t}\n\t\t}else{\n\t\t\tmSdTotalSpace=getResources().getString(R.string.sd_unavailable);\n\t\t\tmSdAvailableSpace=getResources().getString(R.string.sd_unavailable);\n\t\t}\n\t}", "public void createLogFile() {\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFile root = Environment.getExternalStorageDirectory();\n\t\t\tLog.e(\"SD CARD WRITE ERROR : \", \"SD CARD mounted and writable? \"\n\t\t\t\t\t+ root.canWrite());\n\t\t\tif (root.canWrite()) {\n\t\t\t\tFile gpxfile = new File(root, \"ReadConfigLog.txt\");\n\t\t\t\tFileWriter gpxwriter = new FileWriter(gpxfile);\n\t\t\t\tout = new BufferedWriter(gpxwriter);\n\t\t\t\tout.write(\"Hello world\");\n\t\t\t\t// out.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"SD CARD READ ERROR : \", \"Problem reading SD CARD\");\n\t\t\tLog.e(\"SD CARD LOG ERROR : \", \"Please take logs using Logcat\");\n\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\"Could not write file \" + e.getMessage());\n\t\t}\n\t}", "public void saveFile(String pathOfFileSelected, String content){\n FileOutputStream fos = null;\n try {\n final File myFile = new File(pathOfFileSelected);\n\n myFile.createNewFile();\n\n fos = new FileOutputStream(myFile);\n\n fos.write(content.getBytes());\n fos.close();\n Log.d(TAG, \"saveFile: Saved Successfully\");\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.w(TAG, \"saveFile: Unable to save\",e);\n }\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "public static void appendFile(final String contents, final String name) {\n writeFile(contents, name, true);\n }", "public boolean WriteToFile(String content,Context context) {\r\n String fileName = \"BuddyStorageBeta.txt\";\r\n FileOutputStream outputStream = null;\r\n try {\r\n outputStream = context.openFileOutput(fileName, Context.MODE_APPEND);\r\n outputStream.write(content.getBytes());\r\n outputStream.close();\r\n return true;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n }", "public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void addStorageCard(com.hps.july.persistence.StorageCard arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addStorageCard(arg0);\n }", "private void append(String sAppend) throws Exception {\n\n\tString sFilename = null;\n\tFileWriter fw = null;\n\n\ttry {\n\t // Define the filename.\n\t sFilename = getMeasurementsFilename();\n\n\t // Append.\n\t fw = new FileWriter(sFilename, true);\n\t fw.write(sAppend);\n\t fw.close();\n\n\t} catch (Exception e) {\n\n\t // try writing to the /tmp file system.\n\t FileWriter fw2 = null;\n\t try {\n\t\tsFilename = \"/tmp/cqServiceUsage\";\n\t\tfw2 = new FileWriter(sFilename, true);\n\t\tfw2.write(sAppend);\n\t\tfw2.close();\n\t } catch (Exception e2) {\n\t\tthrow (e2);\n\t } finally {\n\t\tfw2 = null;\n\t }\n\t} finally {\n\t fw = null;\n\t}\n }", "public void recordVideosName(){\n File file=new File(\"/sdcard/\",\"DateRecording.txt\");\n try {\n FileOutputStream fileOutputStream = new FileOutputStream(file,true);//追加方式打开\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter);\n bufferedWriter.write(videosName[0]+\" \"+videosName[1]+\" \"+videosName[2]+\" \"+videosName[3]+\" \"+videosName[4]+\" \"+videosName[5]+\"\\r\\n\");\n bufferedWriter.write(\"u_1 u_2 u_3\"+\"\\r\\n\");\n bufferedWriter.close();\n outputStreamWriter.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "public static void writeStreamAppendByFileWriter(String fileName, String content) throws IOException {\n try {\n FileWriter writer = new FileWriter(fileName, true);\n writer.write(content);\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void appendTo(Appendable buff) throws IOException;", "public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }", "public void manageFile() {\n long seconds = System.currentTimeMillis();\n filename = \"sdcard/LocationWise/LocationWiseImages/\" + seconds + \".png\";\n path_to_file = new File(filename);\n if (path_to_file.exists()) {\n boolean delete = path_to_file.delete();\n if (delete == true) {\n writeFile();\n // Toast.makeText(this, \"Deleted Successfully\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n // Toast.makeText(this, \"Deletion Failed\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n writeFile();\n\n }\n }", "public static void FileWrite(String path, String content) {\n\t\tFile file = new File(path);\n\t\ttry {\n\t\t\tFileOutputStream fop = new FileOutputStream(file);\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\t// get the content in bytes\n\t\t\tbyte[] contentInBytes = content.getBytes();\n\t\t\tfop.write(contentInBytes);\n\t\t\tfop.flush();\n\t\t\tfop.close();\n\t\t\tSystem.out.println(\"Content :\\\"\" + content\n\t\t\t\t\t+ \"\\\" is written in File: \" + path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void addToBuffer(String filename, SensorData sensorData){\n ObjectOutputStream outstream;\n try {\n File bufferFile = new File(filename);\n //Checks to see if the buffer file already exists. \n if(bufferFile.exists())\n {\n //Create an AppendableObjectOutputStream to add the the end of the buffer file as opposed to over writeing it. \n outstream = new AppendableObjectOutputStream(new FileOutputStream (filename, true));\n } else {\n //Create an ObjectOutputStream to create a new Buffer file. \n outstream = new ObjectOutputStream(new FileOutputStream (filename)); \n }\n //Adds the SensorData to the end of the buffer file.\n outstream.writeObject(sensorData);\n outstream.close();\n } catch(IOException io) {\n System.out.println(io);\n }\n }", "private void loadFromSdCard() throws IOException {\n\t\tif (!Environment.getExternalStorageState().equals(\n\t\t\t\tEnvironment.MEDIA_MOUNTED)) {\n\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\tR.string.error_noExternalStorage));\n\t\t}\n\n\t\tStringBuffer whiteBoardFilePath = new StringBuffer(\n\t\t\t\tWHITEBOARD_DATA_FOLDER_PATH);\n\t\twhiteBoardFilePath.append(whiteBoard.id).append(\".dat\");\n\n\t\ttry {\n\t\t\tmDataStore.deserializeDataStore(new FileInputStream(new File(\n\t\t\t\t\twhiteBoardFilePath.toString())));\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not load save file\");\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"I/O error loading save file\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void appendLog(String text) {\r\n\t\tFile logFile = new File(\"sdcard/\" + application.LOGFILENAME);\r\n\t\tif (!logFile.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tlogFile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tBufferedWriter buf = new BufferedWriter(new FileWriter(logFile, true));\r\n\t\t\tCalendar calendar = Calendar.getInstance();\r\n\t\t\ttry {\r\n\t\t\t\tSystem.err.println(\"Logged Date-Time : \" + calendar.getTime().toLocaleString());\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t}\r\n\t\t\tbuf.append(\"Logged Date-Time : \" + calendar.getTime().toLocaleString());\r\n\t\t\tbuf.append(\"\\n\\n\");\r\n\t\t\tbuf.append(text);\r\n\t\t\tbuf.newLine();\r\n\t\t\tbuf.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void appendToFile(String fileName, String fileContent) throws Exception {\n\t\tFileWriter fstream = new FileWriter(fileName, true);\n\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\tout.write(fileContent);\n\t\tout.close();\n\t}", "public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeFile(String content){\n\t\tFile file = new File(filePath);\n\t\t\n\t\tBufferedWriter bw = null;\n\t\t\n\t\ttry{\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\t\n\t\t\tbw = new BufferedWriter(new FileWriter(file));\n\t\t\tbw.write(content);\n\t\t}\n\t\tcatch (Exception oops){\n\t\t\tSystem.err.print(\"There was an error writing the file \"+oops.getStackTrace());\n\t\t}\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tbw.close();\n\t\t\t}\t\n\t\t\tcatch(IOException oops){\n\t\t\t\tSystem.err.print(\"There was an error closing the write buffer \"+oops.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic boolean onMenuItemClick(MenuItem arg0) {\n\t\t\tif(Environment.getExternalStorageState()!=Environment.MEDIA_MOUNTED){\n\t\t\t\ttry {\n\t\t\t\t\tString name=System.currentTimeMillis()+\".cvs\";\n\t\t\t\t\tFile file=new File(Environment.getExternalStorageDirectory(), name);\n\t\t\t\t\tif(!file.exists()){\n\t\t\t\t\t\tfile.createNewFile();\n\t\t\t\t\t}\n\t\t\t\t\tFileOutputStream fos=new FileOutputStream(file);\n\t\t\t\t\tOutputStreamWriter osw=new OutputStreamWriter(fos);\n\t\t\t\t\tBufferedWriter bw=new BufferedWriter(osw);\n\t\t\t\t\tbw.write(\"id,title, content, record_date,remind_time, remind, shake, ring\\r\\n\");\n\t\t\t\t\tCursor cursor=dbService.querydata(null);\n\t\t\t\t\twhile(cursor.moveToNext()){\n\t\t\t\t\t\tbw.write(cursor.getString(0)+\",\"+cursor.getString(1)+\",\"+cursor.getString(2)+\",\"+cursor.getString(3)+\",\"+cursor.getString(4)+\",\"+cursor.getString(5)+\",\"+cursor.getString(6)+\",\"+cursor.getString(7)+\"\\r\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tcursor.close();\n\t\t\t\t\tbw.close();\n\t\t\t\t\tosw.close();\n\t\t\t\t\tfos.close();\n\t\t\t\t\tToast.makeText(Main.this, \"导出成功,已保存到sd卡,文件名为\"+name, Toast.LENGTH_LONG).show();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tToast.makeText(Main.this, \"SD存储卡不可用\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public static void writeWhole(FileSystem filesystem, String file, byte[] content) throws PathNotFoundException, AccessDeniedException, NotAFileException, DriveFullException\n\t{\n\t\tif (filesystem.pathExists(file))\n\t\t\tfilesystem.delete(file);\n\t\t\n\t\ttry {\n\t\t\tfilesystem.createFile(file);\n\t\t} catch (DestinationAlreadyExistsException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tFileHandle handle = filesystem.openFile(file, false, true);\n\t\ttry {\n\t\t\tfilesystem.write(handle, ByteBuffer.wrap(content), 0);\n\t\t} catch (PartIsLockedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfilesystem.close(handle);\n\t}", "private void CreateNewFile() {\n\tcheckState();\n\t\n\tif (CanR=CanW=true)\n\t{\n\t\t\n\t\ttry {\n\t\t root = Environment.getExternalStorageDirectory();\n\t\t \n\t\t if (root.canWrite()){\n\t\t gpxfile = new File(root, \"Speed_SD.csv\");\n\t\t gpxwriter = new FileWriter(gpxfile,true);\n\t\t out = new BufferedWriter(gpxwriter);\nout.append(\"\"+\",\"+\"\"+\",\"+\"\");\n\t\t out.newLine();\n\t\t }\n\t\t} catch (IOException e) {\n\t\t //Log.e(, \"Could not write file \" + e.getMessage());\ne.printStackTrace();\n\t\t\n\t}\n\t\t\n}\n\t\t}", "private String saveToSdCard() throws IOException {\n\t\tif (!Environment.getExternalStorageState().equals(\n\t\t\t\tEnvironment.MEDIA_MOUNTED)) {\n\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\tR.string.error_noExternalStorage));\n\t\t}\n\n\t\tStringBuffer whiteBoardFilePath = new StringBuffer(\n\t\t\t\tWHITEBOARD_DATA_FOLDER_PATH);\n\t\twhiteBoardFilePath.append(whiteBoard.id).append(\".dat\");\n\n\t\t// Create the white board file if it doesn't exist.\n\t\tFile whiteBoardFile = new File(whiteBoardFilePath.toString());\n\t\tif (!whiteBoardFile.exists()) {\n\t\t\t// Make sure the path to the file exists.\n\t\t\tnew File(WHITEBOARD_DATA_FOLDER_PATH).mkdirs();\n\n\t\t\tif (!whiteBoardFile.createNewFile()) {\n\t\t\t\tLog.e(TAG, \"Failed to create new white board data file. \"\n\t\t\t\t\t\t+ whiteBoardFilePath.toString());\n\t\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\t\tR.string.error_savingWhiteBoard));\n\t\t\t}\n\t\t}\n\n\t\t// Serialise the white board to the file.\n\t\ttry {\n\t\t\tmDataStore.serializeDataStore(new FileOutputStream(whiteBoardFile));\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\t\"Failed to write white board data file. \" + e.getMessage());\n\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\tR.string.error_savingWhiteBoard));\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\t\"Failed to write white board data file. \" + e.getMessage());\n\t\t\tthrow new IOException(getResources().getString(\n\t\t\t\t\tR.string.error_savingWhiteBoard));\n\t\t}\n\t\treturn whiteBoardFile.getAbsolutePath();\n\t}", "public void appendToFile(File file, String additionalContent) {\r\n BufferedWriter bw = null;\r\n\r\n try {\r\n if(!file.exists()) {\r\n file.createNewFile();\r\n }\r\n // open file in append mode\r\n bw = new BufferedWriter(new FileWriter(file, true));\r\n bw.write(additionalContent);\r\n bw.newLine();\r\n bw.flush();\r\n\r\n } catch (IOException ioe) {\r\n // for now, throw exception up to caller\r\n throw new RuntimeException(ioe);\r\n\r\n } finally {\r\n if (bw != null) {\r\n try {\r\n bw.close();\r\n } catch (IOException ioe2) {\r\n }\r\n }\r\n }\r\n }", "public static void write(String path, String content) {\n\t\ttry {\n\t\t\tFile file = new File(path);\n\t\t\t// If file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t// Write in file\n\t\t\tbw.write(content);\n\t\t\t// Close connection\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n File sdCard = Environment.getExternalStorageDirectory().getAbsoluteFile();\n File path = new File(sdCard + \"/easeWave\");\n path.mkdirs();\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(path));\n startActivity(Intent.createChooser(intent, getActivity().getString(R.string.sendfile)));\n dialog2.dismiss();\n }", "private static void saveFileToDevice(Context context, File file, AssetFileDescriptor assetFileDescriptor) {\n // The output stream is used to write the new file to the device storage\n FileOutputStream outputStream = null;\n // The input stream is used for reading the file that is embedded in our application\n FileInputStream inputStream = null;\n try {\n byte[] buffer = new byte[1024];\n // Create the input stream\n inputStream = (assetFileDescriptor != null) ? assetFileDescriptor.createInputStream() : null;\n // Create the output stream\n outputStream = new FileOutputStream(file, false);\n // Read the file into buffer\n int i = (inputStream != null) ? inputStream.read(buffer) : 0;\n // Continue writing and reading the file until we reach the end\n while (i != -1) {\n outputStream.write(buffer, 0, i);\n i = (inputStream != null) ? inputStream.read(buffer) : 0;\n }\n\n outputStream.flush();\n } catch (IOException io) {\n // Display a message to the user\n Toast toast = Toast.makeText(context, \"Could not save the file\", Toast.LENGTH_SHORT);\n toast.show();\n } finally {\n if (outputStream != null) {\n try {\n outputStream.close();\n } catch (IOException ex) {\n // We should really never get this far, but we might consider adding a\n // warning/log entry here...\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException ex) {\n // We should really never get this far, but we might consider adding a\n // warning/log entry here...\n }\n }\n }\n }", "public void addToFile(String pathName, String message) throws IOException{\n FileOutputStream fos = new FileOutputStream(pathName, true);\n message = \"\\n\" + message;\n fos.write(message.getBytes());\n fos.close();\n\n }", "private void export(){\n //get available number for file name\n int number = getPosition();\n\n //creates the file\n final File file = new File(Environment.getExternalStorageDirectory().getPath() + \"/csv_\" + number + \".csv\");\n\n //creates a output stream and then streams the file to the external storage\n try {\n file.createNewFile();\n FileOutputStream fOut = new FileOutputStream(file);\n OutputStreamWriter myOutWriter = new OutputStreamWriter(fOut);\n myOutWriter.append(csvFile.toString());\n\n //closes the writer and stream\n\n myOutWriter.close();\n\n fOut.flush();\n fOut.close();\n\n Toast.makeText(this, \"CSV created\", Toast.LENGTH_LONG).show();\n\n Intent intentShareFile = new Intent(Intent.ACTION_SEND);\n\n //opens the chooser pop-up to choose share function\n if(file.exists()) {\n intentShareFile.setType(\"text/*\");\n intentShareFile.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));\n\n intentShareFile.putExtra(Intent.EXTRA_SUBJECT,\"CSV\");\n intentShareFile.putExtra(Intent.EXTRA_TEXT, \"The exported CSV File\");\n\n StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();\n StrictMode.setVmPolicy(builder.build());\n\n startActivity(Intent.createChooser(intentShareFile, \"Share File\"));\n }\n } catch (IOException e) {\n e.printStackTrace();\n Log.d(\"csvError\", e.getMessage());\n }\n }", "private static String writeToFile(String data, String fileName, Context context) {\n try {\n File documentsPath = new File(context.getExternalFilesDir(null).toString());\n if (!documentsPath.exists()) {\n documentsPath.mkdirs();\n }\n File myExternalFile = new File(documentsPath, fileName);\n FileOutputStream fileOutputStream = new FileOutputStream(myExternalFile);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n outputStreamWriter.write(data);\n outputStreamWriter.close();\n fileOutputStream.close();\n return myExternalFile.getAbsolutePath();\n } catch (IOException e) {\n writeLog(LOG_LEVEL.ERROR, \"File write failed: \" + e.toString());\n }\n return \"\";\n }", "private void readFile() {\r\nif(isExternalStorageWritable()){\r\n Toast.makeText(this, \"Reading file.\", Toast.LENGTH_SHORT).show();\r\n StringBuilder sb = new StringBuilder();\r\n try{\r\n File textFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM + \"/Alluciam/\"), fileNameToUse);\r\n FileInputStream fis = new FileInputStream(textFile);\r\n if(fis != null){\r\n InputStreamReader isr = new InputStreamReader(fis);\r\n BufferedReader buff = new BufferedReader(isr);\r\n String line = null;\r\n while((line = buff.readLine()) != null){\r\n sb.append(line + \"\\n\\n\");\r\n }// this ends while line=buff.readLine\r\n fis.close();\r\n } // this ends if fis != null\r\n Toast.makeText(this, \"File has been read and closed.\", Toast.LENGTH_LONG).show();\r\n txt.setText(sb);\r\n } // this ends try\r\n catch (IOException e){\r\n Toast.makeText(this, \"IOException. File not found\", Toast.LENGTH_SHORT).show();\r\n e.printStackTrace();\r\n }// this ends catch\r\n} // this ends if isExternalStorageWritable\r\n else{\r\n Toast.makeText(this, \"Cannot read from External Storage.\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public void write_to_disc(ChunkName n, String data) throws IOException {\n\tString path = this.path_name(n);\n\tWriter output;\n\toutput = new BufferedWriter(new FileWriter(path, true));\n\toutput.append(data);\n\toutput.close(); \n }", "public static void appendFile(String output, String filePath, FileSystem fs) {\n File outFile = openFile(filePath, fs);\n if (outFile != null) {\n outFile.appendContent(output);\n }\n }", "void append(CharSequence s) throws IOException;", "public void secondaryAddStorageCard(com.hps.july.persistence.StorageCard arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddStorageCard(arg0);\n }", "private boolean dotestReadAndWrite() {\n String directoryName = SDCARD_PATH+ \"/test\";\r\n File directory = new File(directoryName);\r\n if (!directory.isDirectory()) {\r\n if (!directory.mkdirs()) {\r\n sBuilder.append(getString(R.string.MakeDir) + FAIL).append(\"\\n\");\r\n return false;\r\n } else {\r\n sBuilder.append(getString(R.string.MakeDir) + SUCCESS).append(\r\n \"\\n\");\r\n }\r\n }\r\n File f = new File(directoryName, \"SDCard.txt\");\r\n try {\r\n // Remove stale file if any\r\n if (f.exists()) {\r\n f.delete();\r\n }\r\n if (!f.createNewFile()) {\r\n sBuilder.append(getString(R.string.CreateFile) + FAIL).append(\r\n \"\\n\");\r\n return false;\r\n } else {\r\n sBuilder.append(getString(R.string.CreateFile) + SUCCESS).append(\r\n \"\\n\");\r\n\r\n doWriteFile(f.getAbsoluteFile().toString());\r\n\r\n if (doReadFile(f.getAbsoluteFile().toString()).equals(\r\n TEST_STRING)) {\r\n sBuilder.append(getString(R.string.Compare)).append(SUCCESS).append(\r\n \"\\n\");\r\n } else {\r\n sBuilder.append(getString(R.string.Compare)).append(FAIL).append(\r\n \"\\n\");\r\n return false;\r\n }\r\n }\r\n\r\n sBuilder.append(getString(R.string.FileDel)).append(\r\n (f.delete() ? SUCCESS : FAIL)).append(\"\\n\");\r\n sBuilder.append(getString(R.string.DirDel)).append(\r\n (directory.delete() ? SUCCESS : FAIL)).append(\"\\n\");\r\n return true;\r\n } catch (IOException ex) {\r\n Log.e(TAG, \"isWritable : false (IOException)!\");\r\n return false;\r\n }\r\n }", "public void writeFileToPrivateStorage(int fromFile, String toFile) {\n InputStream is = getApplicationContext().getResources().openRawResource(fromFile);\n int bytes_read;\n byte[] buffer = new byte[4096];\n try {\n FileOutputStream fos = getApplicationContext().openFileOutput(toFile, Context.MODE_PRIVATE);\n\n while ((bytes_read = is.read(buffer)) != -1)\n fos.write(buffer, 0, bytes_read); // write\n\n fos.close();\n is.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void saveFile(Context context, byte[] data, String fileName) {\n\t\tFile file = new File(context.getExternalFilesDir(null), fileName);\n\t\ttry {\n\t OutputStream os = new FileOutputStream(file);\n\t os.write(data);\n\t os.close();\n\t } catch (IOException e) {\n\t // Unable to create file, likely because external storage is\n\t // not currently mounted.\n\t Log.w(\"ExternalStorage\", \"Error writing \" + file, e);\n\t }\n\t}", "public static void write2SD(String tag, String message, String filename,\n boolean append) {\n BufferedWriter bw = null;\n try {\n bw = new BufferedWriter(new FileWriter(\n createFileIfNeed(filename), append));// append\n bw.append(\"[ Time=\" + FORMATER.format(new Date()) + \" ] :tag=\" + tag + \" ,message=\" + message + \" \\r\\n\");\n bw.newLine();\n bw.flush();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (bw != null)\n try {\n bw.close();\n } catch (IOException e) {\n }\n }\n }", "public void writeToDir() {\n\t\ttry{\n\t\t\tString dirPath = Paths.get(\".\").toAbsolutePath().normalize().toString()+\"/\";\n\t\t\tString path = dirPath + filename; //get server dir path\n\t\t\tSystem.out.println(\"output file path is: \" + path);\n\t\t\tFileOutputStream out = new FileOutputStream(path);\n out.write(img);\n out.close();\n PL.fsync();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void randomAccessWrite() {\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"rw\");\n f.writeInt(10);\n f.writeChars(\"test line\");\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public void writeFile(String Path, String File_name, String Content) {\n\t\tFile f1 = new File( Path + \"/\" + File_name);\n\t try {\n\t // отрываем поток для записи\n\t BufferedWriter bw = new BufferedWriter(new FileWriter(f1));\n\t // пишем данные\n\t bw.write(Content);\n\t // закрываем поток\n\t bw.close();\n\t Log.d(LOG_TAG, \"Файл записан\");\n\t } catch (FileNotFoundException e) {\n\t e.printStackTrace();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t }", "private void addTextfileToOutputStream(OutputStream outputStream) {\n Log.i(TAG, \"adding file to outputstream...\");\n byte[] buffer = new byte[1024];\n int bytesRead;\n try {\n BufferedInputStream inputStream = new BufferedInputStream(\n new FileInputStream(Upload_File));\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n } catch (IOException e) {\n Log.i(TAG, \"problem converting input stream to output stream: \" + e);\n e.printStackTrace();\n }\n }", "private void writeFile(String path, String contents) throws IOException {\n File file = new File(dir, path);\n\n try (FileWriter writer = new FileWriter(file)) {\n writer.write(contents);\n }\n }", "public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }", "public void addToClipboard(String path) {\n try {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(this.clipboardPath, true)));\n out.println(path);\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void writeToFile(String filename, String content){\n\t\tFileWriter file;\n\t\ttry {\n\t\t\tfile = new FileWriter(filename,true);\n\t\t\tBufferedWriter writer = new BufferedWriter(file);\n\n\t\t\twriter.append(content);\n\t\t\twriter.newLine();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void add(FileSystemEntry entry);", "public synchronized void write( final String content ) {\n if( newContentBuffer_ == null ) {\n newContentBuffer_ = new StringBuffer();\n }\n newContentBuffer_.append(content);\n }", "public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tString fileName = \"TEST.txt\";\n\t\t\t\tString message = \"FFFFFFF11111FFFFF\";\n\t\t\t\twriteFileData(fileName, message);\n//\t\t\t\tToast.makeText(FileActivity.this, \"here\", Toast.LENGTH_SHORT)\n//\t\t\t\t\t\t.show();\n\t\t\t\tgetData(currentPath);\n\t\t\t}", "public void addContents(roomContents content) {\n contents.add(content);\n }", "private static void append(String text) {\n // Print the same text to STDOUT\n System.out.println(text);\n\n try {\n outputFileBuffer.write(text+\"\\n\");\n outputFileBuffer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void updateStudentList(String content) {\n String timestamp = String.format(\"List last updated %s\", new Date()); \n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(Constants.STUDENT_LIST)); \n writer.write(content);\n writer.newLine();\n writer.append(timestamp); \n writer.close();\n } catch (IOException exception) {\n System.out.println(exception);\n } \n }", "public String saveCapturedImagesToSdcard(Bitmap bitmap) {\n\t\tFile destDir = ctxt.getExternalFilesDir(Tattle_Config_Constants.SD_FOLDER_NAME + File.separator);\n\t\tif (!destDir.exists()) {\n\t\t\tdestDir.mkdir();\n\t\t}\n\t\tString filePath = destDir + File.separator + Tattle_Config_Constants.SD_SCREENSHOT_IMAGE_NAME;\n\t\tFile imagePath = new File(filePath);\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(imagePath);\n\t\t\tbitmap.compress(CompressFormat.PNG, 100, fos);\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.e(\"GREC\", e.getMessage(), e);\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"GREC\", e.getMessage(), e);\n\t\t}\n\t\treturn destDir.getAbsolutePath();\n\t}", "public void appendHeader(File file) {\n\n int bytesLength = (int) file.length();\n byte[] header = createHeader(bytesLength - WAV_HEADER_LENGTH);\n\n try {\n RandomAccessFile ramFile = new RandomAccessFile(file, \"rw\");\n ramFile.seek(0);\n ramFile.write(header);\n ramFile.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Aero\", \"Tried to append header to invalid file: \" + e.getLocalizedMessage());\n return;\n } catch (IOException e) {\n Log.e(\"Aero\", \"IO Error during header append: \" + e.getLocalizedMessage());\n return;\n }\n\n }", "static void writeFile(String path , String data) throws IOException{\n\t\tFileOutputStream fo = new FileOutputStream(path,true);\n\t\tfo.write(data.getBytes());\n\t\tfo.close();\n\t\tSystem.out.println(\"Done...\");\n\t}", "public interface Files \n{\n\t/**\n\t * Enum describing the three file types, internal, external\n\t * and absolut. Internal files are located in the asset directory\n\t * on Android and are relative to the applications root directory\n\t * on the desktop. External files are relative to the SD-card on Android\n\t * and relative to the home directory of the current user on the Desktop.\n\t * Absolut files are just that, absolut files that can point anywhere.\n\t * @author mzechner\n\t *\n\t */\n\tpublic enum FileType\n\t{\n\t\tInternal,\n\t\tExternal,\n\t\tAbsolut\n\t}\n\t\n\tpublic File getlastFile();\n\t\n\t/**\n\t * Returns an InputStream to the given file. If type is equal\n\t * to FileType.Internal an internal file will be opened. On Android\n\t * this is relative to the assets directory, on the desktop it is \n\t * relative to the applications root directory. If type is equal to\n\t * FileType.External an external file will be opened. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut filename. \n\t * \n\t * @param fileName the name of the file to open.\n\t * @param type the type of file to open.\n\t * @return the InputStream or null if the file couldn't be opened.\n\t */\n\t\n\tpublic InputStream readFile( String fileName, FileType type );\t\n\t\n\t/**\n\t * Returns and OutputStream to the given file. If\n\t * the file does not exist it is created. If the file\n\t * exists it will be overwritten. If type is equal\n\t * to FileType.Internal null will be returned as on Android assets can not be written. If type is equal to\n\t * FileType.External an external file will be opened. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut filename.\n\t * \n\t * @param filename the name of the file to open\n\t * @param type the type of the file to open\n\t * @return the OutputStream or null if the file couldn't be opened.\n\t */\n\tpublic OutputStream writeFile( String filename, FileType type );\n\t\t\n\t/**\n\t * Creates a new directory or directory hierarchy on the external\n\t * storage. If the directory parameter contains sub folders and \n\t * the parent folders don't exist yet they will be created. If type is equal\n\t * to FileType.Internal false will be returned as on Android new directories in the asset directory can not be created. If type is equal to\n\t * FileType.External an external directory will be created. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the directory is interpreted as an absolut directory name.\n\t * \n\t * @param directory the directory\n\t * @param type the type of the directory\n\t * @return true in case the directory could be created, false otherwise\n\t */\n\tpublic boolean makeDirectory( String directory, FileType type );\n\t\n\t\n\t/**\n\t * Lists the files and directories in the given directory. If type is equal\n\t * to FileType.Internal an internal directory will be listed. On Android\n\t * this is relative to the assets directory, on the desktop it is \n\t * relative to the applications root directory. If type is equal to\n\t * FileType.External an external directory will be listed. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut directory.\n\t * \n\t * @param directory the directory\n\t * @param type the type of the directory\n\t * @return the files and directories in the given directory or null if the directory is none existant\n\t */\n\tpublic String[] listDirectory( String directory, FileType type );\n\t\n\t\n\t/**\n\t * Returns a {@link FileDescriptor} object for a file. If type is equal\n\t * to FileType.Internal an internal file will be opened. On Android\n\t * this is relative to the assets directory, on the desktop it is \n\t * relative to the applications root directory. If type is equal to\n\t * FileType.External an external file will be opened. On Android this\n\t * is relative to the SD-card, on the desktop it is relative to the\n\t * current user's home directory. If type is equal to FileType.Absolut\n\t * the filename is interpreted as an absolut filename. \n\t * \n\t * @param filename the name of the file\n\t * @param type the type of the file\n\t * @return the FileDescriptor or null if the descriptor could not be created\n\t */\n\tpublic FileHandle getFileHandle( String filename, FileType type );\t\t\n}", "public synchronized void write(String message) {\n\t\tcontent.add(message);\n\n\t\tnotify();\n }", "void SaveData(String data, String Directory, String FileName) {\n\ttry {\n\t\t// Creates a trace file in the primary external storage space of the\n\t\t// current application.\n\t\t// If the file does not exists, it is created.\n\t\t//File traceFile = new File(((Context) this).getExternalFilesDir(null), FileName);\n\t\tFile traceFile = new File(Directory, FileName);\n\t\tif (!traceFile.exists())\n\t\t\ttraceFile.createNewFile();\n\t\t// Adds a line to the trace file\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(traceFile, true /*append*/));\n\t\twriter.write(data);\n\t\twriter.close();\n\t\t// Refresh the data so it can seen when the device is plugged in a\n\t\t// computer. You may have to unplug and replug the device to see the\n\t\t// latest changes. This is not necessary if the user should not modify\n\t\t// the files.\n\t\tMediaScannerConnection.scanFile((Context) (this),\n\t\t\t\tnew String[]{traceFile.toString()},\n\t\t\t\tnull,\n\t\t\t\tnull);\n\n\t} catch (IOException e) {\n\t\tLog.e(\"com.gibio.bt_graph\", \"Unable to write to the TraceFile.txt file.\");\n\t}\n}", "private void writeContent(String content) throws IOException {\n FileChannel ch = lockFile.getChannel();\n\n byte[] bytes = content.getBytes();\n\n ByteBuffer buf = ByteBuffer.allocate(bytes.length);\n buf.put(bytes);\n\n buf.flip();\n\n ch.write(buf, 1);\n\n ch.force(false);\n }", "private void addFileToProject(IContainer container, Path path,\n InputStream contentStream, IProgressMonitor monitor)\n throws CoreException {\n final IFile file = container.getFile(path);\n\n if (file.exists()) {\n file.setContents(contentStream, true, true, monitor);\n } else {\n file.create(contentStream, true, monitor);\n }\n\n }", "@Override\n public void onClick(View view) {\n if(TextUtils.isEmpty(et_namaFile.getText().toString())){\n et_namaFile.setError(\"Nama File Tidak Boleh Kosong!\");\n Toast.makeText(MainActivity.this, Environment.getExternalStorageDirectory().getPath(), Toast.LENGTH_SHORT).show();\n } else{\n //proses menyimpan file\n String namaFile = et_namaFile.getText().toString() + \".txt\";\n\n File file = new File(\"/storage/11E5-250A\", namaFile);\n\n try{\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(et_isi.getText().toString().getBytes());\n fos.close();\n Toast.makeText(MainActivity.this, \"Data berhasil Di Simpan!\", Toast.LENGTH_SHORT).show();\n } catch (FileNotFoundException e) {\n Toast.makeText(MainActivity.this, \"FileNotFoundException : \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n } catch (IOException e) {\n Toast.makeText(MainActivity.this, \"IOException : \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n }", "void appendFileInfo(byte[] key, byte[] value) throws IOException;", "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }", "void Writer(String data, String FileName, Context context) {\n FileOutputStream outputStream = null;\n try {\n outputStream = context.openFileOutput(FileName,Context.MODE_PRIVATE);\n outputStream.write(data.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n }finally{\n if (outputStream != null){\n try {\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void writeFile(View view) {\n WriteFileTask task = new WriteFileTask();\n task.execute();\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Begin writing file...\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void flushData()\n {\n try {\n //outputStreamAccelerometer.flush();\n //outputStreamLinear.flush();\n outputStreamAccelerometer.close();\n outputStreamLinear.close();\n\n String paths[] = {fileAccelerometer.getPath(), fileLinear.getPath(), fileSettings.getPath()};\n MediaScannerConnection.scanFile(context, paths, null, this);\n }\n catch(Exception exc)\n {\n Log.e(\"LOGGER_ERROR_FLUSH\", exc.toString());\n exc.printStackTrace();\n }\n }", "public static void writeString(String path, String content) {\n //Open file\n Path jPath = Paths.get(path);\n\n //Create file if necessary\n if (!Files.exists(jPath, LinkOption.NOFOLLOW_LINKS)) {\n try {\n Files.createFile(jPath);\n } catch (IOException ex) {\n System.out.print(ex);\n System.exit(1);\n }\n }\n\n //Error if not writable\n if (!Files.isWritable(jPath)) {\n System.out.println(\"File \" + jPath + \" could not be written!\");\n System.exit(1);\n }\n //Write lines\n try {\n Files.write(jPath, content.getBytes(Charset.forName(\"UTF-8\")));\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }" ]
[ "0.70281774", "0.68234617", "0.6484133", "0.625714", "0.6126218", "0.59672344", "0.59146917", "0.5904907", "0.5860056", "0.58561206", "0.58370304", "0.5759352", "0.57062376", "0.57000935", "0.56860745", "0.5669651", "0.55865115", "0.55801827", "0.55472827", "0.55010194", "0.54903424", "0.5483439", "0.54807436", "0.5448414", "0.5419226", "0.5404988", "0.538354", "0.5319039", "0.5318968", "0.5282007", "0.5250489", "0.52405035", "0.5236192", "0.52058154", "0.51423544", "0.51229507", "0.51183724", "0.5115042", "0.51120853", "0.5105723", "0.5104844", "0.51010555", "0.5091958", "0.5079155", "0.50751996", "0.5067769", "0.5043349", "0.50325805", "0.5017736", "0.49914068", "0.49897903", "0.49773848", "0.4976868", "0.49479988", "0.49247858", "0.49155623", "0.49016476", "0.49013737", "0.49000138", "0.48940772", "0.489195", "0.48833898", "0.48818102", "0.48766038", "0.4876247", "0.48713994", "0.48700607", "0.4841058", "0.48378623", "0.4826388", "0.4818633", "0.48149395", "0.48098698", "0.48025337", "0.4801374", "0.47971338", "0.47947517", "0.4783499", "0.47832355", "0.47695914", "0.47682747", "0.4768165", "0.4765693", "0.47632727", "0.47599062", "0.47559708", "0.47536564", "0.4753616", "0.47524628", "0.47457838", "0.47326568", "0.47316656", "0.47308046", "0.47305685", "0.47268185", "0.47233346", "0.47230637", "0.4714192", "0.4712448", "0.47122675" ]
0.7629279
0
Devuelve un objeto Calendar con la fecha de hoy.
public static Calendar getFechaHoy(){ Calendar cal = new GregorianCalendar(); cal.set(Calendar.HOUR_OF_DAY,0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return cal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "Calendar getCalendar();", "public Calendario getCalendar(){\r\n\t\treturn calendar;\r\n\t}", "Calendar toCalendar();", "Calendar toCalendar();", "public Calendar getCalendar() {\n return cal;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public static Calendar ahoraCalendar() {\n return Calendar.getInstance(TimeZone.getTimeZone(\"America/Guayaquil\"));\n }", "public Calendar getCalendar() {\n Calendar c = Calendar.getInstance();\n c.setTime(cal.getTime());\n return c;\n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public Calendar getCalendar() {\n return _calendar;\n }", "public Calendar toDate() {\n Calendar cal = Calendar.getInstance();\n if (year != null) {\n cal.set(Calendar.YEAR, year);\n }\n if (month != null) {\n cal.set(Calendar.MONTH, TimeConstants.getMonthIndex(month));\n }\n if (day != null) {\n cal.set(Calendar.DAY_OF_MONTH, day);\n }\n return cal;\n }", "public Calendar getCal() {\n return cal;\n }", "public java.util.Calendar getFecha()\r\n {\r\n return this.fecha;\r\n }", "public static Date fechaInicial(Date hoy) {\n\t\thoy=(hoy==null?new Date():hoy);\n\t\tLong fechaCombinada = configuracion().getFechaCombinada();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(hoy);\n\t\tif (fechaCombinada == 1l) {\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, calendar.get(Calendar.DAY_OF_MONTH) - 1);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\t\tcalendar.set(Calendar.SECOND, 0);\n\t\t} else {\n\t\t\tString fhoyIni = df.format(hoy);\n\t\t\ttry {\n\t\t\t\thoy = df.parse(fhoyIni);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tlog.error(\"Error en fecha inicial\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\t\tcalendar.set(Calendar.SECOND, 0);\n\t\t}\n\t\thoy = calendar.getTime();\n\t\treturn hoy;\n\t}", "public Calendar getCalendar() {\n return this.calendar;\n }", "public void setFechaFinal(Calendar fechaFinal){\r\n this.fechaFinal = fechaFinal;\r\n }", "public Calendar toCalendar() {\n\t\treturn (Calendar) _cal.clone();\n\t}", "public java.util.Calendar getFechaFacturado(){\n return localFechaFacturado;\n }", "private void createCalendar() {\n myCALENDAR = Calendar.getInstance();\r\n DAY = myCALENDAR.get(Calendar.DAY_OF_MONTH);\r\n MONTH = myCALENDAR.get(Calendar.MONTH) + 1;\r\n YEAR = myCALENDAR.get(Calendar.YEAR);\r\n HOUR = myCALENDAR.get(Calendar.HOUR_OF_DAY);\r\n MINUTE = myCALENDAR.get(Calendar.MINUTE);\r\n SECOND = myCALENDAR.get(Calendar.SECOND);\r\n }", "public java.util.Calendar getFechaSolicitud(){\n return localFechaSolicitud;\n }", "private void inicializarFechaHora(){\n Calendar c = Calendar.getInstance();\r\n year1 = c.get(Calendar.YEAR);\r\n month1 = (c.get(Calendar.MONTH)+1);\r\n String mes1 = month1 < 10 ? \"0\"+month1 : \"\" +month1;\r\n String dia1 = \"01\";\r\n\r\n String date1 = \"\"+dia1+\"/\"+mes1+\"/\"+year1;\r\n txt_fecha_desde.setText(date1);\r\n\r\n\r\n day2 = c.getActualMaximum(Calendar.DAY_OF_MONTH) ;\r\n String date2 = \"\"+day2+\"/\"+mes1+\"/\"+ year1;\r\n\r\n Log.e(TAG,\"date2: \" + date2 );\r\n txt_fecha_hasta.setText(date2);\r\n\r\n }", "public Calendar calendario(Date date) {\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(date);\r\n return calendar;\r\n }", "@NonNull public static CalendarDay today() {\n return from(LocalDate.now());\n }", "public void setFecha(java.util.Calendar fecha)\r\n {\r\n this.fecha = fecha;\r\n }", "public static Date hoy_en_DATE() {\n Calendar cc = Calendar.getInstance();\n Date hoyEnDate = cc.getTime();\n return hoyEnDate;\n }", "public void abrirCalendario(View v){\r\n fecha.setText(\"\");\r\n //Obtengo la fecha actual\r\n calendario = Calendar.getInstance();\r\n dia=calendario.get(Calendar.DAY_OF_MONTH);\r\n mes=calendario.get(Calendar.MONTH);\r\n anyo=calendario.get(Calendar.YEAR);\r\n\r\n //Creo el DatePickerDialog con la fecha actual y le indico que el escuchador es la propia clase\r\n datePickerDialog = new DatePickerDialog(this, this,anyo, mes, dia);\r\n //Muestro el DatePickerDialog\r\n datePickerDialog.show();\r\n }", "public Calendar getDate(){\n return date;\n }", "public static Date ahora() {\n return ahoraCalendar().getTime();\n }", "public Calendar() {\n }", "public ICalendar getCalendar() {\n return calendar;\n }", "public static void getCalendar(Calendar cal, QuoteShort q) {\n\t\tcal.set(q.getYear(), q.getMonth()-1, q.getDay(), q.getHh(), q.getMm(),q.getSs());\r\n\t}", "public Calendar() {\n dateAndTimeables = new HashMap<>();\n }", "public Calendar getFechaMatriculacion() {\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(Integer.parseInt(cbox_ano.getSelectedItem().toString()), cbox_mes.getSelectedIndex(),\r\n\t\t\t\tInteger.parseInt(cbox_dia.getSelectedItem().toString()));\r\n\t\treturn c;\r\n\t}", "public BwCalendar getCalendar() {\n if (calendar == null) {\n calendar = new BwCalendar();\n }\n\n return calendar;\n }", "public PickDateTime(Calendar cal) {\n\t\tjbInit();\n\t}", "public static Calendar dateToCalendar(Date fecha, String formato)\n throws Exception {\n if (nullToBlank(fecha).equals(\"\")) {\n return null;\n }\n SimpleDateFormat df = new SimpleDateFormat(formato);\n String text = df.format(fecha);\n return stringToCalendar(text, formato);\n }", "public static Calendar getCalender(Long val) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(val);\n\n return calendar;\n }", "protected Calendar getCurrentCalendar() {\n Calendar current = new Calendar();\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n SimpleDateFormat dateFormatHour = new SimpleDateFormat(\"H\");\n SimpleDateFormat dateFormatWeekDay = new SimpleDateFormat(\"E\");\n SimpleDateFormat dateFormatMonth = new SimpleDateFormat(\"MMM\");\n\n current.setHour(dateFormatHour.format(calendar.getTime()).toString());\n current.setWeekday(dateFormatWeekDay.format(calendar.getTime()));\n current.setMonth(dateFormatMonth.format(calendar.getTime()));\n\n return current;\n }", "Calendar getArrivalDateAndTime();", "public Calendar getDate()\n {\n return date;\n }", "public Date getFechaSistema() {\n\t\tfechaSistema = new Date();\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(fechaSistema);\n\t\tcalendar.add(Calendar.HOUR, (-3));\n\t\tfechaSistema = calendar.getTime();\n\t\treturn fechaSistema;\n\t}", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "public GregorianCalendar getCalendar() {\r\n return new GregorianCalendar(this.year, this.month - 1, this.day);\r\n }", "public StockDate GetCalendar()\r\n\t{\r\n\t\treturn date;\r\n\t}", "private Calendar createCalendar() {\n Calendar cal = Calendar.getInstance();\n\n // clear all aspects of the time that are not used\n cal.set(Calendar.MILLISECOND, 0);\n\n return cal;\n }", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "public Calendar getDate() {\n\treturn date;\n }", "public static void updateCalendar() {\n time = Calendar.getInstance();\n hour = time.get(Calendar.HOUR_OF_DAY);\n minute = time.get(Calendar.MINUTE);\n day = time.get(Calendar.DAY_OF_MONTH);\n month = time.get(Calendar.MONTH) + 1; \n year = time.get(Calendar.YEAR);\n\n }", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public JCalendar() {\r\n init();\r\n resetToDefaults();\r\n }", "public void initCalendarFirst() {\n getCurrentDate();\n mCalendar.setOnDateChangedListener(new OnDateSelectedListener() {\n @Override\n public void onDateSelected(@NonNull MaterialCalendarView widget, @NonNull CalendarDay select, boolean selected) {\n mSelectedDate = select.toString();\n String string[] = mSelectedDate.split(\"\\\\{|\\\\}\");\n String s = string[1]; //2017-8-14\n String string1[] = s.split(\"-\");\n int tempMonth = Integer.parseInt(string1[1]);\n String month = Integer.toString(tempMonth + 1);\n mDate1 = string1[0] + \"-\" + month + \"-\" + string1[2];\n }\n });\n }", "Calendar getDepartureDateAndTime();", "private void getIntialCalender() {\n\n\t\ttry {\n\n\t\t\tc = Calendar.getInstance();\n\t\t\tString[] fields = Global_variable.str_booking_date.split(\"[-]\");\n\n\t\t\tString str_year = fields[0];\n\t\t\tString str_month = fields[1];\n\t\t\tString str_day = fields[2];\n\n\t\t\tSystem.out.println(\"!!!!\" + fields[0]);\n\t\t\tSystem.out.println(\"!!!!\" + fields[1]);\n\t\t\tSystem.out.println(\"!!!!!\" + fields[2]);\n\n\t\t\tif (str_year.length() != 0) {\n\t\t\t\tyear = Integer.parseInt(str_year);\n\t\t\t} else {\n\t\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\t}\n\n\t\t\tif (str_month.length() != 0) {\n\t\t\t\tmonth = Integer.parseInt(str_month) - 1;\n\t\t\t} else {\n\t\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\t}\n\n\t\t\tif (str_year.length() != 0) {\n\t\t\t\tday = Integer.parseInt(str_day);\n\t\t\t} else {\n\t\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t}\n\n\t\t\tString[] fields1 = Global_variable.str_booking_time.split(\"[:]\");\n\n\t\t\tString str_hour = fields1[0];\n\t\t\tString str_minutes = fields1[1];\n\n\t\t\tSystem.out.println(\"!!!!!\" + fields1[0]);\n\t\t\tSystem.out.println(\"!!!!!\" + fields1[1]);\n\n\t\t\tif (str_hour.length() != 0) {\n\t\t\t\thour = Integer.parseInt(str_hour);\n\t\t\t} else {\n\t\t\t\thour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t}\n\n\t\t\tif (str_minutes.length() != 0) {\n\t\t\t\tminutes = Integer.parseInt(str_minutes);\n\t\t\t} else {\n\t\t\t\tminutes = c.get(Calendar.MINUTE);\n\t\t\t}\n\n\t\t\tcurrDate = new java.sql.Date(System.currentTimeMillis());\n\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\tCalendar c1 = Calendar.getInstance();\n\t\t\tc1.setTime(new Date()); // Now use today date.\n\t\t\tc1.add(Calendar.DATE, 30); // Adding 30 days\n\t\t\toutput = sdf.format(c1.getTime());\n\t\t\tSystem.out.println(\"!!!!!!!!!!!!!!!\" + output);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "Calendar registeredAt();", "@Override\n\tpublic Calendar getDate(){\n\t\treturn date;\n\t}", "private Calendar setAssignmentDeadlineCalendar() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HHmm\");\n Date date = null;\n try {\n date = sdf.parse(assignmentDeadline);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Calendar assignmentDeadlineCalendar = Calendar.getInstance();\n assignmentDeadlineCalendar.setTime(date);\n return assignmentDeadlineCalendar;\n }", "public static Calendar getCalendar(Date date) {\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tif (date != null) {\r\n\t\t\tcal.setTime(date);\r\n\t\t} else {\r\n\t\t\tcal.setTime(new Date());\r\n\t\t}\r\n\t\treturn cal;\r\n\t}", "public void setDay(Calendar cal) {\n this.cal = (Calendar) cal.clone();\n }", "private Calendar modificarHoraReserva(Date horaInicio, int hora) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(horaInicio);\n calendar.set(Calendar.HOUR, hora);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.MINUTE, 0);\n return calendar;\n }", "public static Calendar convertToExchCal(Calendar cal) {\r\n long timeInMillis = cal.getTimeInMillis();\r\n Calendar exchCal = Calendar.getInstance(DTConstants.EXCH_TIME_ZONE);\r\n exchCal.clear();\r\n exchCal.setTimeInMillis(timeInMillis);\r\n return exchCal;\r\n }", "@Test\n public void getterCalendar(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n Assert.assertEquals(2018,calendar.getYear());\n Assert.assertEquals(4,calendar.getMonth());\n Assert.assertEquals(25,calendar.getDayOfMonth());\n }", "public java.util.Calendar getFechaPago() {\n return fechaPago;\n }", "public static Calendar dateToCalendar(Date dteStart, TimeZone tz) {\r\n Calendar cal = Calendar.getInstance(tz);\r\n cal.clear();\r\n int year = dteStart.getYear() + 1900;\r\n int month = dteStart.getMonth();\r\n DateFormat formatter = new SimpleDateFormat(\"dd\");\r\n String strDay = formatter.format(dteStart);\r\n int day = Integer.parseInt(strDay);\r\n int hrs = dteStart.getHours();\r\n int min = dteStart.getMinutes();\r\n int secs = dteStart.getSeconds();\r\n cal.set(Calendar.YEAR, year);\r\n cal.set(Calendar.MONTH, month);\r\n cal.set(Calendar.DAY_OF_MONTH, day);\r\n cal.set(Calendar.HOUR_OF_DAY, hrs);\r\n cal.set(Calendar.MINUTE, min);\r\n cal.set(Calendar.SECOND, secs);\r\n return cal;\r\n }", "public Calendar() {\n initComponents();\n }", "public static Calendar getCalender(Date date) {\n\n Calendar calendar = Calendar.getInstance();\n\n if (date != null) {\n long millis = date.getTime();\n calendar.setTimeInMillis(millis);\n }\n\n return calendar;\n }", "public Calendar getCurrentCalendar()\n {\n return this.currentCalendar;\n }", "public jkt.hrms.masters.business.MstrCalendar getCalendar () {\n\t\treturn calendar;\n\t}", "public void fechahoy(){\n Date fecha = new Date();\n \n Calendar c1 = Calendar.getInstance();\n Calendar c2 = new GregorianCalendar();\n \n String dia = Integer.toString(c1.get(Calendar.DATE));\n String mes = Integer.toString(c2.get(Calendar.MONTH));\n int mm = Integer.parseInt(mes);\n int nmes = mm +1;\n String memes = String.valueOf(nmes);\n if (nmes < 10) {\n memes = \"0\"+memes;\n }\n String anio = Integer.toString(c1.get(Calendar.YEAR));\n \n String fechoy = anio+\"-\"+memes+\"-\"+dia;\n \n txtFecha.setText(fechoy);\n \n }", "Calendar getTimeStamp();", "public static Calendar dateToCalendar(Date date){ \r\n Calendar cal = Calendar.getInstance();\r\n cal.setTime(date);\r\n return cal;\r\n }", "public Entry(Calendar date){\n this.date = date; \n }", "public Fecha () {\n\t\tthis.ahora = Calendar.getInstance();\n\t\tahora.set(2018, 3, 1, 15, 15, 0);\t \n\t\taño = ahora.get(Calendar.YEAR);\n\t\tmes = ahora.get(Calendar.MONTH) + 1; // 1 (ENERO) y 12 (DICIEMBRE)\n\t\tdia = ahora.get(Calendar.DAY_OF_MONTH);\n\t\thr_12 = ahora.get(Calendar.HOUR);\n\t\thr_24 = ahora.get(Calendar.HOUR_OF_DAY);\n\t\tmin = ahora.get(Calendar.MINUTE);\n\t\tseg = ahora.get(Calendar.SECOND);\n\t\tam_pm = v_am_pm[ahora.get(Calendar.AM_PM)]; //ahora.get(Calendar.AM_PM)=> 0 (AM) y 1 (PM)\n\t\tmes_nombre = v_mes_nombre[ahora.get(Calendar.MONTH)];\n\t\tdia_nombre = v_dia_nombre[ahora.get(Calendar.DAY_OF_WEEK) - 1];\n\n\t}", "public Calendar getDate() {\r\n\t\treturn date;\r\n\t}", "public Calendar getCalendar() {\n return _iborIndex.getCalendar();\n }", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public static Calendar getCalendar(Date date) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n return cal;\n }", "public Calendar getDate() {\r\n return (Calendar) selectedDate;\r\n }", "private Date calendarToDate(Calendar calendar) {\n return (Date) calendar.getTime();\n }", "public java.util.Calendar getDate() {\n return date;\n }", "public java.util.Calendar getDate() {\n return date;\n }", "public Calendar getArchivalDate();", "public Calendar getDateTime() {\n return dateTime;\n }", "public BwCalendar getMeetingCal() {\n return meetingCal;\n }", "public CalendarioFecha obtenerPorEvento(Evento evento) throws Exception { \n\t \n\t\t CalendarioFecha datos = new CalendarioFecha(); \n\t\t Session em = sesionPostgres.getSessionFactory().openSession(); \t\n\t try { \t\n\t\t datos = (CalendarioFecha) em.createCriteria(CalendarioFecha.class).add(Restrictions.eq(\"evento\", evento))\n\t\t \t\t.add(Restrictions.eq(\"activo\", true)).uniqueResult(); \n\t } catch (Exception e) { \n\t \n\t throw new Exception(e.getMessage(),e.getCause());\n\t } finally { \n\t em.close(); \n\t } \n\t \n\t return datos; \n\t}", "public void Inicializa_fecha() {\n\n\t\tfecha = (EditText) findViewById(R.id.fecha);\n\t\tfecha.setClickable(true);\n\t\tfecha.setOnClickListener(this);\n\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tyear = c.get(Calendar.YEAR);\n\t\tmonth = c.get(Calendar.MONTH);\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\n\t}", "public Calendar getDate() {\n\t\treturn date;\n\t}", "public Date obterHrEnt1Turno(){\n \ttxtHrEnt1Turno.setEditable(true);\n txtHrSai1Turno.setEditable(false);\n txtHrEnt2Turno.setEditable(false);\n txtHrSai2Turno.setEditable(false);\n \ttxtHrEnt1TurnoExt.setEditable(false);\n txtHrSai1TurnoExt.setEditable(false);\n txtHrEnt2TurnoExt.setEditable(false);\n txtHrSai2TurnoExt.setEditable(false);\n\n return new Date();\n }", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_kalendar);\r\n\r\n kalendar = (CompactCalendarView) findViewById(R.id.compactcalendar_view);\r\n kalendar.setUseThreeLetterAbbreviation(true);\r\n\r\n Event proba = new Event(Color.BLUE,1496847600,\"Krule casti\");\r\n kalendar.addEvent(proba);\r\n\r\n kalendar.setListener(new CompactCalendarView.CompactCalendarViewListener() {\r\n @Override\r\n public void onDayClick(Date dateClicked) {\r\n Context context = getApplicationContext();\r\n\r\n //if(dateClicked.toString().compareTo(\"Wed\")){}\r\n Toast.makeText(context,\"Nece\",Toast.LENGTH_LONG).show();\r\n }\r\n\r\n @Override\r\n public void onMonthScroll(Date firstDayOfNewMonth) {\r\n\r\n }\r\n });\r\n }", "public Calendar() {\n\t\tthis(() -> LocalDateTime.now());\n\t}", "public static String CalendarToString(Calendar fecha, String formato)\n throws Exception {\n if (nullToBlank(fecha).equals(\"\")) {\n return \"\";\n }\n SimpleDateFormat df = new SimpleDateFormat(formato);\n return df.format(fecha.getTime());\n }", "public Calendar getDate() {\n\n\t\treturn _date;\n\t}", "public void setCal(Calendar cal) {\n\t\tthis.year = (short) cal.get(Calendar.YEAR);\r\n\t\tthis.month = (byte) (cal.get(Calendar.MONTH)+1);\r\n\t\tthis.day = (byte) cal.get(Calendar.DAY_OF_MONTH);\r\n\t\tthis.hh = (byte) cal.get(Calendar.HOUR_OF_DAY);\r\n\t\tthis.mm = (byte) cal.get(Calendar.MINUTE);\r\n\t\tthis.ss = (byte) cal.get(Calendar.SECOND);\r\n\t}", "private String getDateString(Calendar cal) {\n Calendar current = Calendar.getInstance();\n String date = \"\";\n if (cal.get(Calendar.DAY_OF_YEAR) == current.get(Calendar.DAY_OF_YEAR)) {\n date = getResources().getString(R.string.content_today) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else if ((cal.get(Calendar.DAY_OF_YEAR) - 1) == current.get(Calendar.DAY_OF_YEAR)) {\n date = getResources().getString(R.string.content_yesterday) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else if ((cal.get(Calendar.DAY_OF_YEAR) - 2) == current.get(Calendar.DAY_OF_YEAR)\n && getResources().getConfiguration().locale.equals(new Locale(\"vn\"))) {\n date = getResources().getString(R.string.content_before_yesterday) + String.format(\" %02d:%02d\", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n } else {\n date = String.format(\"%02d-%02d-%02d %02d:%02d\", mCal.get(Calendar.DAY_OF_MONTH), mCal.get(Calendar.MONTH) + 1, mCal.get(Calendar.YEAR), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));\n }\n\n return date;\n }", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "private static Calendar createCalendar(int year, int month, int date) {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setLenient(false);\r\n\t\tcalendar.set(Calendar.YEAR, year);\r\n\t\tcalendar.set(Calendar.MONTH, month - 1);\r\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, date);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\treturn calendar;\r\n\t}" ]
[ "0.7312098", "0.7121174", "0.67624426", "0.65891796", "0.65891796", "0.6568161", "0.6549895", "0.64818615", "0.64818615", "0.62880856", "0.6250389", "0.6237886", "0.6232245", "0.62207556", "0.6208441", "0.6166585", "0.61167306", "0.6090202", "0.60796565", "0.60231805", "0.6016116", "0.6014875", "0.60112077", "0.5970159", "0.59685886", "0.5963197", "0.5947789", "0.5917188", "0.59079623", "0.58953696", "0.58816165", "0.5874105", "0.5868804", "0.5843385", "0.5808446", "0.5796462", "0.57878554", "0.5784913", "0.57830846", "0.5782909", "0.57617867", "0.5759311", "0.57493883", "0.5729293", "0.5668842", "0.5658633", "0.56583685", "0.565555", "0.5649897", "0.5640374", "0.56399745", "0.5635002", "0.55947906", "0.5586506", "0.55830467", "0.5578104", "0.5562812", "0.5558476", "0.5538441", "0.5521424", "0.55205405", "0.55195343", "0.55056006", "0.55052096", "0.5499989", "0.5495107", "0.5492386", "0.5474694", "0.5461731", "0.5460962", "0.5451542", "0.5446464", "0.5439064", "0.5437317", "0.5433738", "0.5429927", "0.5428399", "0.5418435", "0.5416597", "0.54134744", "0.54088104", "0.5395931", "0.53934073", "0.53934073", "0.53832173", "0.5359208", "0.5355411", "0.535329", "0.5333861", "0.53337604", "0.53021556", "0.5299692", "0.52889544", "0.52726656", "0.52720386", "0.52683824", "0.5263826", "0.525691", "0.5253641", "0.52468675" ]
0.6787967
2
Realiza la consulta que obtiene todas las notas con fecha de hoy
public static ParseQuery consultarNotasDeHoy(){ ParseQuery queryNotasHoy = new ParseQuery("Todo"); Calendar cal = getFechaHoy(); cal.set(Calendar.HOUR, 0); cal.set(Calendar.MINUTE,0); cal.set(Calendar.SECOND,0); Date min = cal.getTime(); cal.set(Calendar.HOUR, 23); cal.set(Calendar.MINUTE,59); cal.set(Calendar.SECOND,59); Date max= cal.getTime(); queryNotasHoy.whereGreaterThanOrEqualTo("Fecha", min); queryNotasHoy.whereLessThan("Fecha", max); return queryNotasHoy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public static ParseQuery consultarNotasAyer(){\n\n ParseQuery queryNotasAyer = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n Date hoy= cal.getTime();\n cal.add(Calendar.DAY_OF_MONTH, -1);\n Date ayer = cal.getTime();\n\n queryNotasAyer.whereLessThanOrEqualTo(\"Fecha\", hoy);\n queryNotasAyer.whereGreaterThan(\"Fecha\", ayer);\n\n return queryNotasAyer;\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultaporfecha(String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static ArrayList <FichajeOperarios> obtenerFichajeOperarios(Date fecha) throws SQLException{\n Connection conexion=null;\n Connection conexion2=null;\n ResultSet resultSet;\n PreparedStatement statement;\n ArrayList <FichajeOperarios> FichajeOperarios=new ArrayList();\n Conexion con=new Conexion();\n\n //java.util.Date fecha = new Date();\n \n //para saber la fecha actual\n Date fechaActual = new Date();\n DateFormat formatoFecha = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n //System.out.println(formatoFecha.format(fechaActual));\n \n try {\n\n conexion = con.connecta();\n\n\n statement=conexion.prepareStatement(\"select codigo,nombre,HORA_ENTRADA,centro from \"\n + \" (SELECT op.codigo,op.nombre,F2.FECHA AS FECHA_ENTRADA,F2.HORA AS HORA_ENTRADA,F2.FECHA+f2.HORA AS FICHA_ENTRADA,centro.DESCRIP as CENTRO,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno order by f22.recno) AS FECHA_SALIDA,\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) AS HORA_SALIDA,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno)+\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) as FICHA_SALIDA \"\n + \" FROM E001_OPERARIO as op left join e001_fichajes2 as f2 on op.codigo=f2.OPERARIO and f2.tipo='E' JOIN E001_centrost as centro on f2.CENTROTRAB=centro.CODIGO \"\n + \" WHERE F2.FECHA='\"+formatoFecha.format(fecha)+\"' and f2.HORA=(select max(hora) from e001_fichajes2 as f22 where f2.operario=f22.operario and f22.tipo='e' and f22.FECHA=f2.FECHA)) as a\"\n + \" where FICHA_SALIDA is null \"\n + \" ORDER BY codigo\");\n \n resultSet = statement.executeQuery();\n while (resultSet.next()) {\n FichajeOperarios fiop=new FichajeOperarios(); \n fiop.setCodigo(resultSet.getString(\"CODIGO\"));\n fiop.setNombre(resultSet.getString(\"NOMBRE\"));\n fiop.setHora_Entrada(resultSet.getString(\"HORA_ENTRADA\"));\n //fiop.setHora_Salida(resultSet.getString(\"HORA_SALIDA\"));\n fiop.setCentro(resultSet.getString(\"CENTRO\"));\n FichajeOperarios.add(fiop);\n }\n \n } catch (SQLException ex) {\n System.out.println(ex);\n \n }\n return FichajeOperarios;\n \n \n }", "public java.sql.ResultSet consultaporespecialidadhorafecha(String CodigoEspecialidad,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public ArrayList<TicketDto> consultarVentasChance(String fecha, String moneda) {\n ArrayList<TicketDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,sum(vrl_apuesta) \"\n + \"FROM ticket\"\n + \" where \"\n + \" fecha='\" + fecha + \"' and moneda='\" + moneda + \"' group by codigo\";\n\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n TicketDto dto = new TicketDto();\n dto.setCodigo(rs.getString(1));\n dto.setValor(rs.getInt(2));\n dto.setMoneda(moneda);\n lista.add(dto);\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }", "public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }", "public List<SpasaCRN> obtenerSpasaFiltros() {\n\n if (conectado) {\n try {\n String bool = \"false\";\n List<SpasaCRN> filtrosCRNs = new ArrayList();\n\n String Query = \"SELECT * FROM `spasa_filtros` WHERE anio = YEAR(NOW()) AND ciclo = CURRENT_CICLO() ;\";\n Logy.mi(\"Query: \" + Query);\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n while (resultSet.next()) {\n\n SpasaCRN crn = new SpasaCRN();\n SpasaMateria mat = new SpasaMateria();\n crn.setCodigoProf(resultSet.getString(\"usuario\")); //modificado ahora que se cambio in a String\n crn.setCrnCpr(resultSet.getString(\"crn\"));\n String mc = resultSet.getString(\"materia_cod\");\n if (mc != null && !mc.isEmpty() && !mc.equals(\"null\")) {\n crn.setMateriaRuta(mc);\n mat.setMateriaRuta(mc);\n }\n String m = resultSet.getString(\"materia_nom\");\n if (m != null && !m.isEmpty() && !m.equals(\"null\")) {\n mat.setNombreMat(m);\n }\n String d = resultSet.getString(\"departamento_nom\");\n if (d != null && !d.isEmpty() && !d.equals(\"null\")) {\n mat.setNombreDepto(d);\n }\n String dia = resultSet.getString(\"dia\");\n if (dia != null && !dia.isEmpty() && !dia.equals(\"null\")) {\n crn.setDiaHr(dia);\n }\n String h = resultSet.getString(\"hora\");\n if (h != null && !h.isEmpty() && !h.equals(\"null\")) {\n crn.setHiniHr(h);\n }\n crn.setMateria(mat);\n filtrosCRNs.add(crn);\n }\n\n return filtrosCRNs;\n\n } catch (SQLException ex) {\n Logy.me(\"No se pudo consultar tabla spasa_filtros : \" + ex.getMessage());\n return null;\n }\n } else {\n Logy.me(\"No se ha establecido previamente una conexion a la DB\");\n return null;\n }\n }", "public java.sql.ResultSet consultaporespecialidadhora(String CodigoEspecialidad,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public List<Requisicion> getRequisicionesNoAutorizadas() throws Exception{\n \n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n String miSql = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento where r.AUTORIZADO = 1\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n \n Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n requisicion.add(temporal);\n }\n \n return requisicion;\n \n }", "@Override\n\tpublic ArrayList<VOFactura> getAllFacturasByDate(Calendar fechaDesde,\n\t\t\tCalendar fechaHasta) {\n\t\t\n\t\tSystem.out.println(\"@DAOFACTURAS: getallfacturasbydate!\");\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\tVOFactura factura;\n\t\tArrayList<VOFactura> listaFacturas = new ArrayList<VOFactura>();\n\t\t\n\t\tjava.sql.Date sqlDesde = new java.sql.Date(fechaDesde.getTimeInMillis());\n\t\tjava.sql.Date sqlHasta = new java.sql.Date(fechaHasta.getTimeInMillis());\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT * FROM factura fac\"+\n\t\t\t\" WHERE fac.facfecha >= '\"+sqlDesde+\"' \"+\n\t\t\t\" AND fac.facfecha < '\"+sqlHasta+\"' \";\n\t\t\tres = stm.executeQuery(sql);\n\n\t\t\tSystem.out.println(\"comparando fechas sql: \"+sql);\n\t\t\t\n\t\t\twhile(res.next()) {\n\t\t\t\tfactura = new VOFactura();\n\t\t\t\tfactura.setId(res.getInt(1));\n\t\t\t\tfactura.setNumero(res.getInt(2));\n\t\t\t\tfactura.setIdCliente(res.getInt(3));\n\t\t\t\tCalendar fecha = Calendar.getInstance();\n\t\t\t\tfecha.setTimeInMillis(res.getDate(4).getTime());\n\t\t\t\tfactura.setFecha(fecha);\n\t\t\t\tfactura.setValorNeto(res.getBigDecimal(5));\n\t\t\t\tfactura.setValorIva(res.getBigDecimal(6));\n\t\t\t\tfactura.setValorTotal(res.getBigDecimal(7));\n\t\t\t\t\n\t\t\t\tlistaFacturas.add(factura);\n\t\t\t}\n\n\t\t\treturn listaFacturas;\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "public java.sql.ResultSet consultaporhora(String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "@Override\n\tpublic ArrayList<VOFactura> getAllFacturasByClienteDate(VOCliente cliente,\n\t\t\tCalendar fechaDesde, Calendar fechaHasta) {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\tVOFactura factura;\n\t\tArrayList<VOFactura> listaFacturas = new ArrayList<VOFactura>();\n\t\t\n\t\tjava.sql.Date sqlDesde = new java.sql.Date(fechaDesde.getTimeInMillis());\n\t\tjava.sql.Date sqlHasta = new java.sql.Date(fechaHasta.getTimeInMillis());\n\t\t\n\t\t try {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT * FROM factura fac\"+\n\t\t\t\" WHERE fac.facfecha >= '\"+sqlDesde+\"' \"+\n\t\t\t\" AND fac.facfecha < '\"+sqlHasta+\"' \"+\n\t\t\t\" AND fac.cliente_cliid = \"+cliente.getId()+\"\";\n\t\t\tres = stm.executeQuery(sql);\n\n\t\t\tSystem.out.println(\"comparando fechas sql: \"+sql);\n\n\t\t\twhile(res.next()) {\n\t\t\t\tfactura = new VOFactura();\n\t\t\t\tfactura.setId(res.getInt(1));\n\t\t\t\tfactura.setNumero(res.getInt(2));\n\t\t\t\tfactura.setIdCliente(res.getInt(3));\n\t\t\t\tCalendar fecha = Calendar.getInstance();\n\t\t\t\tfecha.setTimeInMillis(res.getDate(4).getTime());\n\t\t\t\tfactura.setFecha(fecha);\n\t\t\t\tfactura.setValorNeto(res.getBigDecimal(5));\n\t\t\t\tfactura.setValorIva(res.getBigDecimal(6));\n\t\t\t\tfactura.setValorTotal(res.getBigDecimal(7));\n\t\t\t\t\n\t\t\t\tlistaFacturas.add(factura);\n\t\t\t}\n\n\t\t\treturn listaFacturas;\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public List<Reporte> select(Long fechaInicio, Long fechaFin , int tipoReporte) {\r\n long startTime = System.currentTimeMillis(); //todo: reeplazar System.currentTimeMillis() por SystemClock.uptimeMillis()\r\n\r\n SQLiteDatabase db = sqLiteService.getWritableDatabase();\r\n\r\n Cursor resourse = db.rawQuery(\"\",null); // FIXME\r\n\r\n switch(tipoReporte){\r\n\r\n case 1:\r\n Log.w(\"Reporte\",\"Los mas vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos DESC LIMIT 0,10) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n break;\r\n\r\n case 2:\r\n Log.w(\"Reporte\",\"Los menos vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos ASC LIMIT 0,10) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n break;\r\n\r\n case 3:\r\n\r\n Log.w(\"Reporte\",\"Ganancias\");\r\n\r\n resourse = db.rawQuery(\"SELECT * \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (SELECT it.id_articulo, SUM(importe_total) AS Venta,SUM(cantidad) AS Vendidos ,SUM((it.importe_total - (it.cantidad * it.precio_compra))) AS Ganancia, it.precio_compra AS PrecioCompra \" +\r\n \" FROM Items_Ticket AS it INNER JOIN Tickets AS t ON it.id_ticket = t.id_ticket \" +\r\n \" WHERE t.id_tipo_ticket = 1 AND t.timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" GROUP BY it.id_articulo , it.precio_compra\" +\r\n \" ORDER BY Vendidos DESC ) AS Calculo \" +\r\n \" WHERE VA.id_articulo = Calculo.id_articulo\",null);\r\n /*/////////////////////////////Old reporte ganancias/////////////////////////////////\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos DESC ) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n *////////////////////////////////////////////////////////////////////////////////////\r\n break;\r\n\r\n case 4:\r\n Log.w(\"Reporte\",\"Garnel top mas vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos ASC ) AS Productos \" +\r\n \" WHERE VA.id_articulo = Productos.id_articulo\" +\r\n \" AND granel = 1\", null);\r\n break;\r\n\r\n case 5:\r\n Log.w(\"Reporte\", \"Cash Closing\");\r\n final String sql = \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha,\\n\" +\r\n \"\\n\" +\r\n \" a.id_usuario, b.nombre As Nombre_Usuario, 'Saldo Inicial' As Concepto, a.importe_real As Cantidad, strftime('%H:%M:%S', a.fecha_apertura) As Hora, 1 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Registro_apertura a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) a\\n\" +\r\n \"\\n\" +\r\n \"Union\\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Entradas de dinero' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 2 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) b\\n\" +\r\n \"\\n\" +\r\n \"Union \\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Salidas de dinero' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 3 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) c\\n\" +\r\n \"\\n\" +\r\n \"Union \\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Ventas en efectivo' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 4 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) d \\n\" +\r\n \"\\n\" +\r\n \"Union\\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.fecha_cierre, 'unixepoch', 'localtime')) As Fecha,\\n\" +\r\n \"\\n\" +\r\n \" a.id_usuario, b.nombre As Nombre_Usuario, 'Total en caja al cierre' As Concepto, 10.0 As Cantidad, '06:00 PM' As Hora, 5 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Registro_cierre a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) e\\n\" +\r\n \"\\n\" +\r\n \"Order By Orden asc\";\r\n resourse = db.rawQuery(sql, null);\r\n\r\n break;\r\n// case 6:String sql = Log.w(\"Reporte\", \"Specific row report\");\r\n// final String sql = \"\"\r\n\r\n }\r\n\r\n List<Reporte> reportes = new ArrayList<>();\r\n Reporte reporte ;\r\n\r\n if(tipoReporte == 5) {\r\n while(resourse.moveToNext()){\r\n reporte = new Reporte();\r\n reporte.setFecha(resourse.getString(0));\r\n reporte.setIdUsuario(resourse.getInt(1));\r\n reporte.setNombreUsuario(resourse.getString(2));\r\n reporte.setConcepto(resourse.getString(3));\r\n reporte.setCantidad(resourse.getString(4));\r\n reporte.setHora(resourse.getString(5));\r\n reporte.setOrden(resourse.getInt(6));\r\n Log.w(\"REPORTE\", Utils.pojoToString(reporte));\r\n reportes.add(reporte);\r\n }\r\n\r\n } else {\r\n while(resourse.moveToNext()){\r\n reporte = new Reporte();\r\n\r\n reporte.setIdArticulo(resourse.getInt(0));\r\n reporte.setIdCentral(resourse.getInt(1));\r\n reporte.setPrecioBase(resourse.getDouble(2));\r\n if(tipoReporte != 3) {\r\n reporte.setPrecioCompra(resourse.getDouble(3));\r\n }else{\r\n reporte.setPrecioCompra(resourse.getDouble(15));\r\n }\r\n reporte.setCodigoBarras(resourse.getString(4));\r\n reporte.setNombreArticulo(resourse.getString(5));\r\n reporte.setNombreMarca(resourse.getString(6));\r\n reporte.setPresentacion(resourse.getString(7));\r\n reporte.setContenido(resourse.getInt(8));\r\n reporte.setUnidad(resourse.getString(9));\r\n reporte.setGranel(resourse.getInt(10) != 0);\r\n reporte.setVenta(resourse.getDouble(12));\r\n reporte.setVendidos(resourse.getDouble(13));\r\n reporte.setGanancia(resourse.getDouble(14));\r\n Log.w(\"REPORTE\", Utils.pojoToString(reporte));\r\n reportes.add(reporte);\r\n }\r\n\r\n }\r\n\r\n resourse.close();\r\n db.close();\r\n\r\n executionTime = System.currentTimeMillis() - startTime;\r\n\r\n if (reportes.size() <= 0){\r\n return null;\r\n }\r\n\r\n return reportes;\r\n }", "public List<ExistenciaMaq> buscarExistencias(final Producto producto,final Date fecha);", "public ArrayList<Note> pedirTodasLasNotas(){\n ArrayList<Note> todasLasNotas = new ArrayList<>();\n Note nota;\n HashMap<Integer,String> misNotas = new HashMap<Integer,String>();\n ArrayList<String> tituloTratamiento = new ArrayList<String>();\n String[] campos = {\"_id\",\"titulo\",\"fecha\"};\n Cursor c = db.query(\"nota\",campos,null,null,null,null,null);\n if(c.moveToFirst()){\n\n do{\n nota = new Note();\n nota.setId(c.getInt(0));\n nota.setTitulo(c.getString(1));\n nota.setFechaFormateada(c.getString(2));\n todasLasNotas.add(nota);\n }while(c.moveToNext());\n return todasLasNotas;\n }\n\n return todasLasNotas;\n\n }", "public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "public static ArrayList<Actividad> selectActividadesInforme(String login, String fechaI, String fechaF) throws ParseException {\n //Comprobar que la fecha de Inicio no es posterior a hoy\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date fechaIU = formatter.parse(fechaI);\n Date hoy = Calendar.getInstance().getTime();\n if (fechaIU.compareTo(hoy) > 0) {\n return null;\n } else {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n //Selecciona actividades de fase de proyectos \"En Curso\" de determinado usuario;\n String query = \"SELECT * FROM Actividades a,Fases f,Proyectos p WHERE a.idFase=f.id AND f.idProyecto=p.id AND p.estado='E' AND a.login=?\";\n ArrayList<Actividad> actividades = new ArrayList<Actividad>();\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, login);\n rs = ps.executeQuery();\n while (rs.next()) {\n String fechaInicio = String.format(\"%04d-%02d-%02d\", rs.getInt(8), rs.getInt(7), rs.getInt(6));\n String fechaFin = String.format(\"%04d-%02d-%02d\", rs.getInt(11), rs.getInt(10), rs.getInt(9));\n\n Actividad a = new Actividad(rs.getInt(1), login, rs.getString(3), rs.getString(4), rs.getInt(5), fechaInicio, fechaFin, rs.getInt(12), rs.getString(13).charAt(0), rs.getInt(14));\n\n //Comprobar si la actividad obtenida está entre el rango de fechas introducido por el usuario\n if (comprobarFechaEntreFechas(fechaI, fechaF, a)) {\n actividades.add(a);\n }\n }\n rs.close();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return actividades;\n }\n }", "public java.sql.ResultSet consultapormedicohorafecha(String CodigoMedico,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public ArrayList<AnuncioDTO> ObtenerAnunciosUsuario(String email){\n ArrayList<AnuncioDTO> ret = new ArrayList<AnuncioDTO>();\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getByEmailPropietario.Anuncio\"));\n ps.setString(1, email);\n ResultSet rs=ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas = null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n }\n ArrayList<String> destinatarios= ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "public ArrayList<ServicioDTO> consultarServicios(String columna, String informacion) throws Exception {\r\n ArrayList<ServicioDTO> dtos = new ArrayList<>();\r\n conn = Conexion.generarConexion();\r\n String sql = \"\";\r\n if (columna.equals(\"nom\")) \r\n sql = \" WHERE SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ?\";\r\n else if (columna.equals(\"cod\"))\r\n sql = \" WHERE SerCodigo = ? \";\r\n if (conn != null) {\r\n PreparedStatement stmt = conn.prepareStatement(\"SELECT SerCodigo, \"\r\n + \"SerNombre, SerCaracter, SerNotas, SerHabilitado \"\r\n + \"FROM tblservicio\" + sql);\r\n if (columna.equals(\"cod\")) {\r\n stmt.setString(1, informacion);\r\n } else if (columna.equals(\"nom\")) {\r\n stmt.setString(1, informacion);\r\n stmt.setString(2, \"%\" + informacion);\r\n stmt.setString(3, informacion + \"%\");\r\n stmt.setString(4, \"%\" + informacion + \"%\");\r\n }\r\n ResultSet rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n ServicioDTO dto = new ServicioDTO();\r\n dto.setCodigo(rs.getInt(1));\r\n dto.setNombre(rs.getString(2));\r\n dto.setCaracter(rs.getString(3));\r\n dto.setNotas(rs.getString(4));\r\n String habilitado = rs.getString(5);\r\n if(habilitado.equals(\"si\"))\r\n dto.setHabilitado(true);\r\n else\r\n dto.setHabilitado(false);\r\n dtos.add(dto);\r\n }\r\n stmt.close();\r\n rs.close();\r\n conn.close();\r\n }\r\n return dtos;\r\n }", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public List<ExistenciaMaq> buscarExistencias(final Long almacenId,final Date fecha);", "@Override\r\n public List<QuestaoDiscursiva> consultarTodosQuestaoDiscursiva()\r\n throws Exception {\n return rnQuestaoDiscursiva.consultarTodos();\r\n }", "public Cliente[] findWhereFechaUltimaVisitaEquals(Date fechaUltimaVisita) throws ClienteDaoException;", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "@Override\n\t/*Método para usarse en el momento de ver las reservas de un determinado usuaario en el panel del mismo*/\n\tpublic String verReservas(String nombreusuario) {\n\t\tGson json= new Gson(); \n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"Select * from alquileres alq, peliculas p where alq.pelicula=p.id and alq.usuario LIKE '\"+nombreusuario+\"' order by p.titulo\"; //Seleccion de los alquileres relacionados con el usuario \n\t\ttry {\n\t\t\t\n\t\t\tArrayList<Alquiler> datos= new ArrayList<Alquiler>(); //ArrayList que va a almacenar los alquileres del usuario\n\t\t\t\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t\n\t\t\t//Se cogen los datos necesarios \n\t\t\twhile(rs.next()) {\n\t\t\t\tString idpelicula=rs.getString(\"id\");\n\t\t\t\tint numero_alquiler=rs.getInt(\"numero_alquiler\");\n\t\t\t\tString fecha=rs.getString(\"fecha_alquiler\");\n\t\t\t\tString titulo= rs.getString(\"titulo\"); \n\t\t\t\tString genero= rs.getString(\"genero\"); \n\t\t\t\tString cadenaestreno=rs.getString(\"estreno\");\n\t\t\t\tString estreno=\"\"; \n\t\t\t\t\n\t\t\t\t//comprobación y asignación del atributo estreno:\n\t\t\t\t/*Como en la base de datos se guarda como una cadena de texto, cuando se devuelve\n\t\t\t\t * hay que comprobar su valor y dependiendo del que sea pasarlo a una cadena para pasarla a la clase \n\t\t\t\t * Alquiler*/\n\t\t\t\t\n\t\t\t\tif(cadenaestreno.equals(\"true\")) {\n\t\t\t\t\testreno=\"Si\";\n\t\t\t\t}else if(cadenaestreno.equals(\"false\")) {\n\t\t\t\t\testreno=\"No\";\n\t\t\t\t}\n\t\t\t\tAlquiler alquiler=new Alquiler(numero_alquiler,idpelicula,fecha,titulo,genero,estreno); //uso esta clase para poder enviar los datos\n\t\t\t\tdatos.add(alquiler); //añado el alquiler a los datos que se van a devolver\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tst.close();\n\t\treturn json.toJson(datos); //devuelvo la lista de los datos en JSON \n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t}", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\n\t\t\tgetServiceLocator().getHisc_urgencia_odontologicoService()\n\t\t\t\t\t.setLimit(\"limit 25 offset 0\");\n\n\t\t\tList<Hisc_urgencia_odontologico> lista_datos = getServiceLocator()\n\t\t\t\t\t.getHisc_urgencia_odontologicoService().listar(parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Hisc_urgencia_odontologico hisc_urgencia_odontologico : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\thisc_urgencia_odontologico, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }", "public String[][] obtenerConsultas(){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n int i = 0;\n String[][] datos = new String[obtenerRegistros()][5];\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n\n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id;\");\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\"); \n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }", "public ResultSet MostrarCitasClienteHoy(String nif) throws SQLException { // muestra TODAS las citas de HOY\n\t\t\n\t\tString sql = \"SELECT cita.idCita,cita.fechaCita,cita.estadoCita,cliente.nombreCliente,cliente.nifCliente,medico.nombreMedico,sala.idSala,sala.tamanoSala, horas.Hora FROM cita INNER JOIN cliente ON cita.idClienteAux = cliente.idCliente INNER JOIN medico ON cita.idMedicoAux = medico.idMedico INNER JOIN sala ON cita.idSalaAux = sala.idSala INNER JOIN horas ON cita.idHoraAux = horas.idHora WHERE DATE(fechaCita) >= DATE(NOW()) AND cliente.nifCliente = '\"+nif+\"' ORDER BY fechaCita ASC , Hora ASC\"; // sentencia busqueda CITA de cliente Hoy\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // nueva conexion a la bbdd CREARLO EN TODOS LOS METODOS\n\t\t\tst=(Statement) conn.createStatement();\n\t\t\tresultado = st.executeQuery(sql);\n\t\t\t\t//st.close();\n\t\t\t\t//con.close();\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public ArrayList<Cuenta> clientesSinTransacciones(String f1, String f2) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n Date fecha1 = Date.valueOf(f1);\n Date fecha2 = Date.valueOf(f2);\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"select c.Codigo as Codigo, c.Codigo_Cliente as Codigo_Cliente, l.Nombre as Nombre from Cuenta c join Cliente l on c.Codigo_Cliente = l.Codigo where c.Codigo not in (select Codigo_Cuenta from Transaccion where Fecha between ? and ?)\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setDate(1, fecha1);\n PrSt.setDate(2, fecha2);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = new Cuenta();\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n cuenta.setNombre(rs.getString(\"Nombre\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public void reporteIngresosHotel(Date fechaInicial, Date fechaFinal,TablaModelo modeloConsumos, TablaModelo modeloAlojamientos){\n introducirConsumosHotelFechas(fechaInicial, fechaFinal, modeloConsumos);\n introducirPagosALojamientoHotelFechas(fechaInicial, fechaFinal, modeloAlojamientos);\n \n }", "private void cargarNotasAclaratorias() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"tipo\", INotas.NOTAS_ACLARATORIAS);\r\n\t\ttabboxContendor\r\n\t\t\t\t.abrirPaginaTabDemanda(false, \"/pages/nota_aclaratoria.zul\",\r\n\t\t\t\t\t\t\"NOTAS ACLARATORIAS\", parametros);\r\n\t}", "public void getPropuestasOrdenadas(int confirm) throws ParseException{\n System.out.println(\"\\nSe imprimirán las propuestas de la Sala \"+getNombreSala()+\":\");\n if (propuestas.size() == 0){\n System.out.println(\"No hay reservas para esta Sala\");\n }\n else{\n for (Propuesta propuestaF : propuestas) {\n String nombreReservador = propuestaF.getReservador().getNombreCompleto();\n if (confirm == 0){\n if (propuestaF.isForAllSem()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else{\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n else if (confirm == 1){\n if (propuestaF.isForAllSem() && propuestaF.isConfirmada()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else if (propuestaF.isConfirmada()){\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n }\n }\n }", "public Collection<FlujoDetalleDTO> cargarTodos(int codigoFlujo) {\n/* 138 */ Collection<FlujoDetalleDTO> resultados = new ArrayList<FlujoDetalleDTO>();\n/* */ try {\n/* 140 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" order by t.secuencia\";\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/* 178 */ boolean rtaDB = this.dat.parseSql(s);\n/* 179 */ if (!rtaDB) {\n/* 180 */ return resultados;\n/* */ }\n/* 182 */ this.rs = this.dat.getResultSet();\n/* 183 */ while (this.rs.next()) {\n/* 184 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 187 */ catch (Exception e) {\n/* 188 */ e.printStackTrace();\n/* 189 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarTodos \", e);\n/* */ } \n/* 191 */ return resultados;\n/* */ }", "@Override\n\tpublic Collection<LineaComercialClasificacionDTO> consultarLineaComercialClasificacionAsignacionMasivaNoIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,String codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva No Ingresar: {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tBoolean clearCache = Boolean.TRUE;\n\t\tCollection<LineaComercialClasificacionDTO> lineaComercialClasificacionDTOs = new ArrayList<LineaComercialClasificacionDTO>();\n\t\ttry {\n\t\t\tsession = hibernateHLineaComercialClasificacion.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\n\t\t\t\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\" SELECT LC, L, C, CV \");\n\t\t\tquery.append(\" FROM LineaComercialClasificacionDTO LC, LineaComercialDTO L, ClasificacionDTO C, CatalogoValorDTO CV \");\n\t\t\tquery.append(\" WHERE L.id.codigoLineaComercial = LC.codigoLineaComercial \");\n//\t\t\tquery.append(\" AND L.nivel = 0 \");\n\t\t\tquery.append(\" AND L.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND LC.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = '\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion = C.id.codigoClasificacion \");\n\t\tif(!codigoLinCom.equals(\"null\")){\t\n\t\t\tquery.append(\" AND L.id.codigoLineaComercial != \"+codigoLinCom);\n\t\t}\t\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = CV.id.codigoCatalogoValor \");\n\t\t\tquery.append(\" AND L.codigoTipoLineaComercial = CV.id.codigoCatalogoTipo \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion IN ( \");\n\t\t\tif(!nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" AND codigoClasificacionPadre IN( \");\n\t\t\t}\n\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+\" )) \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" \"+codigoClasificacion+\") \");\n\t\t\t}\n\n\t\t\tsqlQuery = hibernateHLineaComercialClasificacion.createQuery(query.toString(), clearCache);\n\t\t\t\n\t\t\t/**\n\t\t\t * aqui se asigna al objeto LineaComercialClasificacionDTO los objetos (ClasificacionDTO,LineaComercialDTO)\n\t\t\t * que nos entrego la consulta por separado\n\t\t\t */\n\t\t\tCollection<Object[]> var = sqlQuery.list();\n\t\t\tfor(Object[] object:var){\n\t\t\t\tLineaComercialClasificacionDTO l=(LineaComercialClasificacionDTO)object[0];\n\t\t\t\tl.setLineaComercial((LineaComercialDTO)object[1]);\n\t\t\t\tl.setClasificacion((ClasificacionDTO)object[2]);\n\t\t\t\tl.getLineaComercial().setTipoLineaComercial((CatalogoValorDTO)object[3]);\n\t\t\t\tlineaComercialClasificacionDTOs.add(l);\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n\t\t\n\t\t\n\t\treturn lineaComercialClasificacionDTOs;\n\t}", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "private void ListDatei () {\n\n DateiMemoDbSource dateiMemoDbSource = new DateiMemoDbSource();\n\n List<DateiMemo> dateiMemoList= dateiMemoDbSource.getAllDateiMemos();\n Log.d(LOG_TAG,\"=============================================================\");\n\n for (int j = 0; j < dateiMemoList.size(); j++){\n String output = \"Node_ID: \"+ dateiMemoList.get(j).getUid() +\n //\"\\n Status: \"+ dateiMemoList.get(j).isChecked() +\n \"\\n Corner Top Right X: \"+ dateiMemoList.get(j).getCornerTopRightX() +\n \"\\n Corner Top Right Y: \"+ dateiMemoList.get(j).getCornerTopRightY() +\n \"\\n Corner Top Left X: \"+ dateiMemoList.get(j).getCornerTopLeftX() +\n \"\\n Corner Top Left Y: \"+ dateiMemoList.get(j).getCornerTopLeftY() +\n \"\\n Corner Bottom Right X: \"+ dateiMemoList.get(j).getCornerBottomRightX() +\n \"\\n Corner Bottom Right Y: \"+ dateiMemoList.get(j).getCornerBottomRightY() +\n \"\\n Corner Bottom Left X: \"+ dateiMemoList.get(j).getCornerBottomLeftX() +\n \"\\n Corner Bottom Left Y: \"+ dateiMemoList.get(j).getCornerBottomLeftY() +\n \"\\n Punkt X: \"+ dateiMemoList.get(j).getPunktX() +\n \"\\n Punkt Y: \"+ dateiMemoList.get(j).getPunktY() +\n \"\\n IP: \"+ dateiMemoList.get(j).getIP() +\n \"\\n Count Peers: \"+ dateiMemoList.get(j).getCountPeers() ;\n\n\n Log.d(LOG_TAG, output);\n\n\n }\n Log.d(LOG_TAG,\"=============================================================\");\n }", "public java.sql.ResultSet consultapormedicofecha(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "private void cargarNotasEnfermeria() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/notas_enfermeria.zul\", \"NOTAS DE ENFERMERIA\",\r\n\t\t\t\tparametros);\r\n\t}", "protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nomepaciente\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public List getChamado(String servico) {\r\n Solicitacoes e = chamadoHandler(servico);\r\n\r\n List<ChamadoEnderecos> consultas = new ArrayList<>();\r\n String sql = \"SELECT DISTINCT\\n\"\r\n + \"\tpid.cod_pid,\\n\"\r\n + \" pid.nome_estabelecimento,\\n\"\r\n + \" endereco.descricao,\\n\"\r\n + \" endereco.numero,\\n\"\r\n + \" endereco.bairro,\\n\"\r\n + \" endereco.complemento,\\n\"\r\n + \" municipio.nome_municipio,\\n\"\r\n + \" municipio.uf,\\n\"\r\n + \" municipio.cod_IBGE,\\n\"\r\n + \" solicitacoes.id_solicitacao\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \"FROM \\n\"\r\n + \"\tpid \\n\"\r\n + \" INNER JOIN contato on \t(pid.cod_pid = contato.PID_cod_pid)\\n\"\r\n + \" INNER JOIN endereco on \t(pid.cod_pid = endereco.PID_cod_pid)\\n\"\r\n + \" INNER JOIN telefone on \t(contato.id_contato = telefone.Contato_id_contato)\\n\"\r\n + \" INNER JOIN municipio on \t(endereco.Municipio_cod_IBGE = municipio.cod_IBGE)\\n\"\r\n + \" INNER JOIN solicitacoes on (pid.cod_pid= solicitacoes.PID_cod_pid)\\n\"\r\n + \" INNER JOIN servico on\t(solicitacoes.Servico_id_servico=servico.id_servico)\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \" WHERE solicitacoes.em_chamado= 3 and servico.id_servico=\" + servico + \";\";\r\n\r\n stmt = null;\r\n rs = null;\r\n \r\n try {\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n while (rs.next()) {\r\n consultas.add(new ChamadoEnderecos(rs.getString(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getString(4),\r\n rs.getString(5),\r\n rs.getString(6),\r\n rs.getString(7),\r\n rs.getString(8),\r\n rs.getString(9),\r\n rs.getString(10)\r\n ));\r\n\r\n }\r\n\r\n } catch (SQLException | ArrayIndexOutOfBoundsException ex) {\r\n Logger.getLogger(SimpleQueries.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return consultas;\r\n }", "private String getFechaLab(int intCodEmp, int intCodLoc){\n String strFecha=\"\"; \n java.sql.Connection conLoc;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n java.sql.Statement stmLoc = conLoc.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.* \";\n strSql+=\" FROM tbm_calCiu as a1 \";\n strSql+=\" INNER JOIN tbm_loc as a2 ON (a1.co_ciu=a2.co_ciu) \";\n strSql+=\" WHERE a2.co_emp=\"+intCodEmp+\" and co_loc=\"+intCodLoc+\" AND CASE WHEN EXTRACT(MONTH from CURRENT_DATE)=12 THEN \";\n strSql+=\" (EXTRACT(YEAR from CURRENT_DATE)+1)=EXTRACT(YEAR from a1.fe_Dia) AND /*MES ENERO JM*/1=EXTRACT(MONTH from a1.fe_Dia) ELSE \";\n strSql+=\" EXTRACT(YEAR from CURRENT_DATE)=EXTRACT(YEAR from a1.fe_Dia) AND (EXTRACT(MONTH from CURRENT_DATE)+1)=EXTRACT(MONTH from a1.fe_Dia) END AND a1.tx_tipDia='L' \";\n strSql+=\" ORDER BY a1.fe_dia ASC\t\";\n strSql+=\" LIMIT 1\";\n \tjava.sql.ResultSet rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n //System.out.println(\"fecha \" + rstLoc.getString(\"fe_dia\"));\n strFecha=objUti.formatearFecha(rstLoc.getString(\"fe_dia\"), \"yyyy-MM-dd\",\"dd/MM/yyyy\" );\n //System.out.println(\"strFecha \" + strFecha);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n }\n conLoc.close();\n conLoc=null;\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch (Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n return strFecha;\n }", "public static ArrayList verTicket (String DNICliente) throws SQLException{\n PreparedStatement query=null;\n ResultSet resultado=null;\n ArrayList <Ticket> listaTickets=new ArrayList();\n try{\n query=Herramientas.getConexion().prepareStatement(\"SELECT * FROM ticket WHERE DNI_cliente=?\");\n query.setString(1, DNICliente);\n resultado=query.executeQuery();\n while(resultado.next()){\n DateTimeFormatter formatoFecha = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n DateTimeFormatter formatoHora = DateTimeFormatter.ofPattern(\"HH:mm\");\n LocalDate fecha=LocalDate.parse(resultado.getString(4),formatoFecha);\n LocalTime hora=LocalTime.parse(resultado.getString(5),formatoHora);\n ArrayList <LineaCompra> lineasT1=new ArrayList();\n Ticket t1=new Ticket(resultado.getInt(1),resultado.getInt(3),fecha,hora,resultado.getDouble(6),lineasT1);\n t1.verLineaTicket();\n listaTickets.add(t1);\n }\n } catch(SQLException ex){\n Herramientas.aviso(\"Ha habido un error al recuperar sus tickets\");\n Excepciones.pasarExcepcionLog(\"Ha habido un error al recuperar sus tickets\", ex);\n } finally{\n resultado.close();\n query.close();\n }\n return listaTickets;\n }", "public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public java.sql.ResultSet consultapormedicohora(String CodigoMedico,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static Estudiante buscarEstudiante(String Nro_de_ID) {\r\n //meter este método a la base de datos\r\n Estudiante est = new Estudiante();\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion establecida!\");\r\n Statement sentencia = conexion.createStatement();\r\n ResultSet necesario = sentencia.executeQuery(\"select * from estudiante where Nro_de_ID ='\" + Nro_de_ID + \"'\");\r\n\r\n while (necesario.next()) {\r\n\r\n String ced = necesario.getString(\"Nro_de_ID\");\r\n String nomb = necesario.getString(\"Nombres\");\r\n String ape = necesario.getString(\"Apellidos\");\r\n String lab = necesario.getString(\"Laboratorio\");\r\n String carr = necesario.getString(\"Carrera\");\r\n String mod = necesario.getString(\"Modulo\");\r\n String mta = necesario.getString(\"Materia\");\r\n String fecha = necesario.getString(\"Fecha\");\r\n String HI = necesario.getString(\"Hora_Ingreso\");\r\n String HS = necesario.getString(\"Hora_Salida\");\r\n\r\n est.setNro_de_ID(ced);\r\n est.setNombres(nomb);\r\n est.setApellidos(ape);\r\n est.setLaboratorio(lab);\r\n est.setCarrera(carr);\r\n est.setModulo(mod);\r\n est.setMateria(mta);\r\n est.setFecha(fecha);\r\n est.setHora_Ingreso(HI);\r\n est.setHora_Salida(HS);\r\n\r\n }\r\n sentencia.close();\r\n conexion.close();\r\n\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n return est;\r\n }", "public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }", "public ArrayList<DTOcomentarioRta> listadoComentarioxComercio(int idComercio) {\n ArrayList<DTOcomentarioRta> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement st = conn.prepareStatement(\" select co.id_comercio, c.id_comentario, c.nombreUsuario, c.descripcion, c.valoracion, c.fecha, co.nombre , r.descripcion, r.fecha, r.id_rta, co.id_rubro\\n\"\n + \" from Comentarios c join Comercios co on c.id_comercio = co.id_comercio\\n\"\n + \" left join Respuestas r on r.id_comentario = c.id_comentario\\n\"\n + \" where co.id_comercio = ?\");\n st.setInt(1, idComercio);\n ResultSet rs = st.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(1);\n int idcomentario = rs.getInt(2);\n String nombreU = rs.getString(3);\n String descripC = rs.getString(4);\n int valoracion = rs.getInt(5);\n String fechaC = rs.getString(6);\n String nombrecomercio = rs.getString(7);\n String descripcionR = rs.getString(8);\n String fechaR = rs.getString(9);\n int idR = rs.getInt(10);\n int rubro = rs.getInt(11);\n\n rubro rf = new rubro(rubro, \"\", true, \"\", \"\");\n comercio come = new comercio(nombrecomercio, \"\", \"\", id, true, \"\", \"\", rf, \"\");\n Comentario c = new Comentario(idcomentario, descripC, valoracion, nombreU, fechaC, come);\n respuestas r = new respuestas(idR, descripcionR, c, fechaR);\n DTOcomentarioRta cr = new DTOcomentarioRta(c, r);\n\n lista.add(cr);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public String[][] obtenerConsultasBusqueda(String nombre){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n String[][] datos = new String[obtenerRegistrosBusqueda(nombre)][5];\n int i = 0;\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n \n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id WHERE nombre = ?\");\n ps.setString(1, nombre);\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\");\n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public Estetica(java.awt.Frame parent, boolean modal, String id,String idservicio) {\n super(parent, modal);\n initComponents();\n idserv=idservicio;\n this.setLocationRelativeTo(null); \n idpaciente=id;\n try {\n String consulta=\"SELECT nombrepaciente,sexo,observaciones,color,idrcliente, timestampdiff(month,fecha_nacimiento,curdate()) as edad,raza,telefono,referencia FROM tc_mascotas where Idmascota=\"+id;\n System.out.println(consulta);\n conex con=new conex();\n Statement st = con.getConnection().createStatement();\n ResultSet rs=st.executeQuery(consulta); \n String idcliente=\"0\";\n while (rs.next())\n { \n txtpaciente.setText(rs.getString(\"nombrepaciente\"));\n txtsexo.setText(rs.getString(\"sexo\")); \n txtraza.setText(rs.getString(\"raza\")); \n txtcontacto.setText(rs.getString(\"color\")); \n txttelcontacto.setText(rs.getString(\"telefono\")); \n txtreferencia.setText(rs.getString(\"referencia\")); \n txtgeneralidades.setText(rs.getString(\"observaciones\")); \n idcliente=rs.getString(\"idrcliente\");\n }\n consulta=\"SELECT nombre_completo,telefono,noext,MetodoPago,calle,colonia,municipio,cp,estado FROM tc_clientes where idcliente=\"+idcliente;\n rs=st.executeQuery(consulta); \n while (rs.next())\n { \n txtpropietario.setText(rs.getString(\"nombre_completo\"));\n txttelefono.setText(rs.getString(\"telefono\")); \n txtmetodopago.setText(rs.getString(\"MetodoPago\")); \n //txtraza.setText(rs.getString(\"calle\")+\" #\"+rs.getString(\"noext\")+\" Col. \"+rs.getString(\"colonia\")+\", \"+rs.getString(\"municipio\")+\" CP\"+rs.getString(\"cp\")+\" CP\"+rs.getString(\"estado\")); \n }\n rs.close();\n st.close();\n con.desconectar(); \n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se pudo obtener la informacion de la mascota \"+ex, \"Error sql\", JOptionPane.ERROR_MESSAGE);\n }\n \n \n }", "public List<VentaDet> generar(Periodo mes){\n\t\tString sql=ReplicationUtils.resolveSQL(mes,\"ALMACE\",\"ALMFECHA\")+\" AND ALMTIPO=\\'FAC\\' ORDER BY ALMSUCUR,ALMNUMER,ALMSERIE\";\r\n\t\tVentasDetMapper mapper=new VentasDetMapper();\r\n\t\tmapper.setBeanClass(getBeanClass());\r\n\t\tmapper.setOrigen(\"ALMACE\");\r\n\t\tmapper.setPropertyColumnMap(getPropertyColumnMap());\r\n\t\tList<VentaDet> rows=getFactory().getJdbcTemplate(mes).query(sql,mapper);\r\n\t\tlogger.info(\"VentaDet obtenidas : \"+rows.size());\r\n\t\treturn rows;\r\n\t}", "private void consultartiposincidentes() {\n\n db= con.getWritableDatabase();\n TipoIncidente clase_tipo_incidente= null;\n tipoincidentelist= new ArrayList<TipoIncidente>();\n //CONSULTA\n Cursor cursor=db.rawQuery(\"select codigo_incidente,tipo_incidente from \" +Utilitario.TABLE_TIPO_INCIDENTE,null);\n\n while (cursor.moveToNext()){\n clase_tipo_incidente=new TipoIncidente();\n clase_tipo_incidente.setCodigo(cursor.getInt(0));\n clase_tipo_incidente.setDescripcion(cursor.getString(1));\n\n Log.i(\"id\",clase_tipo_incidente.getCodigo().toString());\n Log.i(\"desc\",clase_tipo_incidente.getDescripcion());\n\n tipoincidentelist.add(clase_tipo_incidente);\n\n }\n llenarspinner();\n db.close();\n }", "private void consultarlistareportes() {\n db= con.getWritableDatabase();\n ReporteIncidente reporte= null;\n listarreportesinc =new ArrayList<ReporteIncidente>();\n Cursor cursor= db.rawQuery(\"select imagen1,asunto_reporte,estado_reporte,desc_reporte,cod_reporte from \"+ Utilitario.TABLE_REPORTE_INCIDENTE+\" where estado_reporte<>'Incompleto'\",null);\n\n while (cursor.moveToNext()){\n reporte= new ReporteIncidente();\n reporte.setImage1(cursor.getBlob(0));\n reporte.setAsunto(cursor.getString(1));\n reporte.setEstado(cursor.getString(2));\n reporte.setDescripcion(cursor.getString(3));\n reporte.setCodreporte(cursor.getInt(4));\n listarreportesinc.add(reporte);\n }\n //obtenerinformacion();\n db.close();\n }", "public Collection cargarMasivo(int codigoCiclo, String proceso, String subproceso, int periodo) {\n/* 287 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 289 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, u.Descripcion Nombre_Area, Um.Descripcion as Nombre_Unidad_Medida, to_char(m.Codigo_Objetivo,'9999999999') ||' - ' || o.Descripcion Nombre_Objetivo, to_char(m.Codigo_Meta,'9999999999') ||' - ' || m.Descripcion Nombre_Meta, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, l.Valor_Logro, case when l.Valor_Logro is not null then 'A' else 'N' end Existe from Cal_Planes p, Cal_Plan_Objetivos o, Cal_Plan_Metas m left join Cal_Logros l on( m.Codigo_Ciclo = l.Codigo_Ciclo and m.Codigo_Plan = l.Codigo_Plan and m.Codigo_Meta = l.Codigo_Meta and m.Codigo_Objetivo = l.Codigo_Objetivo and \" + periodo + \" = l.Periodo),\" + \" Unidades_Dependencia u,\" + \" Sis_Multivalores Um\" + \" where p.Ciclo = o.Codigo_Ciclo\" + \" and p.Codigo_Plan = o.Codigo_Plan\" + \" and o.Codigo_Ciclo = m.Codigo_Ciclo\" + \" and o.Codigo_Plan = m.Codigo_Plan\" + \" and o.Codigo_Objetivo = m.Codigo_Objetivo\" + \" and p.Codigo_Area = u.Codigo\" + \" and m.Unidad_Medida = Um.Valor\" + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\" + \" and o.Proceso = '\" + proceso + \"'\" + \" and o.Subproceso = '\" + subproceso + \"'\" + \" and p.Ciclo = \" + codigoCiclo + \" and m.Estado = 'A'\" + \" and o.Estado = 'A'\" + \" and o.Tipo_Objetivo in ('G', 'M')\";\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/* 333 */ if (periodo == 1) {\n/* 334 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 336 */ else if (periodo == 2) {\n/* 337 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 339 */ else if (periodo == 3) {\n/* 340 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 342 */ else if (periodo == 4) {\n/* 343 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 345 */ else if (periodo == 5) {\n/* 346 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 348 */ else if (periodo == 6) {\n/* 349 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 351 */ else if (periodo == 7) {\n/* 352 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 354 */ else if (periodo == 8) {\n/* 355 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 357 */ else if (periodo == 9) {\n/* 358 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 360 */ else if (periodo == 10) {\n/* 361 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 363 */ else if (periodo == 11) {\n/* 364 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 366 */ else if (periodo == 12) {\n/* 367 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 370 */ s = s + \" order by m.Codigo_Ciclo, m.Codigo_Objetivo, m.Codigo_Meta, u.Descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 377 */ boolean rtaDB = this.dat.parseSql(s);\n/* 378 */ if (!rtaDB) {\n/* 379 */ return resultados;\n/* */ }\n/* */ \n/* 382 */ this.rs = this.dat.getResultSet();\n/* 383 */ while (this.rs.next()) {\n/* 384 */ CalMetasDTO reg = new CalMetasDTO();\n/* 385 */ reg.setCodigoCiclo(codigoCiclo);\n/* 386 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 387 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 388 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 389 */ reg.setNombreArea(this.rs.getString(\"Nombre_Area\"));\n/* 390 */ reg.setNombreMeta(this.rs.getString(\"Nombre_meta\"));\n/* 391 */ reg.setNombreObjetivo(this.rs.getString(\"Nombre_Objetivo\"));\n/* 392 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 393 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 394 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 395 */ reg.setValorLogro(this.rs.getDouble(\"Valor_Logro\"));\n/* 396 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* 397 */ reg.setEstado(this.rs.getString(\"existe\"));\n/* 398 */ resultados.add(reg);\n/* */ }\n/* */ \n/* 401 */ } catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 405 */ return resultados;\n/* */ }", "private void retrieveDatos(Long codProfesor, Long anio) {\n recuperaPerfDoc(codProfesor, anio);\r\n }", "public void reporteHabitacionMasPopular(TablaModelo modelo){\n ArrayList<ControlVeces> control = new ArrayList<>();\n ControlVeces controlador;\n try {// pago de alojamiento en rango fchas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio, RESERVACION.Id_Habitacion FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Check_In=1;\");\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// pago de alojamiento en rango fchas\n String nombre = Integer.toString(resultado.getInt(6));\n int casilla = numeroObjeto(control,nombre);\n if(casilla>=0){// maneja el resultado// pago de alojamiento en rango fchas\n control.get(casilla).setVeces(control.get(casilla).getVeces()+1);\n }else{// maneja el resultado\n controlador = new ControlVeces(nombre);// pago de alojamiento en rango fchas\n control.add(controlador);\n }\n } // maneja el resultado \n ordenamiento(control);\n int numero = control.size()-1;// el de hasta arriba es el que mas elementos tiene \n String idHabitacionMasPopular = control.get(numero).getNombre();\n this.habitacionPopular= idHabitacionMasPopular;\n introducirDatosHabitacionMasPopular(modelo, idHabitacionMasPopular);\n } catch (SQLException ex) {\n ex.printStackTrace();\n } catch(Exception e){\n \n }\n }", "public void obtenerPosicionesSolicitud(Solicitud solicitud)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Entrada\");\n\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n //jrivas 20/7/2006 (indDevolucion) DBLG5000974 / DBLG5000981 / DBLG5001011\n //jrivas 1/8/2006 (indAnulacion) DBLG50001003\n if (!solicitud.getIndDevolucion() && !solicitud.getIndAnulacion()) {\n query.append(\" SELECT OID_SOLI_POSI, \");\n query.append(\" ESPO_OID_ESTA_POSI, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CATA_TOTA_LOCA_UNID, \");\n query.append(\" NUM_UNID_POR_ATEN, \");\n query.append(\" NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CONT_UNIT_LOCA, \");\n query.append(\" IND_CTRL_STOC, \");\n query.append(\" IND_CTRL_LIQU, \");\n query.append(\" IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, \");\n query.append(\" MAPR_OID_MARC_PROD, \");\n query.append(\" UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, \");\n query.append(\" GENE_OID_GENE, \");\n query.append(\" SGEN_OID_SUPE_GENE, \");\n query.append(\" TOFE_OID_TIPO_OFER, \");\n query.append(\" CIVI_OID_CICLO_VIDA, \");\n query.append(\" SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, \");\n query.append(\" VAL_PREC_FACT_UNIT_LOCA, \");\n query.append(\" VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" PRE_OFERT_DETAL OD \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.OFDE_OID_DETA_OFER = OD.OID_DETA_OFER(+) \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n } else {\n query.append(\" SELECT OID_SOLI_POSI, ESPO_OID_ESTA_POSI, NUM_UNID_POR_ATEN, NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, IND_CTRL_STOC, IND_CTRL_LIQU, IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, MAPR_OID_MARC_PROD, UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, GENE_OID_GENE, SGEN_OID_SUPE_GENE, \");\n query.append(\" A.CIVI_OID_CICLO_VIDA, A.TOFE_OID_TIPO_OFER, SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, VAL_PREC_FACT_UNIT_LOCA, VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if(solicitud.isValidaReemplazo()) {\n query.append(\" ,(SELECT COUNT(1) FROM pre_matri_factu mf, PRE_MATRI_REEMP mr \");\n query.append(\" WHERE mf.OID_MATR_FACT = mr.MAFA_OID_COD_REEM \"); \n query.append(\" AND mf.ofde_oid_deta_ofer = SP.OFDE_OID_DETA_OFER) COD_REEM \");\n }\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" (SELECT DISTINCT OD.CIVI_OID_CICLO_VIDA, OD.TOFE_OID_TIPO_OFER, \");\n query.append(\" OD.PROD_OID_PROD \");\n query.append(\" FROM PRE_OFERT_DETAL OD, \");\n query.append(\" PRE_OFERT O, \");\n query.append(\" PRE_MATRI_FACTU_CABEC MFC \");\n query.append(\" WHERE OD.OFER_OID_OFER = O.OID_OFER \");\n query.append(\" AND O.MFCA_OID_CABE = MFC.OID_CABE \");\n query.append(\" AND MFC.PERD_OID_PERI = \");\n query.append(\" (SELECT DISTINCT SC3.PERD_OID_PERI \");\n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" PED_SOLIC_CABEC SC, \");\n query.append(\" PED_SOLIC_CABEC SC2, \");\n query.append(\" PED_SOLIC_CABEC SC3 \");\n query.append(\" WHERE SC.OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = SC.OID_SOLI_CABE \");\n query.append(\" AND SC.SOCA_OID_DOCU_REFE = SC2.OID_SOLI_CABE \");\n query.append(\" AND SC3.SOCA_OID_SOLI_CABE = SC2.OID_SOLI_CABE \");\n query.append(\" AND OD.VAL_CODI_VENT = SP.VAL_CODI_VENT \");\n query.append(\" AND OD.PROD_OID_PROD = SP.PROD_OID_PROD)) A \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND A.PROD_OID_PROD = SP.PROD_OID_PROD \");\n }\n\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* Posiciones \" + respuesta); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n solicitud.setPosiciones(new Posicion[0]);\n } else {\n Posicion[] posiciones = new Posicion[respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n posiciones[i] = new Posicion();\n posiciones[i].setSolicitud(solicitud);\n posiciones[i].setOidPosicion(new Long(((BigDecimal) \n respuesta.getValueAt(i, \"OID_SOLI_POSI\")).longValue()));\n\n {\n BigDecimal oidPosicion = (BigDecimal) respuesta\n .getValueAt(i, \"ESPO_OID_ESTA_POSI\");\n posiciones[i].setEstado((oidPosicion != null) ? new Long(\n oidPosicion.longValue()) : null);\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /*{\n BigDecimal precio1 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_TOTA_LOCA_UNID\");\n posiciones[i].setPrecioCatalogTotalUniDemandaReal(\n (precio1 != null) ? precio1 : new BigDecimal(0));\n }*/\n\n {\n BigDecimal unidadesPorAtender = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_POR_ATEN\");\n posiciones[i].setUnidadesPorAtender(\n (unidadesPorAtender != null) ? new Long(\n unidadesPorAtender.longValue()) : new Long(0));\n }\n\n {\n BigDecimal unidadesComprometidas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_COMPR\");\n posiciones[i].setUnidadesComprometidas(\n (unidadesComprometidas != null) ? new Long(\n unidadesComprometidas.longValue()) : new Long(0));\n }\n\n {\n BigDecimal precio2 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_UNIT_LOCA\");\n posiciones[i].setPrecioCatalogoUnitarioLocal(\n (precio2 != null) ? precio2 : new BigDecimal(0));\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /* BigDecimal precio3 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CONT_UNIT_LOCA\");\n posiciones[i].setPrecioContableUnitarioLocal(\n (precio3 != null) ? precio3 : new BigDecimal(0));*/\n\n\n {\n BigDecimal controlStock = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_STOC\");\n\n if (controlStock == null) {\n posiciones[i].setControlStock(false);\n } else {\n if (controlStock.intValue() == 1) {\n posiciones[i].setControlStock(true);\n } else {\n posiciones[i].setControlStock(false);\n }\n }\n }\n\n {\n BigDecimal controlLiquidacion = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_LIQU\");\n\n if (controlLiquidacion == null) {\n posiciones[i].setControlLiquidacion(false);\n } else {\n if (controlLiquidacion.intValue() == 1) {\n posiciones[i].setControlLiquidacion(true);\n } else {\n posiciones[i].setControlLiquidacion(false);\n }\n }\n }\n\n {\n BigDecimal limiteVenta = (BigDecimal) respuesta\n .getValueAt(i, \"IND_LIMI_VENT\");\n\n if (limiteVenta == null) {\n posiciones[i].setLimiteVenta(false);\n } else {\n if (limiteVenta.intValue() == 1) {\n posiciones[i].setLimiteVenta(true);\n } else {\n posiciones[i].setLimiteVenta(false);\n }\n }\n }\n\n {\n BigDecimal unidades = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA_REAL\");\n posiciones[i].setUnidadesDemandaReal((unidades != null) \n ? new Long(unidades.longValue()) : new Long(0));\n }\n\n {\n BigDecimal oidMarcaProducto = (BigDecimal) respuesta\n .getValueAt(i, \"MAPR_OID_MARC_PROD\");\n posiciones[i].setOidMarcaProducto(\n (oidMarcaProducto != null) ? new Long(oidMarcaProducto\n .longValue()) : null);\n }\n\n {\n BigDecimal oidUnidadNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"UNEG_OID_UNID_NEGO\");\n posiciones[i].setOidUnidadNegocio(\n (oidUnidadNegocio != null) ? new Long(oidUnidadNegocio\n .longValue()) : null);\n }\n\n {\n BigDecimal oidNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"NEGO_OID_NEGO\");\n posiciones[i].setOidNegocio((oidNegocio != null) \n ? new Long(oidNegocio.longValue()) : null);\n }\n\n {\n BigDecimal oidGenerico = (BigDecimal) respuesta\n .getValueAt(i, \"GENE_OID_GENE\");\n posiciones[i].setOidGenerico((oidGenerico != null) \n ? new Long(oidGenerico.longValue()) : null);\n }\n\n {\n BigDecimal oidSuperGenerico = (BigDecimal) respuesta \n .getValueAt(i, \"SGEN_OID_SUPE_GENE\");\n posiciones[i].setOidSuperGenerico(\n (oidSuperGenerico != null) ? new Long(oidSuperGenerico\n .longValue()) : null);\n }\n\n BigDecimal uniDemandadas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA\");\n posiciones[i].setUnidadesDemandadas((uniDemandadas != null) \n ? new Long(uniDemandadas.longValue()) : new Long(0));\n\n posiciones[i].setOidProducto(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"OID_PROD\")).longValue()));\n \n BigDecimal oidTipoOferta = (BigDecimal) respuesta \n .getValueAt(i, \"TOFE_OID_TIPO_OFER\"); \n posiciones[i].setOidTipoOferta(\n (oidTipoOferta != null) ? new Long(oidTipoOferta\n .longValue()) : null);\n \n BigDecimal oidCicloVida = (BigDecimal) respuesta \n .getValueAt(i, \"CIVI_OID_CICLO_VIDA\"); \n posiciones[i].setOidCicloVida(\n (oidCicloVida != null) ? new Long(oidCicloVida\n .longValue()) : null);\n \n posiciones[i].setPrecioFacturaUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_FACT_UNIT_LOCA\"));\n \n posiciones[i].setPrecioNetoUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_NETO_UNIT_LOCA\"));\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if (solicitud.getIndDevolucion() && solicitud.isValidaReemplazo()) { \n BigDecimal codigoReemplazo = (BigDecimal) respuesta.getValueAt(i, \"COD_REEM\");\n \n if (codigoReemplazo == null) {\n posiciones[i].setProductoReemplazo(false);\n } else {\n if (codigoReemplazo.intValue() > 0) {\n posiciones[i].setProductoReemplazo(true);\n } else {\n posiciones[i].setProductoReemplazo(false);\n }\n }\n } else \n posiciones[i].setProductoReemplazo(false);\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n BigDecimal oidDetalleOferta = (BigDecimal) respuesta \n .getValueAt(i, \"OFDE_OID_DETA_OFER\"); \n posiciones[i].setOidDetalleOferta(\n (oidDetalleOferta != null) ? new Long(oidDetalleOferta.longValue()) : null); \n \n } // posiciones\n\n solicitud.setPosiciones(posiciones);\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Salida\");\n }", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public List<GoleadoresDTO> listarTodo(int idTorneo,Connection conexion) throws MiExcepcion {\n ArrayList<GoleadoresDTO> listarGoleadores = new ArrayList();\n\n try {\n String query = \"SELECT DISTINCT usuarios.primerNombre, \" +\n\" usuarios.primerApellido, tablagoleadores.numeroGoles, tablagoleadores.idEquipo, \"+ \n\" tablagoleadores.idTorneo,tablagoleadores.idJugador, \" +\n\" equipo.nombre \" +\n\" FROM tablagoleadores \" +\n\" INNER JOIN jugadoresporequipo \" +\n\" ON tablagoleadores.idJugador = jugadoresporequipo.codigoJugador \" +\n\" INNER JOIN usuarios \" +\n\" ON jugadoresporequipo.codigoJugador = usuarios.idUsuario \" +\n\" INNER JOIN equiposdeltorneo \" +\n\" ON tablagoleadores.idEquipo = equiposdeltorneo.equipoCodigo \" +\n\" INNER JOIN equipo \" +\n\" ON equiposdeltorneo.equipoCodigo = equipo.codigo \" +\n\" INNER JOIN torneo \" +\n\" ON tablagoleadores.idTorneo = torneo.idTorneo \" +\n\" WHERE tablagoleadores.idTorneo = ? \" +\n\" AND equiposdeltorneo.torneoIdTorneo=? \" +\n\" ORDER BY numeroGoles DESC\";\n statement = conexion.prepareStatement(query);\n statement.setInt(1, idTorneo);\n statement.setInt(2, idTorneo);\n rs = statement.executeQuery();\n //mientras que halla registros cree un nuevo dto y pasele la info\n while (rs.next()) {\n //crea un nuevo dto\n GoleadoresDTO gol = new GoleadoresDTO();\n UsuariosDTO usu = new UsuariosDTO();\n EquipoDTO equipo = new EquipoDTO();\n //le pasamos los datos que se encuentren\n gol.setNumeroGoles(rs.getInt(\"numeroGoles\"));\n gol.setIdEquipo(rs.getInt(\"idEquipo\"));\n gol.setIdTorneo(rs.getInt(\"idTorneo\"));\n gol.setIdJugador(rs.getLong(\"idJugador\"));\n usu.setPrimerNombre(rs.getString(\"primerNombre\"));\n usu.setPrimerApellido(rs.getString(\"primerApellido\"));\n gol.setUsu(usu);//paso el usuario al objeto \n equipo.setNombre(rs.getString(\"nombre\"));\n gol.setEquipo(equipo);\n //agregamos el objeto dto al arreglo\n listarGoleadores.add(gol);\n\n }\n } catch (SQLException sqlexception) {\n throw new MiExcepcion(\"Error listando goles\", sqlexception);\n\n } \n// finally {\n// try{\n// if (statement != null) {\n// statement.close(); \n// }\n// }catch (SQLException sqlexception) {\n// throw new MiExcepcion(\"Error listando goles\", sqlexception);\n//\n// }\n// }\n //devolvemos el arreglo\n return listarGoleadores;\n\n }", "public long reserva_de_entradas(int identificador_evento, Date fechaevento, Horario[] listahorarios ) throws ParseException {\n fgen.info (\"Identificador del evento\" + identificador_evento);\n fgen.info (\"Fecha del evento\" + fechaevento);\n ArrayList<Horario> horariosReserva = new ArrayList<Horario>();\n for (int i = 0; i < listahorarios.length; i++) {\n \n Horario horario = listahorarios[i];\n fgen.info (\"Horario : \" + horario.getHorario().toString()); \n horariosReserva.add(horario);\n List<Disponibilidad> listadisponibles = listahorarios[i].disponibilidades;\n for (int j = 0; j < listadisponibles.size() ; j++) { \n fgen.info (\" Disponibilidad - Cantidad: \" + listadisponibles.get(j).getCantidad());\n fgen.info (\" Disponibilidad - Precio: \" + listadisponibles.get(j).getPrecio());\n fgen.info (\" Disponibilidad - Sector: \" + listadisponibles.get(j).getSector());\n } \n \n \n } \n //Inicializo o tomo lo que esta en memoria de la lista de reservas\n ListaReservas reservas= new ListaReservas(); \n // busco el evento y que la lista de horarios sea en la que quiero reservar\n ListaEventos eventos = new ListaEventos();\n Calendar c = Calendar.getInstance();\n c.setTime(fechaevento);\n Evento e = eventos.buscarEvento(identificador_evento, c);\n List<Horario> horariosRetornar = new ArrayList<Horario>();\n if(e != null)\n {\n horariosRetornar = e.getHorarios();\n } \n \n if (horariosRetornar != null)\n {\n for (int i = 0; i < horariosRetornar.size(); i++) {\n for (int j = 0; j < listahorarios.length; j++) {\n Date fechaE = horariosRetornar.get(i).getHorario().getTime(); \n Date fechaEventoDate = listahorarios[j].hora.getTime(); \n if(fechaE.equals(fechaEventoDate)) \n { for (int k = 0; k < horariosRetornar.get(i).disponibilidades.size(); k++) {\n for (int l = 0; l < listahorarios[j].disponibilidades.size(); l++) {\n Disponibilidad d= horariosRetornar.get(i).disponibilidades.get(k);\n Disponibilidad r= listahorarios[j].disponibilidades.get(l);\n if (d.cantidad >= r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n d.setCantidad(d.cantidad-r.cantidad);\n //Reserva reserv= new Reserva();\n //reservas.contador_Id= reservas.contador_Id +1;\n //reserv.idReserva= reservas.contador_Id;\n //reserv.Estado=1;\n //reserv.idEvento = identificador_evento;\n //reserv.horarios.add(listahorarios[j]);\n //reservas.listaReserva.add(reserv);\n //return reserv.idReserva;\n }\n else if(d.cantidad < r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n //Si hay alguna solicitud de de reserva que no se pueda cumplir. Re reorna 0.\n //TODO: Hay que volver para atras las cantidades modificadas.\n return 0;\n }\n \n }\n \n }\n }\n }\n }\n Reserva reserv= new Reserva();\n reservas.contador_Id= reservas.contador_Id +1;\n reserv.idReserva= reservas.contador_Id;\n reserv.Estado=1;\n reserv.idEvento = identificador_evento;\n reserv.horarios = horariosReserva;\n reserv.fechaEvento = c;\n reservas.listaReserva.add(reserv);\n return reserv.idReserva;\n }\n \n return 0;\n }", "private void cargardatos() {\n String sql = \"SELECT * FROM nomPercepciones\";\n\n Object datos[] = new Object[13];\n try {\n conn = (this.userConn != null) ? this.userConn : Conexion.getConnection();\n stmt = conn.prepareStatement(sql);\n rs = stmt.executeQuery();\n while (rs.next()) {\n datos[0] = rs.getString(\"idNomPer\");\n datos[1] = rs.getString(\"nombre\");\n datos[2] = rs.getString(\"dias\");\n if (rs.getString(\"estatus\").equalsIgnoreCase(\"1\")) {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/actulizadoj.png\")));\n } else {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/noactualizadoj.png\")));\n }\n\n tabla1.addRow(datos);\n }\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Error al cargar los datos\\n\" + e, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } finally {\n Conexion.close(rs);\n Conexion.close(stmt);\n if (this.userConn == null) {\n Conexion.close(conn);\n }\n }\n }", "public void consultaTest() throws Exception{\n\t\t\n\t ResultSet rs = statement.executeQuery(\"select * from statistics\");\n\t \n\t \n\t while(rs.next())\n\t {\n\t\t \n\t\t DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss.SSS\");\n\t\t Date date = df.parse(rs.getString(\"timeActual\"));\n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(date);\n\t\t \n\t\t String completoDay = cal.get(Calendar.YEAR)+\"-\"+(cal.get(Calendar.MONTH) + 1)+\"-\"+ cal.get(Calendar.DAY_OF_MONTH);\n\t\t \n\t System.out.println(\"id= \" + rs.getInt(\"id\") + \" memory= \" + rs.getInt(\"memory\") + \" cpu= \" \n\t \t+ rs.getInt(\"cpu\") + \" timeActual= \" + completoDay);\n\t }\n\t \n\t if(rs != null)\n\t\t rs.close();\n\t \n\t if(connection != null)\n\t connection.close();\n\t \n\t}", "public ArrayList<Menu> buscarPorFecha(Date fechaIni,Date fechaTer );", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\n\t\t\t\t\t\"limit 25 offset 0\");\n\n\t\t\tList<Ficha_epidemiologia_n3> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n3.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Ficha_epidemiologia_n3 ficha_epidemiologia_n3 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\tficha_epidemiologia_n3, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public AsistenciaRespuesta consultaAsistencia(AsistenciaDTO asistencia) {\n\t\t//Primero generamos el identificador unico de la transaccion\n\t\t\t\tString uid = GUIDGenerator.generateGUID(asistencia);\n\t\t\t\t//Mandamos a log el objeto de entrada\n\t\t\t\tLogHandler.debug(uid, this.getClass(), \"consultaAsistencia - Datos Entrada: \" + asistencia);\n\t\t\t\t//Variable de resultado\n\t\t\t\tAsistenciaRespuesta respuesta = new AsistenciaRespuesta();\n\t\t\t\trespuesta.setHeader( new EncabezadoRespuesta());\n\t\t\t\trespuesta.getHeader().setUid(uid);\n\t\t\t\trespuesta.getHeader().setEstatus(true);\n\t\t\t\trespuesta.getHeader().setMensajeFuncional(\"Consulta correcta.\");\n\t\t\t\tList<AsistenciaDTO> listaAsistencia = null;\n\t\t\t\t try {\n\t\t\t\t\t listaAsistencia = new AsistenciaDAO().consultaAsistencia(uid, asistencia);\n\t\t\t\t \trespuesta.setAsistencia(listaAsistencia);\n\t\t\t\t } catch (ExcepcionesCuadrillas ex) {\n\t\t\t\t\t\tLogHandler.error(uid, this.getClass(), \"consultaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t\t\trespuesta.getHeader().setEstatus(false);\n\t\t\t\t\t\trespuesta.getHeader().setMensajeFuncional(ex.getMessage());\n\t\t\t\t\t\trespuesta.getHeader().setMensajeTecnico(ex.getMessage());\n\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t \tLogHandler.error(uid, this.getClass(), \"consultaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t \trespuesta.getHeader().setEstatus(false);\n\t\t\t\t\t\trespuesta.getHeader().setMensajeFuncional(ex.getMessage());\n\t\t\t\t\t\trespuesta.getHeader().setMensajeTecnico(ex.getMessage());\n\t\t\t\t }\n\t\t\t\t LogHandler.debug(uid, this.getClass(), \"consultaAsistencia - Datos Salida: \" + respuesta);\n\t\t\t\t\treturn respuesta;\n\t}", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\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/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "public void reporteIngresosCliente(Date fechaInicial, Date fechaFinal,TablaModelo modeloConsumos, TablaModelo modeloAlojamientos,String dpiCliente){\n introducirConsumosClienteFechas(fechaInicial, fechaFinal, modeloConsumos, dpiCliente);\n introducirPagosALojamientoClienteFechas(fechaInicial, fechaFinal, modeloAlojamientos, dpiCliente);\n }", "public ArrayList<Factura> recuperaFacturaCompletaPorFiltro(String filtro) {\r\n\t\tString sql = \"\";\r\n\t\tsql += \"SELECT * FROM facturas WHERE \";\r\n\t\tsql += filtro;\r\n\t\tsql += \" ORDER BY facturas.numero\";\r\n\t\tSystem.out.println(sql);\r\n\t\tArrayList<Factura> lista = new ArrayList<>();\r\n\t\tConnection c = new Conexion().getConection();\r\n\t\tif (c != null) {\r\n\t\t\ttry {\r\n\t\t\t\t// Crea un ESTAMENTO (comando de ejecucion de un sql)\r\n\t\t\t\tStatement comando = c.createStatement();\r\n\t\t\t\tResultSet rs = comando.executeQuery(sql);\r\n\t\t\t\twhile (rs.next() == true) {\r\n\t\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\t\tint clienteId = rs.getInt(\"clienteId\");\r\n\t\t\t\t\tString nombreCliente = rs.getString(\"nombreCliente\");\r\n\t\t\t\t\tint numero = rs.getInt(\"numero\");\r\n\t\t\t\t\tDate fecha = rs.getDate(\"fecha\");\r\n\t\t\t\t\tdouble porcDescuento = rs.getDouble(\"porcDescuento\");\r\n\t\t\t\t\tdouble porcRecargoEquivalencia = rs.getDouble(\"porcRecargoEquivalencia\");\r\n\t\t\t\t\tdouble impTotal = rs.getDouble(\"impTotal\");\r\n\t\t\t\t\tdouble impRecargo = rs.getDouble(\"impRecargo\");\r\n\t\t\t\t\tdouble impIva = rs.getDouble(\"impIva\");\r\n\t\t\t\t\tString dirCorreo = rs.getString(\"dirCorreo\");\r\n\t\t\t\t\tString dirFactura = rs.getString(\"dirFactura\");\r\n\t\t\t\t\tString dirEnvio = rs.getString(\"dirEnvio\");\r\n\t\t\t\t\tboolean cobrada = rs.getBoolean(\"cobrada\");\r\n\t\t\t\t\tArrayList<FacturaDetalle> detalles = new FacturasDetallesBDD().recuperaPorFacturaId(id);\r\n\t\t\t\t\tlista.add(new Factura(id, clienteId, nombreCliente, numero, fecha, porcDescuento, porcRecargoEquivalencia, impTotal, impRecargo, impIva, dirCorreo, dirFactura, dirEnvio, cobrada, detalles));\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "public void buscarDatos()throws Exception{\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue().toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\t\t\t\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\n\t\t\tList<Ficha_epidemiologia_n13> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n13.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\t\t\t\n\t\t\tfor (Ficha_epidemiologia_n13 ficha_epidemiologia_n13 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(ficha_epidemiologia_n13, this));\n\t\t\t}\n\t\t\t\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\t\t\t\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public void turnosLibresFecha(){\r\n back.clean();\r\n /*matriz[4][6];*/\r\n System.out.println(\" Andres \");\r\n System.out.println(\"| | Lunes 07 | Lunes 14 | Lunes 21 | Lunes 28 |\");\r\n System.out.println(\"| 09:00 | | | | |\");\r\n System.out.println(\"| 09:30 | | | | |\");\r\n System.out.println(\"| 10:00 | | | | |\");\r\n System.out.println(\"| 10:30 | | | | |\");\r\n System.out.println(\"| 11:00 | | | | |\");\r\n System.out.println(\"| 11:30 | | | | |\");\r\n /* for(i=0;i<turno.length;i++){\r\n for(j=0;j<turno[i].length;j++){\r\n switch (j){\r\n case 1:\r\n fecha=day.getFecha(turno[i][j]);\r\n break;\r\n case 2:\r\n time=hora.getHora(turno[i][j]);\r\n break;\r\n\r\n }\r\n }\r\n if(day.getFecha(select)==fecha){\r\n System.out.print(\"- Odontologo:\"+odonNombre+\"|Dia:\"+fecha+\"|Hora:\"+time+\"|Paciente:\"+pacNombre+\"\\n\");\r\n }\r\n \r\n }*/\r\n \r\n \r\n \r\n \r\n back.waiting();\r\n back.turnosLibres();\r\n }", "public ArrayList<Info_laboral> findAll(){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n\n ArrayList<Info_laboral> eeg = new ArrayList();\n\n try{\n ResultSet gs = con.ejecutaCon(\" Select * from Info_laboral\"); \n while(gs.next()){\n \n Estudios_Egresado ee=new Estudios_Egresado();\n Info_laboral i =new Info_laboral();\n Egresado eg = new Egresado();\n Estudios es = new Estudios();\n \n i.setId(gs.getInt(1));\n i.setJefe(gs.getString(2));\n i.setCargo(gs.getString(3));\n i.setFuncion(gs.getString(4));\n i.setFecha_ini(gs.getDate(5));\n i.setFecha_fin(gs.getDate(6));\n i.setMotivo_retiro(gs.getString(7));\n eg.setId(gs.getLong(8));\n i.setId_egresado(eg);\n i.setPerfil(gs.getString(9));\n \n eeg.add(i);\n }\n }catch(SQLException e){\n System.out.println(\"error \"+e);\n return null;\n }\n return eeg;\n }", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "public Collection cargarDeObjetivo(int codigoCiclo, int codigoPlan, int objetivo, int periodo, String estado) {\n/* 121 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 123 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion as Nombretipomedicion, Est.Descripcion as Nombreestado, Um.Descripcion as Nombre_Unidad_Medida, SUM(CASE WHEN ac.NUMERO IS NOT NULL THEN 1 ELSE 0 END) acciones from Cal_Plan_Metas m left join Am_Acciones Ac on( m.Codigo_Ciclo = Ac.Codigo_Ciclo and m.Codigo_Plan = Ac.Codigo_Plan and m.Codigo_Meta = Ac.Codigo_Meta and Ac.Asociado = 'P'), \\t\\t Sis_Multivalores Tm, \\t\\t Sis_Multivalores Est, \\t\\t Sis_Multivalores Um where m.Tipo_Medicion = Tm.Valor and Tm.Tabla = 'CAL_TIPO_MEDICION' and m.Estado = Est.Valor and Est.Tabla = 'CAL_ESTADO_META' and m.Unidad_Medida = Um.Valor and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META' and m.codigo_ciclo=\" + codigoCiclo + \" and m.codigo_plan=\" + codigoPlan + \" and m.codigo_objetivo=\" + objetivo;\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/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 180 */ if (estado.length() > 0) {\n/* 181 */ s = s + \" and m.estado='A'\";\n/* */ }\n/* */ \n/* 184 */ if (periodo == 1) {\n/* 185 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 187 */ else if (periodo == 2) {\n/* 188 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 190 */ else if (periodo == 3) {\n/* 191 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 193 */ else if (periodo == 4) {\n/* 194 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 196 */ else if (periodo == 5) {\n/* 197 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 199 */ else if (periodo == 6) {\n/* 200 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 202 */ else if (periodo == 7) {\n/* 203 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 205 */ else if (periodo == 8) {\n/* 206 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 208 */ else if (periodo == 9) {\n/* 209 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 211 */ else if (periodo == 10) {\n/* 212 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 214 */ else if (periodo == 11) {\n/* 215 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 217 */ else if (periodo == 12) {\n/* 218 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 221 */ s = s + \" GROUP BY m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion, Est.Descripcion, Um.Descripcion order by m.descripcion\";\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/* 259 */ boolean rtaDB = this.dat.parseSql(s);\n/* 260 */ if (!rtaDB) {\n/* 261 */ return resultados;\n/* */ }\n/* */ \n/* 264 */ this.rs = this.dat.getResultSet();\n/* 265 */ while (this.rs.next()) {\n/* 266 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 269 */ catch (Exception e) {\n/* 270 */ e.printStackTrace();\n/* 271 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 273 */ return resultados;\n/* */ }" ]
[ "0.6748105", "0.6725465", "0.653074", "0.6509586", "0.6404495", "0.6403866", "0.6403487", "0.63817245", "0.63631856", "0.634208", "0.6313197", "0.63126576", "0.6295087", "0.6277701", "0.6236901", "0.6236471", "0.6222159", "0.6172989", "0.61608046", "0.61407226", "0.6139845", "0.61203045", "0.61146194", "0.6112916", "0.6100052", "0.6073797", "0.6069122", "0.60612524", "0.6046499", "0.60452044", "0.6041539", "0.6025614", "0.60205096", "0.60165805", "0.6006124", "0.5982708", "0.595891", "0.5957348", "0.5955797", "0.5954748", "0.59481543", "0.5901497", "0.58904976", "0.5889322", "0.5885542", "0.5884903", "0.5860855", "0.58520854", "0.58515394", "0.5850335", "0.58422124", "0.58324355", "0.5831124", "0.58307", "0.5830687", "0.58229554", "0.58164287", "0.58162796", "0.5814842", "0.58128524", "0.58097816", "0.5809518", "0.5805686", "0.58010006", "0.5800504", "0.5799993", "0.57975364", "0.57950574", "0.579432", "0.57915556", "0.5788283", "0.57870656", "0.5783558", "0.57819915", "0.57757145", "0.5774652", "0.5772526", "0.57672495", "0.57654536", "0.57627475", "0.5758644", "0.5758242", "0.5758044", "0.5757799", "0.5752678", "0.57513046", "0.57350034", "0.5729496", "0.57276183", "0.5718874", "0.57183254", "0.5714887", "0.57135123", "0.57127607", "0.57075775", "0.57053816", "0.5677256", "0.56737196", "0.56736636", "0.566702" ]
0.6781043
0
Realiza la consulta que obtiene todas las notas con fecha de ayer.
public static ParseQuery consultarNotasAyer(){ ParseQuery queryNotasAyer = new ParseQuery("Todo"); Calendar cal = getFechaHoy(); Date hoy= cal.getTime(); cal.add(Calendar.DAY_OF_MONTH, -1); Date ayer = cal.getTime(); queryNotasAyer.whereLessThanOrEqualTo("Fecha", hoy); queryNotasAyer.whereGreaterThan("Fecha", ayer); return queryNotasAyer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public List<Requisicion> getRequisicionesNoAutorizadas() throws Exception{\n \n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n String miSql = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento where r.AUTORIZADO = 1\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n \n Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n requisicion.add(temporal);\n }\n \n return requisicion;\n \n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "@Override\r\n public List<QuestaoDiscursiva> consultarTodosQuestaoDiscursiva()\r\n throws Exception {\n return rnQuestaoDiscursiva.consultarTodos();\r\n }", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public AsistenciaRespuesta consultaAsistencia(AsistenciaDTO asistencia) {\n\t\t//Primero generamos el identificador unico de la transaccion\n\t\t\t\tString uid = GUIDGenerator.generateGUID(asistencia);\n\t\t\t\t//Mandamos a log el objeto de entrada\n\t\t\t\tLogHandler.debug(uid, this.getClass(), \"consultaAsistencia - Datos Entrada: \" + asistencia);\n\t\t\t\t//Variable de resultado\n\t\t\t\tAsistenciaRespuesta respuesta = new AsistenciaRespuesta();\n\t\t\t\trespuesta.setHeader( new EncabezadoRespuesta());\n\t\t\t\trespuesta.getHeader().setUid(uid);\n\t\t\t\trespuesta.getHeader().setEstatus(true);\n\t\t\t\trespuesta.getHeader().setMensajeFuncional(\"Consulta correcta.\");\n\t\t\t\tList<AsistenciaDTO> listaAsistencia = null;\n\t\t\t\t try {\n\t\t\t\t\t listaAsistencia = new AsistenciaDAO().consultaAsistencia(uid, asistencia);\n\t\t\t\t \trespuesta.setAsistencia(listaAsistencia);\n\t\t\t\t } catch (ExcepcionesCuadrillas ex) {\n\t\t\t\t\t\tLogHandler.error(uid, this.getClass(), \"consultaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t\t\trespuesta.getHeader().setEstatus(false);\n\t\t\t\t\t\trespuesta.getHeader().setMensajeFuncional(ex.getMessage());\n\t\t\t\t\t\trespuesta.getHeader().setMensajeTecnico(ex.getMessage());\n\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t \tLogHandler.error(uid, this.getClass(), \"consultaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t \trespuesta.getHeader().setEstatus(false);\n\t\t\t\t\t\trespuesta.getHeader().setMensajeFuncional(ex.getMessage());\n\t\t\t\t\t\trespuesta.getHeader().setMensajeTecnico(ex.getMessage());\n\t\t\t\t }\n\t\t\t\t LogHandler.debug(uid, this.getClass(), \"consultaAsistencia - Datos Salida: \" + respuesta);\n\t\t\t\t\treturn respuesta;\n\t}", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public java.sql.ResultSet consultaporfecha(String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "public ArrayList<AnuncioDTO> ObtenerAnunciosUsuario(String email){\n ArrayList<AnuncioDTO> ret = new ArrayList<AnuncioDTO>();\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getByEmailPropietario.Anuncio\"));\n ps.setString(1, email);\n ResultSet rs=ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas = null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n }\n ArrayList<String> destinatarios= ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "public ArrayList<TicketDto> consultarVentasChance(String fecha, String moneda) {\n ArrayList<TicketDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,sum(vrl_apuesta) \"\n + \"FROM ticket\"\n + \" where \"\n + \" fecha='\" + fecha + \"' and moneda='\" + moneda + \"' group by codigo\";\n\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n TicketDto dto = new TicketDto();\n dto.setCodigo(rs.getString(1));\n dto.setValor(rs.getInt(2));\n dto.setMoneda(moneda);\n lista.add(dto);\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }", "protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nomepaciente\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "public static ParseQuery consultarNotasDeHoy(){\n\n ParseQuery queryNotasHoy = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n\n cal.set(Calendar.HOUR, 0);\n cal.set(Calendar.MINUTE,0);\n cal.set(Calendar.SECOND,0);\n\n Date min = cal.getTime();\n\n cal.set(Calendar.HOUR, 23);\n cal.set(Calendar.MINUTE,59);\n cal.set(Calendar.SECOND,59);\n\n Date max= cal.getTime();\n\n queryNotasHoy.whereGreaterThanOrEqualTo(\"Fecha\", min);\n queryNotasHoy.whereLessThan(\"Fecha\", max);\n\n return queryNotasHoy;\n }", "public List<SpasaCRN> obtenerSpasaFiltros() {\n\n if (conectado) {\n try {\n String bool = \"false\";\n List<SpasaCRN> filtrosCRNs = new ArrayList();\n\n String Query = \"SELECT * FROM `spasa_filtros` WHERE anio = YEAR(NOW()) AND ciclo = CURRENT_CICLO() ;\";\n Logy.mi(\"Query: \" + Query);\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n while (resultSet.next()) {\n\n SpasaCRN crn = new SpasaCRN();\n SpasaMateria mat = new SpasaMateria();\n crn.setCodigoProf(resultSet.getString(\"usuario\")); //modificado ahora que se cambio in a String\n crn.setCrnCpr(resultSet.getString(\"crn\"));\n String mc = resultSet.getString(\"materia_cod\");\n if (mc != null && !mc.isEmpty() && !mc.equals(\"null\")) {\n crn.setMateriaRuta(mc);\n mat.setMateriaRuta(mc);\n }\n String m = resultSet.getString(\"materia_nom\");\n if (m != null && !m.isEmpty() && !m.equals(\"null\")) {\n mat.setNombreMat(m);\n }\n String d = resultSet.getString(\"departamento_nom\");\n if (d != null && !d.isEmpty() && !d.equals(\"null\")) {\n mat.setNombreDepto(d);\n }\n String dia = resultSet.getString(\"dia\");\n if (dia != null && !dia.isEmpty() && !dia.equals(\"null\")) {\n crn.setDiaHr(dia);\n }\n String h = resultSet.getString(\"hora\");\n if (h != null && !h.isEmpty() && !h.equals(\"null\")) {\n crn.setHiniHr(h);\n }\n crn.setMateria(mat);\n filtrosCRNs.add(crn);\n }\n\n return filtrosCRNs;\n\n } catch (SQLException ex) {\n Logy.me(\"No se pudo consultar tabla spasa_filtros : \" + ex.getMessage());\n return null;\n }\n } else {\n Logy.me(\"No se ha establecido previamente una conexion a la DB\");\n return null;\n }\n }", "public ArrayList<ServicioDTO> consultarServicios(String columna, String informacion) throws Exception {\r\n ArrayList<ServicioDTO> dtos = new ArrayList<>();\r\n conn = Conexion.generarConexion();\r\n String sql = \"\";\r\n if (columna.equals(\"nom\")) \r\n sql = \" WHERE SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ?\";\r\n else if (columna.equals(\"cod\"))\r\n sql = \" WHERE SerCodigo = ? \";\r\n if (conn != null) {\r\n PreparedStatement stmt = conn.prepareStatement(\"SELECT SerCodigo, \"\r\n + \"SerNombre, SerCaracter, SerNotas, SerHabilitado \"\r\n + \"FROM tblservicio\" + sql);\r\n if (columna.equals(\"cod\")) {\r\n stmt.setString(1, informacion);\r\n } else if (columna.equals(\"nom\")) {\r\n stmt.setString(1, informacion);\r\n stmt.setString(2, \"%\" + informacion);\r\n stmt.setString(3, informacion + \"%\");\r\n stmt.setString(4, \"%\" + informacion + \"%\");\r\n }\r\n ResultSet rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n ServicioDTO dto = new ServicioDTO();\r\n dto.setCodigo(rs.getInt(1));\r\n dto.setNombre(rs.getString(2));\r\n dto.setCaracter(rs.getString(3));\r\n dto.setNotas(rs.getString(4));\r\n String habilitado = rs.getString(5);\r\n if(habilitado.equals(\"si\"))\r\n dto.setHabilitado(true);\r\n else\r\n dto.setHabilitado(false);\r\n dtos.add(dto);\r\n }\r\n stmt.close();\r\n rs.close();\r\n conn.close();\r\n }\r\n return dtos;\r\n }", "public java.sql.ResultSet consultaporespecialidadhorafecha(String CodigoEspecialidad,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "private void obtenerClienteRecomendado(Cliente clienteParametro, Long oidPais) throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Entrada\");\n\n BelcorpService bsInc = null;\n RecordSet respuestaInc = null;\n StringBuffer queryInc = new StringBuffer();\n ArrayList lstRecomendados;\n\n if ( clienteParametro.getClienteRecomendante() != null){\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"oidClienteRecomendante=\"+clienteParametro.getClienteRecomendante().getRecomendante());\n }\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n try {\n queryInc.append(\" SELECT \");\n queryInc.append(\" CLIE_OID_CLIE_VNDO CLIE_OID_CLIE, \");\n queryInc.append(\" FEC_DESD FEC_INIC, \");\n queryInc.append(\" FEC_HAST FEC_FINA \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n queryInc.append(\" AND CLIE_OID_CLIE_VNDO NOT IN ( \");\n \n // queryInc.append(\" SELECT RDO.CLIE_OID_CLIE, FEC_INIC, FEC_FINA \");\n queryInc.append(\" SELECT DISTINCT RDO.CLIE_OID_CLIE \");\n queryInc.append(\" FROM INC_CLIEN_RECDO RDO, CRA_PERIO, \");\n queryInc.append(\" INC_CLIEN_RECTE RECT \");\n queryInc.append(\" WHERE PERD_OID_PERI = OID_PERI \");\n queryInc.append(\" AND RECT.CLIE_OID_CLIE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND CLR3_OID_CLIE_RETE = OID_CLIE_RETE \");\n \n queryInc.append(\" ) \");\n \n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n //BelcorpService bsMae = null;\n RecordSet respuestaMae = null;\n //StringBuffer queryMae = new StringBuffer();\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n \n boolean hayRecomendado = false;\n Cliente clienteLocal = new Cliente();\n lstRecomendados = clienteParametro.getClienteRecomendado();\n\n if (!respuestaInc.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnINC(true);\n \n /* vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n * no lleno lstRecomendados con estos valores solo mantengo el indicador IndRecomendadosEnINC \n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaInc.getRowCount();i++){ \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente()); \n \n BigDecimal recomendado = (BigDecimal) respuestaInc.getValueAt(i, \"CLIE_OID_CLIE\");\n clienteRecomendado.setRecomendado((recomendado != null) ? new Long(recomendado.longValue()) : null);\n \n clienteRecomendado.setFechaInicio((Date) respuestaInc.getValueAt(i, \"FEC_INIC\"));\n Date fechaFin = (Date) respuestaInc.getValueAt(i, \"FEC_FINA\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n\n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n }*/\n } \n \n // vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n // \n \n try {\n queryInc = new StringBuffer(); \n queryInc.append(\" SELECT CLIE_OID_CLIE_VNDO, FEC_DESD, FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n\n respuestaMae = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMae \" + respuestaMae); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if (!respuestaMae.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnMAE(true);\n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaMae.getRowCount();i++){ \n \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente());\n\n clienteRecomendado.setRecomendado(new Long(((BigDecimal) \n respuestaMae.getValueAt(i, \"CLIE_OID_CLIE_VNDO\")).longValue()));\n {\n Date fechaInicio = (Date) respuestaMae.getValueAt(i, \"FEC_DESD\");\n clienteRecomendado.setFechaInicio((fechaInicio != null) ? fechaInicio : null);\n }\n\n {\n Date fechaFin = (Date) respuestaMae.getValueAt(i, \"FEC_HAST\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n }\n \n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n \n }\n \n clienteParametro.setClienteRecomendado(lstRecomendados);\n \n } else {\n hayRecomendado = false;\n }\n\n if (!hayRecomendado) {\n clienteParametro.setClienteRecomendado(null);\n }\n \n // JVM, sicc 20070381, if, manejo del Recomendador, bloque de recuparacion de periodo\n if (lstRecomendados.size() > 0)\n { \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n \n RecordSet respuestaMaeRdr = null;\n\n try { \n queryInc = new StringBuffer();\n queryInc.append(\" SELECT DISTINCT CLIE_OID_CLIE_VNTE , FEC_DESD , FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n respuestaMaeRdr = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMaeRdr \" + respuestaMaeRdr); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n ClienteRecomendante clienteRecomendador = new ClienteRecomendante();\n \n if (!respuestaMaeRdr.esVacio()) {\n \n {\n BigDecimal recomendador = (BigDecimal) respuestaMaeRdr.getValueAt(0, \"CLIE_OID_CLIE_VNTE\");\n clienteRecomendador.setRecomendante((recomendador != null) ? new Long(recomendador.longValue()) : null);\n }\n \n clienteRecomendador.setFechaInicio((Date) respuestaMaeRdr.getValueAt(0, \"FEC_DESD\"));\n // fecha fin de INC\n {\n Date fechaFin = (Date) respuestaMaeRdr.getValueAt(0, \"FEC_HAST\");\n clienteRecomendador.setFechaFin((fechaFin != null)? fechaFin : null);\n }\n \n clienteParametro.setClienteRecomendador(clienteRecomendador);\n }\n \n for (int i=0; i<lstRecomendados.size(); i++){\n\n ClienteRecomendado clienteRecomendados = new ClienteRecomendado(); \n \n clienteRecomendados = (ClienteRecomendado) lstRecomendados.get(i);\n \n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n\n queryInc = new StringBuffer();\n \n try {\n queryInc.append(\" select x.n, x.oid_peri, x.fec_inic, x.fec_fina, x.pais_oid_pais, x.marc_oid_marc, x.cana_oid_cana \"); \n queryInc.append(\" from ( \"); \n queryInc.append(\" select 1 n, b.oid_peri as oid_peri, \"); \n queryInc.append(\" b.fec_inic as fec_inic, \"); \n queryInc.append(\" b.fec_fina as fec_fina, \"); \n queryInc.append(\" b.pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" b.marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" b.cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from mae_clien_prime_conta a, cra_perio b, seg_perio_corpo c \"); \n queryInc.append(\" where a.clie_oid_clie = \" + clienteRecomendados.getRecomendado()); \n queryInc.append(\" and a.perd_oid_peri = b.oid_peri \"); \n queryInc.append(\" and b.peri_oid_peri = c.oid_peri \"); \n queryInc.append(\" and b.oid_peri in ( \"); \n queryInc.append(\" select oid_peri \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD/MM/YYYY') <= fec_fina ) \");\n queryInc.append(\" union \"); \n queryInc.append(\" select rownum + 1 as n, oid_peri as oid_peri, \"); \n queryInc.append(\" fec_inic as fec_inic, \"); \n queryInc.append(\" fec_fina as fec_fina, \"); \n queryInc.append(\" pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') <= fec_fina \");\n queryInc.append(\" order by oid_peri asc \"); \n queryInc.append(\" ) x \"); \n queryInc.append(\" order by n \"); \n\n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n BigDecimal bd;\n \n if (!respuestaInc.esVacio()) {\n\n Periodo periodo = new Periodo();\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"OID_PERI\");\n periodo.setOidPeriodo(new Long(bd.longValue()));\n \n periodo.setFechaDesde((Date) respuestaInc.getValueAt(0, \"FEC_INIC\"));\n\n periodo.setFechaHasta((Date) respuestaInc.getValueAt(0, \"FEC_FINA\")); \n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"PAIS_OID_PAIS\");\n periodo.setOidPais(new Long(bd.longValue()));\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"MARC_OID_MARC\");\n periodo.setOidMarca(new Long(bd.longValue()));\n\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"CANA_OID_CANA\");\n periodo.setOidCanal(new Long(bd.longValue()));\n \n clienteRecomendados.setPeriodo(periodo);\n } \n }\n }\n\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"lstRecomendados(\"+lstRecomendados.size() + \n \") getIndRecomendadosEnMAE(\"+clienteParametro.getIndRecomendadosEnMAE() +\n \") getIndRecomendadosEnINC(\"+clienteParametro.getIndRecomendadosEnINC() +\")\"); \n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Salida\"); \n \n }", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\n\t\t\tgetServiceLocator().getHisc_urgencia_odontologicoService()\n\t\t\t\t\t.setLimit(\"limit 25 offset 0\");\n\n\t\t\tList<Hisc_urgencia_odontologico> lista_datos = getServiceLocator()\n\t\t\t\t\t.getHisc_urgencia_odontologicoService().listar(parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Hisc_urgencia_odontologico hisc_urgencia_odontologico : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\thisc_urgencia_odontologico, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "private void cargarNotasAclaratorias() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"tipo\", INotas.NOTAS_ACLARATORIAS);\r\n\t\ttabboxContendor\r\n\t\t\t\t.abrirPaginaTabDemanda(false, \"/pages/nota_aclaratoria.zul\",\r\n\t\t\t\t\t\t\"NOTAS ACLARATORIAS\", parametros);\r\n\t}", "public void reporteIngresosCliente(Date fechaInicial, Date fechaFinal,TablaModelo modeloConsumos, TablaModelo modeloAlojamientos,String dpiCliente){\n introducirConsumosClienteFechas(fechaInicial, fechaFinal, modeloConsumos, dpiCliente);\n introducirPagosALojamientoClienteFechas(fechaInicial, fechaFinal, modeloAlojamientos, dpiCliente);\n }", "public Cliente[] findWhereFechaUltimaVisitaEquals(Date fechaUltimaVisita) throws ClienteDaoException;", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "public String[][] obtenerConsultas(){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n int i = 0;\n String[][] datos = new String[obtenerRegistros()][5];\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n\n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id;\");\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\"); \n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@Override\n\tpublic ArrayList<VOFactura> getAllFacturasByClienteDate(VOCliente cliente,\n\t\t\tCalendar fechaDesde, Calendar fechaHasta) {\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\tVOFactura factura;\n\t\tArrayList<VOFactura> listaFacturas = new ArrayList<VOFactura>();\n\t\t\n\t\tjava.sql.Date sqlDesde = new java.sql.Date(fechaDesde.getTimeInMillis());\n\t\tjava.sql.Date sqlHasta = new java.sql.Date(fechaHasta.getTimeInMillis());\n\t\t\n\t\t try {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT * FROM factura fac\"+\n\t\t\t\" WHERE fac.facfecha >= '\"+sqlDesde+\"' \"+\n\t\t\t\" AND fac.facfecha < '\"+sqlHasta+\"' \"+\n\t\t\t\" AND fac.cliente_cliid = \"+cliente.getId()+\"\";\n\t\t\tres = stm.executeQuery(sql);\n\n\t\t\tSystem.out.println(\"comparando fechas sql: \"+sql);\n\n\t\t\twhile(res.next()) {\n\t\t\t\tfactura = new VOFactura();\n\t\t\t\tfactura.setId(res.getInt(1));\n\t\t\t\tfactura.setNumero(res.getInt(2));\n\t\t\t\tfactura.setIdCliente(res.getInt(3));\n\t\t\t\tCalendar fecha = Calendar.getInstance();\n\t\t\t\tfecha.setTimeInMillis(res.getDate(4).getTime());\n\t\t\t\tfactura.setFecha(fecha);\n\t\t\t\tfactura.setValorNeto(res.getBigDecimal(5));\n\t\t\t\tfactura.setValorIva(res.getBigDecimal(6));\n\t\t\t\tfactura.setValorTotal(res.getBigDecimal(7));\n\t\t\t\t\n\t\t\t\tlistaFacturas.add(factura);\n\t\t\t}\n\n\t\t\treturn listaFacturas;\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "public void obtenerPosicionesSolicitud(Solicitud solicitud)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Entrada\");\n\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n //jrivas 20/7/2006 (indDevolucion) DBLG5000974 / DBLG5000981 / DBLG5001011\n //jrivas 1/8/2006 (indAnulacion) DBLG50001003\n if (!solicitud.getIndDevolucion() && !solicitud.getIndAnulacion()) {\n query.append(\" SELECT OID_SOLI_POSI, \");\n query.append(\" ESPO_OID_ESTA_POSI, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CATA_TOTA_LOCA_UNID, \");\n query.append(\" NUM_UNID_POR_ATEN, \");\n query.append(\" NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CONT_UNIT_LOCA, \");\n query.append(\" IND_CTRL_STOC, \");\n query.append(\" IND_CTRL_LIQU, \");\n query.append(\" IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, \");\n query.append(\" MAPR_OID_MARC_PROD, \");\n query.append(\" UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, \");\n query.append(\" GENE_OID_GENE, \");\n query.append(\" SGEN_OID_SUPE_GENE, \");\n query.append(\" TOFE_OID_TIPO_OFER, \");\n query.append(\" CIVI_OID_CICLO_VIDA, \");\n query.append(\" SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, \");\n query.append(\" VAL_PREC_FACT_UNIT_LOCA, \");\n query.append(\" VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" PRE_OFERT_DETAL OD \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.OFDE_OID_DETA_OFER = OD.OID_DETA_OFER(+) \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n } else {\n query.append(\" SELECT OID_SOLI_POSI, ESPO_OID_ESTA_POSI, NUM_UNID_POR_ATEN, NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, IND_CTRL_STOC, IND_CTRL_LIQU, IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, MAPR_OID_MARC_PROD, UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, GENE_OID_GENE, SGEN_OID_SUPE_GENE, \");\n query.append(\" A.CIVI_OID_CICLO_VIDA, A.TOFE_OID_TIPO_OFER, SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, VAL_PREC_FACT_UNIT_LOCA, VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if(solicitud.isValidaReemplazo()) {\n query.append(\" ,(SELECT COUNT(1) FROM pre_matri_factu mf, PRE_MATRI_REEMP mr \");\n query.append(\" WHERE mf.OID_MATR_FACT = mr.MAFA_OID_COD_REEM \"); \n query.append(\" AND mf.ofde_oid_deta_ofer = SP.OFDE_OID_DETA_OFER) COD_REEM \");\n }\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" (SELECT DISTINCT OD.CIVI_OID_CICLO_VIDA, OD.TOFE_OID_TIPO_OFER, \");\n query.append(\" OD.PROD_OID_PROD \");\n query.append(\" FROM PRE_OFERT_DETAL OD, \");\n query.append(\" PRE_OFERT O, \");\n query.append(\" PRE_MATRI_FACTU_CABEC MFC \");\n query.append(\" WHERE OD.OFER_OID_OFER = O.OID_OFER \");\n query.append(\" AND O.MFCA_OID_CABE = MFC.OID_CABE \");\n query.append(\" AND MFC.PERD_OID_PERI = \");\n query.append(\" (SELECT DISTINCT SC3.PERD_OID_PERI \");\n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" PED_SOLIC_CABEC SC, \");\n query.append(\" PED_SOLIC_CABEC SC2, \");\n query.append(\" PED_SOLIC_CABEC SC3 \");\n query.append(\" WHERE SC.OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = SC.OID_SOLI_CABE \");\n query.append(\" AND SC.SOCA_OID_DOCU_REFE = SC2.OID_SOLI_CABE \");\n query.append(\" AND SC3.SOCA_OID_SOLI_CABE = SC2.OID_SOLI_CABE \");\n query.append(\" AND OD.VAL_CODI_VENT = SP.VAL_CODI_VENT \");\n query.append(\" AND OD.PROD_OID_PROD = SP.PROD_OID_PROD)) A \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND A.PROD_OID_PROD = SP.PROD_OID_PROD \");\n }\n\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* Posiciones \" + respuesta); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n solicitud.setPosiciones(new Posicion[0]);\n } else {\n Posicion[] posiciones = new Posicion[respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n posiciones[i] = new Posicion();\n posiciones[i].setSolicitud(solicitud);\n posiciones[i].setOidPosicion(new Long(((BigDecimal) \n respuesta.getValueAt(i, \"OID_SOLI_POSI\")).longValue()));\n\n {\n BigDecimal oidPosicion = (BigDecimal) respuesta\n .getValueAt(i, \"ESPO_OID_ESTA_POSI\");\n posiciones[i].setEstado((oidPosicion != null) ? new Long(\n oidPosicion.longValue()) : null);\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /*{\n BigDecimal precio1 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_TOTA_LOCA_UNID\");\n posiciones[i].setPrecioCatalogTotalUniDemandaReal(\n (precio1 != null) ? precio1 : new BigDecimal(0));\n }*/\n\n {\n BigDecimal unidadesPorAtender = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_POR_ATEN\");\n posiciones[i].setUnidadesPorAtender(\n (unidadesPorAtender != null) ? new Long(\n unidadesPorAtender.longValue()) : new Long(0));\n }\n\n {\n BigDecimal unidadesComprometidas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_COMPR\");\n posiciones[i].setUnidadesComprometidas(\n (unidadesComprometidas != null) ? new Long(\n unidadesComprometidas.longValue()) : new Long(0));\n }\n\n {\n BigDecimal precio2 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_UNIT_LOCA\");\n posiciones[i].setPrecioCatalogoUnitarioLocal(\n (precio2 != null) ? precio2 : new BigDecimal(0));\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /* BigDecimal precio3 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CONT_UNIT_LOCA\");\n posiciones[i].setPrecioContableUnitarioLocal(\n (precio3 != null) ? precio3 : new BigDecimal(0));*/\n\n\n {\n BigDecimal controlStock = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_STOC\");\n\n if (controlStock == null) {\n posiciones[i].setControlStock(false);\n } else {\n if (controlStock.intValue() == 1) {\n posiciones[i].setControlStock(true);\n } else {\n posiciones[i].setControlStock(false);\n }\n }\n }\n\n {\n BigDecimal controlLiquidacion = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_LIQU\");\n\n if (controlLiquidacion == null) {\n posiciones[i].setControlLiquidacion(false);\n } else {\n if (controlLiquidacion.intValue() == 1) {\n posiciones[i].setControlLiquidacion(true);\n } else {\n posiciones[i].setControlLiquidacion(false);\n }\n }\n }\n\n {\n BigDecimal limiteVenta = (BigDecimal) respuesta\n .getValueAt(i, \"IND_LIMI_VENT\");\n\n if (limiteVenta == null) {\n posiciones[i].setLimiteVenta(false);\n } else {\n if (limiteVenta.intValue() == 1) {\n posiciones[i].setLimiteVenta(true);\n } else {\n posiciones[i].setLimiteVenta(false);\n }\n }\n }\n\n {\n BigDecimal unidades = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA_REAL\");\n posiciones[i].setUnidadesDemandaReal((unidades != null) \n ? new Long(unidades.longValue()) : new Long(0));\n }\n\n {\n BigDecimal oidMarcaProducto = (BigDecimal) respuesta\n .getValueAt(i, \"MAPR_OID_MARC_PROD\");\n posiciones[i].setOidMarcaProducto(\n (oidMarcaProducto != null) ? new Long(oidMarcaProducto\n .longValue()) : null);\n }\n\n {\n BigDecimal oidUnidadNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"UNEG_OID_UNID_NEGO\");\n posiciones[i].setOidUnidadNegocio(\n (oidUnidadNegocio != null) ? new Long(oidUnidadNegocio\n .longValue()) : null);\n }\n\n {\n BigDecimal oidNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"NEGO_OID_NEGO\");\n posiciones[i].setOidNegocio((oidNegocio != null) \n ? new Long(oidNegocio.longValue()) : null);\n }\n\n {\n BigDecimal oidGenerico = (BigDecimal) respuesta\n .getValueAt(i, \"GENE_OID_GENE\");\n posiciones[i].setOidGenerico((oidGenerico != null) \n ? new Long(oidGenerico.longValue()) : null);\n }\n\n {\n BigDecimal oidSuperGenerico = (BigDecimal) respuesta \n .getValueAt(i, \"SGEN_OID_SUPE_GENE\");\n posiciones[i].setOidSuperGenerico(\n (oidSuperGenerico != null) ? new Long(oidSuperGenerico\n .longValue()) : null);\n }\n\n BigDecimal uniDemandadas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA\");\n posiciones[i].setUnidadesDemandadas((uniDemandadas != null) \n ? new Long(uniDemandadas.longValue()) : new Long(0));\n\n posiciones[i].setOidProducto(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"OID_PROD\")).longValue()));\n \n BigDecimal oidTipoOferta = (BigDecimal) respuesta \n .getValueAt(i, \"TOFE_OID_TIPO_OFER\"); \n posiciones[i].setOidTipoOferta(\n (oidTipoOferta != null) ? new Long(oidTipoOferta\n .longValue()) : null);\n \n BigDecimal oidCicloVida = (BigDecimal) respuesta \n .getValueAt(i, \"CIVI_OID_CICLO_VIDA\"); \n posiciones[i].setOidCicloVida(\n (oidCicloVida != null) ? new Long(oidCicloVida\n .longValue()) : null);\n \n posiciones[i].setPrecioFacturaUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_FACT_UNIT_LOCA\"));\n \n posiciones[i].setPrecioNetoUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_NETO_UNIT_LOCA\"));\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if (solicitud.getIndDevolucion() && solicitud.isValidaReemplazo()) { \n BigDecimal codigoReemplazo = (BigDecimal) respuesta.getValueAt(i, \"COD_REEM\");\n \n if (codigoReemplazo == null) {\n posiciones[i].setProductoReemplazo(false);\n } else {\n if (codigoReemplazo.intValue() > 0) {\n posiciones[i].setProductoReemplazo(true);\n } else {\n posiciones[i].setProductoReemplazo(false);\n }\n }\n } else \n posiciones[i].setProductoReemplazo(false);\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n BigDecimal oidDetalleOferta = (BigDecimal) respuesta \n .getValueAt(i, \"OFDE_OID_DETA_OFER\"); \n posiciones[i].setOidDetalleOferta(\n (oidDetalleOferta != null) ? new Long(oidDetalleOferta.longValue()) : null); \n \n } // posiciones\n\n solicitud.setPosiciones(posiciones);\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Salida\");\n }", "public static ArrayList verTicket (String DNICliente) throws SQLException{\n PreparedStatement query=null;\n ResultSet resultado=null;\n ArrayList <Ticket> listaTickets=new ArrayList();\n try{\n query=Herramientas.getConexion().prepareStatement(\"SELECT * FROM ticket WHERE DNI_cliente=?\");\n query.setString(1, DNICliente);\n resultado=query.executeQuery();\n while(resultado.next()){\n DateTimeFormatter formatoFecha = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n DateTimeFormatter formatoHora = DateTimeFormatter.ofPattern(\"HH:mm\");\n LocalDate fecha=LocalDate.parse(resultado.getString(4),formatoFecha);\n LocalTime hora=LocalTime.parse(resultado.getString(5),formatoHora);\n ArrayList <LineaCompra> lineasT1=new ArrayList();\n Ticket t1=new Ticket(resultado.getInt(1),resultado.getInt(3),fecha,hora,resultado.getDouble(6),lineasT1);\n t1.verLineaTicket();\n listaTickets.add(t1);\n }\n } catch(SQLException ex){\n Herramientas.aviso(\"Ha habido un error al recuperar sus tickets\");\n Excepciones.pasarExcepcionLog(\"Ha habido un error al recuperar sus tickets\", ex);\n } finally{\n resultado.close();\n query.close();\n }\n return listaTickets;\n }", "public List<ExistenciaMaq> buscarExistencias(final Long almacenId,final Date fecha);", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Override\n\tpublic ArrayList<VOFactura> getAllFacturasByDate(Calendar fechaDesde,\n\t\t\tCalendar fechaHasta) {\n\t\t\n\t\tSystem.out.println(\"@DAOFACTURAS: getallfacturasbydate!\");\n\t\t\n\t\tDBConnection con = null;\n\t\tStatement stm = null;\n\t\tString sql = null;\n\t\tResultSet res = null;\n\t\t\n\t\tVOFactura factura;\n\t\tArrayList<VOFactura> listaFacturas = new ArrayList<VOFactura>();\n\t\t\n\t\tjava.sql.Date sqlDesde = new java.sql.Date(fechaDesde.getTimeInMillis());\n\t\tjava.sql.Date sqlHasta = new java.sql.Date(fechaHasta.getTimeInMillis());\n\t\t\n\t\ttry {\n\t\t\tcon = new DBConnection(\"root\",\"walkirias84\");\n\t\t\tstm = con.getConnection().createStatement();\n\t\t\tsql = \"SELECT * FROM factura fac\"+\n\t\t\t\" WHERE fac.facfecha >= '\"+sqlDesde+\"' \"+\n\t\t\t\" AND fac.facfecha < '\"+sqlHasta+\"' \";\n\t\t\tres = stm.executeQuery(sql);\n\n\t\t\tSystem.out.println(\"comparando fechas sql: \"+sql);\n\t\t\t\n\t\t\twhile(res.next()) {\n\t\t\t\tfactura = new VOFactura();\n\t\t\t\tfactura.setId(res.getInt(1));\n\t\t\t\tfactura.setNumero(res.getInt(2));\n\t\t\t\tfactura.setIdCliente(res.getInt(3));\n\t\t\t\tCalendar fecha = Calendar.getInstance();\n\t\t\t\tfecha.setTimeInMillis(res.getDate(4).getTime());\n\t\t\t\tfactura.setFecha(fecha);\n\t\t\t\tfactura.setValorNeto(res.getBigDecimal(5));\n\t\t\t\tfactura.setValorIva(res.getBigDecimal(6));\n\t\t\t\tfactura.setValorTotal(res.getBigDecimal(7));\n\t\t\t\t\n\t\t\t\tlistaFacturas.add(factura);\n\t\t\t}\n\n\t\t\treturn listaFacturas;\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t if (res != null) try { res.close(); } catch (SQLException logOrIgnore) {}\n\t if (stm != null) try { stm.close(); } catch (SQLException logOrIgnore) {}\n\t if (con != null) try { con.getConnection().close(); } catch (SQLException logOrIgnore) {}\n\t }\n\t\t\n\t\treturn null;\n\t}", "public static void consultaEleicoesPassadas() {\n\t\tArrayList<Eleicao> lista;\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tlista = rmiserver.getEleicoesPassadas();\n\t\t\t\tif(lista.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"Nao existem eleicoes para mostrar.\");\n\t\t\t\t}else {\n\t\t\t\t\tfor(Eleicao x: lista) {\n\t\t\t\t\t\tSystem.out.println(\"\\nEleicao \"+x.titulo);\n\t\t\t\t\t\tSystem.out.println(\"\\tID: \"+x.id);\n\t\t\t\t\t\tSystem.out.println(\"\\tDescricao: \"+x.descricao);\n\t\t\t\t\t\tSystem.out.println(\"\\tData Inicio: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"\\tData Fim: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"Resultados: \");\n\t\t\t\t\t\tif(x.tipo == 1) {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tint alunos = 0, docentes = 0, funcs = 0;\n\t\t\t\t\t\t\t\tfor(Lista y:x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\talunos += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tfuncs += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tdocentes += y.contagem;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\tif(alunos>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)alunos * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tif(funcs>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)funcs * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tif(docentes>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)docentes * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"4\")) {\n\t\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% sobre Total (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t\t\n\t}", "public static ArrayList <FichajeOperarios> obtenerFichajeOperarios(Date fecha) throws SQLException{\n Connection conexion=null;\n Connection conexion2=null;\n ResultSet resultSet;\n PreparedStatement statement;\n ArrayList <FichajeOperarios> FichajeOperarios=new ArrayList();\n Conexion con=new Conexion();\n\n //java.util.Date fecha = new Date();\n \n //para saber la fecha actual\n Date fechaActual = new Date();\n DateFormat formatoFecha = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n //System.out.println(formatoFecha.format(fechaActual));\n \n try {\n\n conexion = con.connecta();\n\n\n statement=conexion.prepareStatement(\"select codigo,nombre,HORA_ENTRADA,centro from \"\n + \" (SELECT op.codigo,op.nombre,F2.FECHA AS FECHA_ENTRADA,F2.HORA AS HORA_ENTRADA,F2.FECHA+f2.HORA AS FICHA_ENTRADA,centro.DESCRIP as CENTRO,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno order by f22.recno) AS FECHA_SALIDA,\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) AS HORA_SALIDA,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno)+\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) as FICHA_SALIDA \"\n + \" FROM E001_OPERARIO as op left join e001_fichajes2 as f2 on op.codigo=f2.OPERARIO and f2.tipo='E' JOIN E001_centrost as centro on f2.CENTROTRAB=centro.CODIGO \"\n + \" WHERE F2.FECHA='\"+formatoFecha.format(fecha)+\"' and f2.HORA=(select max(hora) from e001_fichajes2 as f22 where f2.operario=f22.operario and f22.tipo='e' and f22.FECHA=f2.FECHA)) as a\"\n + \" where FICHA_SALIDA is null \"\n + \" ORDER BY codigo\");\n \n resultSet = statement.executeQuery();\n while (resultSet.next()) {\n FichajeOperarios fiop=new FichajeOperarios(); \n fiop.setCodigo(resultSet.getString(\"CODIGO\"));\n fiop.setNombre(resultSet.getString(\"NOMBRE\"));\n fiop.setHora_Entrada(resultSet.getString(\"HORA_ENTRADA\"));\n //fiop.setHora_Salida(resultSet.getString(\"HORA_SALIDA\"));\n fiop.setCentro(resultSet.getString(\"CENTRO\"));\n FichajeOperarios.add(fiop);\n }\n \n } catch (SQLException ex) {\n System.out.println(ex);\n \n }\n return FichajeOperarios;\n \n \n }", "private String getQuerySelecaoClientesRebarba()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN, \" \n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.DAT_EXECUCAO, \" \n\t\t\t+\t\" P_ASSINANTE.DAT_ENTRADA_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_SUSPENSO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_ISENTO_LIMITE, \"\n\t\t\t+\t\" ASSINANTE.IDT_STATUS, \" \n\t\t\t+\t\" ASSINANTE.VLR_SALDO_PRINCIPAL, \" \n\t\t\t+\t\" ASSINANTE.DAT_EXPIRACAO_PRINCIPAL, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_BONUS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_SMS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_GPRS, \" \n\t\t\t//A divisao por 60 deve-se a alteracao da carga de CDRs para preencher os valores da \n\t\t\t//TBL_GER_TOTALIZACAO_PULA_PULA em segundos e nao minutos, de forma a diminuir a perda de precisao.\n\t\t\t+\t\" NVL(MINUTOS.MIN_CREDITO, 0)/60 AS MIN_CREDITO, \" \n\t\t\t+\t\" NVL(MINUTOS.MIN_FF, 0)/60 AS MIN_FF \" \n\t\t\t+\t\"FROM \"\n\t\t\t+\t\" TBL_APR_ASSINANTE ASSINANTE, \"\n\t\t\t+\t\" TBL_GER_PROMOCAO PROMOCAO, \" \n\t\t\t+\t\" TBL_GER_PROMOCAO_ASSINANTE P_ASSINANTE, \" \n\t\t\t+\t\" TBL_GER_TOTALIZACAO_PULA_PULA MINUTOS \"\n\t\t\t+\t\"WHERE \"\n\t\t\t+\t\" ASSINANTE.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO = PROMOCAO.IDT_PROMOCAO AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN = MINUTOS.IDT_MSISDN (+) AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO = ? AND \"\n\t\t\t//Descartar assinantes que entraram na promocao no mes da execucao\n\t\t\t+\t\" MINUTOS.DAT_MES (+) = ? AND \"\n\t\t\t+\t\" P_ASSINANTE.DAT_ENTRADA_PROMOCAO < ? AND \"\n\t\t\t+\t\" PROMOCAO.IDT_CATEGORIA = \" \n\t\t\t+\t\tString.valueOf(ID_CATEGORIA_PULA_PULA) + \" AND \"\n\t\t\t//PONTO DE ATENCAO: Verificar pela fila de recargas e nao pela tabela de recargas devido aos\n\t\t\t//agendamentos (Se a execucao na fila de recargas ainda nao tiver sido realizada, o registro na\n\t\t\t//fila sera duplicado)\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_REC_FILA_RECARGAS RECARGAS \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" RECARGAS.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" RECARGAS.TIP_TRANSACAO = ? AND \"\n\t\t\t+\t\" RECARGAS.IDT_STATUS_PROCESSAMENTO IN \" \n\t\t\t+\t\" (\" \n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_NAO_EXECUTADO) + \", \" \n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_OK) + \", \"\n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_TESTE_PULA_PULA) \n\t\t\t+\t\" ) AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO >= ? AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO < ? \"\n\t\t\t+\t\" ) AND \"\n\t\t\t//Descartar assinantes que nao possuem ligacoes\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_GER_HISTORICO_PULA_PULA HISTORICO \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" HISTORICO.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" HISTORICO.DAT_EXECUCAO BETWEEN ? AND ? AND \" \n\t\t\t+\t\" HISTORICO.IDT_CODIGO_RETORNO = \" + String.valueOf(RET_PULA_PULA_LIGACOES_NOK) \n\t\t\t+\t\" ) \";\n\n\t\treturn result;\n\t}", "@Override\n\tpublic Collection<LineaComercialClasificacionDTO> consultarLineaComercialClasificacionAsignacionMasivaNoIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,String codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva No Ingresar: {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tBoolean clearCache = Boolean.TRUE;\n\t\tCollection<LineaComercialClasificacionDTO> lineaComercialClasificacionDTOs = new ArrayList<LineaComercialClasificacionDTO>();\n\t\ttry {\n\t\t\tsession = hibernateHLineaComercialClasificacion.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\n\t\t\t\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\" SELECT LC, L, C, CV \");\n\t\t\tquery.append(\" FROM LineaComercialClasificacionDTO LC, LineaComercialDTO L, ClasificacionDTO C, CatalogoValorDTO CV \");\n\t\t\tquery.append(\" WHERE L.id.codigoLineaComercial = LC.codigoLineaComercial \");\n//\t\t\tquery.append(\" AND L.nivel = 0 \");\n\t\t\tquery.append(\" AND L.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND LC.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = '\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion = C.id.codigoClasificacion \");\n\t\tif(!codigoLinCom.equals(\"null\")){\t\n\t\t\tquery.append(\" AND L.id.codigoLineaComercial != \"+codigoLinCom);\n\t\t}\t\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = CV.id.codigoCatalogoValor \");\n\t\t\tquery.append(\" AND L.codigoTipoLineaComercial = CV.id.codigoCatalogoTipo \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion IN ( \");\n\t\t\tif(!nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" AND codigoClasificacionPadre IN( \");\n\t\t\t}\n\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+\" )) \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" \"+codigoClasificacion+\") \");\n\t\t\t}\n\n\t\t\tsqlQuery = hibernateHLineaComercialClasificacion.createQuery(query.toString(), clearCache);\n\t\t\t\n\t\t\t/**\n\t\t\t * aqui se asigna al objeto LineaComercialClasificacionDTO los objetos (ClasificacionDTO,LineaComercialDTO)\n\t\t\t * que nos entrego la consulta por separado\n\t\t\t */\n\t\t\tCollection<Object[]> var = sqlQuery.list();\n\t\t\tfor(Object[] object:var){\n\t\t\t\tLineaComercialClasificacionDTO l=(LineaComercialClasificacionDTO)object[0];\n\t\t\t\tl.setLineaComercial((LineaComercialDTO)object[1]);\n\t\t\t\tl.setClasificacion((ClasificacionDTO)object[2]);\n\t\t\t\tl.getLineaComercial().setTipoLineaComercial((CatalogoValorDTO)object[3]);\n\t\t\t\tlineaComercialClasificacionDTOs.add(l);\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n\t\t\n\t\t\n\t\treturn lineaComercialClasificacionDTOs;\n\t}", "public ConsultasRecibos() {\n initComponents();\n cargar_todos_recibos();//LLAMADA A MOSTRAR TODOS LOS RECIBOS\n jDateChooser1.setEnabled(false);//OPCION DE FECHA BLOQUEADA \n }", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}", "public List<Reporte> select(Long fechaInicio, Long fechaFin , int tipoReporte) {\r\n long startTime = System.currentTimeMillis(); //todo: reeplazar System.currentTimeMillis() por SystemClock.uptimeMillis()\r\n\r\n SQLiteDatabase db = sqLiteService.getWritableDatabase();\r\n\r\n Cursor resourse = db.rawQuery(\"\",null); // FIXME\r\n\r\n switch(tipoReporte){\r\n\r\n case 1:\r\n Log.w(\"Reporte\",\"Los mas vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos DESC LIMIT 0,10) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n break;\r\n\r\n case 2:\r\n Log.w(\"Reporte\",\"Los menos vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos ASC LIMIT 0,10) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n break;\r\n\r\n case 3:\r\n\r\n Log.w(\"Reporte\",\"Ganancias\");\r\n\r\n resourse = db.rawQuery(\"SELECT * \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (SELECT it.id_articulo, SUM(importe_total) AS Venta,SUM(cantidad) AS Vendidos ,SUM((it.importe_total - (it.cantidad * it.precio_compra))) AS Ganancia, it.precio_compra AS PrecioCompra \" +\r\n \" FROM Items_Ticket AS it INNER JOIN Tickets AS t ON it.id_ticket = t.id_ticket \" +\r\n \" WHERE t.id_tipo_ticket = 1 AND t.timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" GROUP BY it.id_articulo , it.precio_compra\" +\r\n \" ORDER BY Vendidos DESC ) AS Calculo \" +\r\n \" WHERE VA.id_articulo = Calculo.id_articulo\",null);\r\n /*/////////////////////////////Old reporte ganancias/////////////////////////////////\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos DESC ) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n *////////////////////////////////////////////////////////////////////////////////////\r\n break;\r\n\r\n case 4:\r\n Log.w(\"Reporte\",\"Garnel top mas vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos ASC ) AS Productos \" +\r\n \" WHERE VA.id_articulo = Productos.id_articulo\" +\r\n \" AND granel = 1\", null);\r\n break;\r\n\r\n case 5:\r\n Log.w(\"Reporte\", \"Cash Closing\");\r\n final String sql = \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha,\\n\" +\r\n \"\\n\" +\r\n \" a.id_usuario, b.nombre As Nombre_Usuario, 'Saldo Inicial' As Concepto, a.importe_real As Cantidad, strftime('%H:%M:%S', a.fecha_apertura) As Hora, 1 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Registro_apertura a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) a\\n\" +\r\n \"\\n\" +\r\n \"Union\\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Entradas de dinero' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 2 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) b\\n\" +\r\n \"\\n\" +\r\n \"Union \\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Salidas de dinero' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 3 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) c\\n\" +\r\n \"\\n\" +\r\n \"Union \\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Ventas en efectivo' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 4 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) d \\n\" +\r\n \"\\n\" +\r\n \"Union\\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.fecha_cierre, 'unixepoch', 'localtime')) As Fecha,\\n\" +\r\n \"\\n\" +\r\n \" a.id_usuario, b.nombre As Nombre_Usuario, 'Total en caja al cierre' As Concepto, 10.0 As Cantidad, '06:00 PM' As Hora, 5 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Registro_cierre a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) e\\n\" +\r\n \"\\n\" +\r\n \"Order By Orden asc\";\r\n resourse = db.rawQuery(sql, null);\r\n\r\n break;\r\n// case 6:String sql = Log.w(\"Reporte\", \"Specific row report\");\r\n// final String sql = \"\"\r\n\r\n }\r\n\r\n List<Reporte> reportes = new ArrayList<>();\r\n Reporte reporte ;\r\n\r\n if(tipoReporte == 5) {\r\n while(resourse.moveToNext()){\r\n reporte = new Reporte();\r\n reporte.setFecha(resourse.getString(0));\r\n reporte.setIdUsuario(resourse.getInt(1));\r\n reporte.setNombreUsuario(resourse.getString(2));\r\n reporte.setConcepto(resourse.getString(3));\r\n reporte.setCantidad(resourse.getString(4));\r\n reporte.setHora(resourse.getString(5));\r\n reporte.setOrden(resourse.getInt(6));\r\n Log.w(\"REPORTE\", Utils.pojoToString(reporte));\r\n reportes.add(reporte);\r\n }\r\n\r\n } else {\r\n while(resourse.moveToNext()){\r\n reporte = new Reporte();\r\n\r\n reporte.setIdArticulo(resourse.getInt(0));\r\n reporte.setIdCentral(resourse.getInt(1));\r\n reporte.setPrecioBase(resourse.getDouble(2));\r\n if(tipoReporte != 3) {\r\n reporte.setPrecioCompra(resourse.getDouble(3));\r\n }else{\r\n reporte.setPrecioCompra(resourse.getDouble(15));\r\n }\r\n reporte.setCodigoBarras(resourse.getString(4));\r\n reporte.setNombreArticulo(resourse.getString(5));\r\n reporte.setNombreMarca(resourse.getString(6));\r\n reporte.setPresentacion(resourse.getString(7));\r\n reporte.setContenido(resourse.getInt(8));\r\n reporte.setUnidad(resourse.getString(9));\r\n reporte.setGranel(resourse.getInt(10) != 0);\r\n reporte.setVenta(resourse.getDouble(12));\r\n reporte.setVendidos(resourse.getDouble(13));\r\n reporte.setGanancia(resourse.getDouble(14));\r\n Log.w(\"REPORTE\", Utils.pojoToString(reporte));\r\n reportes.add(reporte);\r\n }\r\n\r\n }\r\n\r\n resourse.close();\r\n db.close();\r\n\r\n executionTime = System.currentTimeMillis() - startTime;\r\n\r\n if (reportes.size() <= 0){\r\n return null;\r\n }\r\n\r\n return reportes;\r\n }", "@Override\n\t/*Método para usarse en el momento de ver las reservas de un determinado usuaario en el panel del mismo*/\n\tpublic String verReservas(String nombreusuario) {\n\t\tGson json= new Gson(); \n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"Select * from alquileres alq, peliculas p where alq.pelicula=p.id and alq.usuario LIKE '\"+nombreusuario+\"' order by p.titulo\"; //Seleccion de los alquileres relacionados con el usuario \n\t\ttry {\n\t\t\t\n\t\t\tArrayList<Alquiler> datos= new ArrayList<Alquiler>(); //ArrayList que va a almacenar los alquileres del usuario\n\t\t\t\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t\n\t\t\t//Se cogen los datos necesarios \n\t\t\twhile(rs.next()) {\n\t\t\t\tString idpelicula=rs.getString(\"id\");\n\t\t\t\tint numero_alquiler=rs.getInt(\"numero_alquiler\");\n\t\t\t\tString fecha=rs.getString(\"fecha_alquiler\");\n\t\t\t\tString titulo= rs.getString(\"titulo\"); \n\t\t\t\tString genero= rs.getString(\"genero\"); \n\t\t\t\tString cadenaestreno=rs.getString(\"estreno\");\n\t\t\t\tString estreno=\"\"; \n\t\t\t\t\n\t\t\t\t//comprobación y asignación del atributo estreno:\n\t\t\t\t/*Como en la base de datos se guarda como una cadena de texto, cuando se devuelve\n\t\t\t\t * hay que comprobar su valor y dependiendo del que sea pasarlo a una cadena para pasarla a la clase \n\t\t\t\t * Alquiler*/\n\t\t\t\t\n\t\t\t\tif(cadenaestreno.equals(\"true\")) {\n\t\t\t\t\testreno=\"Si\";\n\t\t\t\t}else if(cadenaestreno.equals(\"false\")) {\n\t\t\t\t\testreno=\"No\";\n\t\t\t\t}\n\t\t\t\tAlquiler alquiler=new Alquiler(numero_alquiler,idpelicula,fecha,titulo,genero,estreno); //uso esta clase para poder enviar los datos\n\t\t\t\tdatos.add(alquiler); //añado el alquiler a los datos que se van a devolver\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tst.close();\n\t\treturn json.toJson(datos); //devuelvo la lista de los datos en JSON \n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t}", "public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + respuesta);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }", "private void retrieveDatos(Long codProfesor, Long anio) {\n recuperaPerfDoc(codProfesor, anio);\r\n }", "public static ArrayList<Actividad> selectActividadesInforme(String login, String fechaI, String fechaF) throws ParseException {\n //Comprobar que la fecha de Inicio no es posterior a hoy\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date fechaIU = formatter.parse(fechaI);\n Date hoy = Calendar.getInstance().getTime();\n if (fechaIU.compareTo(hoy) > 0) {\n return null;\n } else {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n //Selecciona actividades de fase de proyectos \"En Curso\" de determinado usuario;\n String query = \"SELECT * FROM Actividades a,Fases f,Proyectos p WHERE a.idFase=f.id AND f.idProyecto=p.id AND p.estado='E' AND a.login=?\";\n ArrayList<Actividad> actividades = new ArrayList<Actividad>();\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, login);\n rs = ps.executeQuery();\n while (rs.next()) {\n String fechaInicio = String.format(\"%04d-%02d-%02d\", rs.getInt(8), rs.getInt(7), rs.getInt(6));\n String fechaFin = String.format(\"%04d-%02d-%02d\", rs.getInt(11), rs.getInt(10), rs.getInt(9));\n\n Actividad a = new Actividad(rs.getInt(1), login, rs.getString(3), rs.getString(4), rs.getInt(5), fechaInicio, fechaFin, rs.getInt(12), rs.getString(13).charAt(0), rs.getInt(14));\n\n //Comprobar si la actividad obtenida está entre el rango de fechas introducido por el usuario\n if (comprobarFechaEntreFechas(fechaI, fechaF, a)) {\n actividades.add(a);\n }\n }\n rs.close();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return actividades;\n }\n }", "public void buscarMarcacion(){\n\t\t\n \tif(!FuncionesFechas.validaFecha(fCargaI, fCargaF))\n \t{\t\n \t\tlistaMarcacion=null;\n \t\tlistaMarcacionPDF=null;\n \t\treturn ;}\n \tMarcacionDespatch marcacionDespatch=new MarcacionDespatch();\n\t\ttry {\n\t\t\t//listaMarcacion=marcacionDespatch.getMarcacionesPorCodigo(PGP_Usuario.getV_codpersonal());\n\t\t\t/*for(int i=0;i<listaMarcacion.size();i++)\n\t\t\t{\n\t\t\t\tif(listaMarcacion.get(i).getdFecha().after(fCargaI) && listaMarcacion.get(i).getdFecha().before(fCargaF)){\n\t\t\t\t\tSystem.out.println(\"Entroo\\nLista [\"+(i+1)+\"]:\"+listaMarcacion.get(i).getdFecha());\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tlistaMarcacion=marcacionDespatch.getMarcacionesPorCodigoFecha(PGP_Usuario.getV_codpersonal(),fCargaI,fCargaF);//\"44436285\"\n\t\t\tMap parametros = new HashMap();\t\t\t\n\t\t\tparametros.put(\"PARAM_NRODOC\", PGP_Usuario.getV_codpersonal());\n\t\t\tparametros.put(\"PARAM_STR_FI\", FuncionesFechas.getFormatDateDDMMYYYY(fCargaI));\n\t\t\tparametros.put(\"PARAM_STR_FF\", FuncionesFechas.getFormatDateDDMMYYYY(fCargaF));\n\t\t\tlistaMarcacionPDF=marcacionDespatch.reporteMisMarcaciones(parametros);\n\t\t} catch (Exception e) {\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n }", "public ArrayList<DTOcomentarioRta> listadoComentarioxComercio(int idComercio) {\n ArrayList<DTOcomentarioRta> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement st = conn.prepareStatement(\" select co.id_comercio, c.id_comentario, c.nombreUsuario, c.descripcion, c.valoracion, c.fecha, co.nombre , r.descripcion, r.fecha, r.id_rta, co.id_rubro\\n\"\n + \" from Comentarios c join Comercios co on c.id_comercio = co.id_comercio\\n\"\n + \" left join Respuestas r on r.id_comentario = c.id_comentario\\n\"\n + \" where co.id_comercio = ?\");\n st.setInt(1, idComercio);\n ResultSet rs = st.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(1);\n int idcomentario = rs.getInt(2);\n String nombreU = rs.getString(3);\n String descripC = rs.getString(4);\n int valoracion = rs.getInt(5);\n String fechaC = rs.getString(6);\n String nombrecomercio = rs.getString(7);\n String descripcionR = rs.getString(8);\n String fechaR = rs.getString(9);\n int idR = rs.getInt(10);\n int rubro = rs.getInt(11);\n\n rubro rf = new rubro(rubro, \"\", true, \"\", \"\");\n comercio come = new comercio(nombrecomercio, \"\", \"\", id, true, \"\", \"\", rf, \"\");\n Comentario c = new Comentario(idcomentario, descripC, valoracion, nombreU, fechaC, come);\n respuestas r = new respuestas(idR, descripcionR, c, fechaR);\n DTOcomentarioRta cr = new DTOcomentarioRta(c, r);\n\n lista.add(cr);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public java.sql.ResultSet consultaporespecialidadhora(String CodigoEspecialidad,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "@Override\n public void procesarLlegada(Consulta consulta){\n consulta.setTipoModulo(TipoModulo.ClientesYConexiones); //La consulta se encuentra en este módulo.\n\n if(numeroServidores == 0){\n conexionesDescartadas++;\n listaDeEventos.removeIf((Evento ev) -> ev.getConsulta() == consulta); //Quito el timeout si la conexion fue descartada\n }else{\n numeroServidores--;\n consulta.setTiempoIngreso(this.reloj); //Se le da a la consulta el tiempo en el que ingresó al sistema.\n generarLlegadaAdmProcesos(consulta);\n }\n this.generarLlegadaAdmClientes();\n }", "public List getChamado(String servico) {\r\n Solicitacoes e = chamadoHandler(servico);\r\n\r\n List<ChamadoEnderecos> consultas = new ArrayList<>();\r\n String sql = \"SELECT DISTINCT\\n\"\r\n + \"\tpid.cod_pid,\\n\"\r\n + \" pid.nome_estabelecimento,\\n\"\r\n + \" endereco.descricao,\\n\"\r\n + \" endereco.numero,\\n\"\r\n + \" endereco.bairro,\\n\"\r\n + \" endereco.complemento,\\n\"\r\n + \" municipio.nome_municipio,\\n\"\r\n + \" municipio.uf,\\n\"\r\n + \" municipio.cod_IBGE,\\n\"\r\n + \" solicitacoes.id_solicitacao\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \"FROM \\n\"\r\n + \"\tpid \\n\"\r\n + \" INNER JOIN contato on \t(pid.cod_pid = contato.PID_cod_pid)\\n\"\r\n + \" INNER JOIN endereco on \t(pid.cod_pid = endereco.PID_cod_pid)\\n\"\r\n + \" INNER JOIN telefone on \t(contato.id_contato = telefone.Contato_id_contato)\\n\"\r\n + \" INNER JOIN municipio on \t(endereco.Municipio_cod_IBGE = municipio.cod_IBGE)\\n\"\r\n + \" INNER JOIN solicitacoes on (pid.cod_pid= solicitacoes.PID_cod_pid)\\n\"\r\n + \" INNER JOIN servico on\t(solicitacoes.Servico_id_servico=servico.id_servico)\\n\"\r\n + \" \\n\"\r\n + \" \\n\"\r\n + \" WHERE solicitacoes.em_chamado= 3 and servico.id_servico=\" + servico + \";\";\r\n\r\n stmt = null;\r\n rs = null;\r\n \r\n try {\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n while (rs.next()) {\r\n consultas.add(new ChamadoEnderecos(rs.getString(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getString(4),\r\n rs.getString(5),\r\n rs.getString(6),\r\n rs.getString(7),\r\n rs.getString(8),\r\n rs.getString(9),\r\n rs.getString(10)\r\n ));\r\n\r\n }\r\n\r\n } catch (SQLException | ArrayIndexOutOfBoundsException ex) {\r\n Logger.getLogger(SimpleQueries.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return consultas;\r\n }", "public ResultSet MostrarCitasClienteHoy(String nif) throws SQLException { // muestra TODAS las citas de HOY\n\t\t\n\t\tString sql = \"SELECT cita.idCita,cita.fechaCita,cita.estadoCita,cliente.nombreCliente,cliente.nifCliente,medico.nombreMedico,sala.idSala,sala.tamanoSala, horas.Hora FROM cita INNER JOIN cliente ON cita.idClienteAux = cliente.idCliente INNER JOIN medico ON cita.idMedicoAux = medico.idMedico INNER JOIN sala ON cita.idSalaAux = sala.idSala INNER JOIN horas ON cita.idHoraAux = horas.idHora WHERE DATE(fechaCita) >= DATE(NOW()) AND cliente.nifCliente = '\"+nif+\"' ORDER BY fechaCita ASC , Hora ASC\"; // sentencia busqueda CITA de cliente Hoy\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // nueva conexion a la bbdd CREARLO EN TODOS LOS METODOS\n\t\t\tst=(Statement) conn.createStatement();\n\t\t\tresultado = st.executeQuery(sql);\n\t\t\t\t//st.close();\n\t\t\t\t//con.close();\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public void reporteIngresosHotel(Date fechaInicial, Date fechaFinal,TablaModelo modeloConsumos, TablaModelo modeloAlojamientos){\n introducirConsumosHotelFechas(fechaInicial, fechaFinal, modeloConsumos);\n introducirPagosALojamientoHotelFechas(fechaInicial, fechaFinal, modeloAlojamientos);\n \n }", "public String[][] obtenerConsultasBusqueda(String nombre){\n //VARIABLES PARA ALMACENAR LOS DATOS DE LA BASE DE DATOS\n String[][] datos = new String[obtenerRegistrosBusqueda(nombre)][5];\n int i = 0;\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try {\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n \n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT nombre, apellidos, incentivo, descuentos, total FROM personal INNER JOIN nomina ON personal.id = nomina.id WHERE nombre = ?\");\n ps.setString(1, nombre);\n res = ps.executeQuery();\n \n while (res.next()) {\n //SE ALMACENANAN LOS DATOS DE LA BASE DE DATOS EN EL ARREGLO\n datos[i][0] = res.getString(\"nombre\");\n datos[i][1] = res.getString(\"apellidos\");\n datos[i][2] = res.getString(\"incentivo\");\n datos[i][3] = res.getString(\"descuentos\");\n datos[i][4] = res.getString(\"total\");\n i++; \n }\n //SE CIERRA LA CONEXION Y SE RETORNAN LOS DATOS OBTENIDOS\n connect.close();\n return datos;\n }\n //EN CASO DE ERROR SE MUESTRA EL MENSAJE \n catch (Exception e) {\n System.out.println(\"error en resultado: \"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e);\n return datos;\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void aumentarCantidadDisponibleAnx(EmpleadoPuesto empleado) {\r\n\t\tDate fechaActual = new Date();\r\n\t\tInteger anhoActual = fechaActual.getYear() + 1900;\r\n\t\tString sql = \"select anx.* \"\r\n\t\t\t\t+ \"from sinarh.sin_anx anx, general.empleado_concepto_pago pago \"\r\n\t\t\t\t+ \"join general.empleado_puesto empleado \"\r\n\t\t\t\t+ \"on empleado.id_empleado_puesto = pago.id_empleado_puesto \"\r\n\t\t\t\t+ \"join planificacion.planta_cargo_det p \"\r\n\t\t\t\t+ \"on empleado.id_planta_cargo_det = p.id_planta_cargo_det \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_det det \"\r\n\t\t\t\t+ \"on det.id_configuracion_uo_det = p.id_configuracion_uo_det \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo \"\r\n\t\t\t\t+ \"on uo.id_configuracion_uo = det.id_configuracion_uo \"\r\n\t\t\t\t+ \"where anx.ctg_codigo = pago.categoria \"\r\n\t\t\t\t+ \"and anx.obj_codigo = pago.obj_codigo \"\r\n\t\t\t\t+ \"and ani_aniopre = \" + anhoActual\r\n\t\t\t\t+ \" and empleado.id_empleado_puesto = \"\r\n\t\t\t\t+ empleado.getIdEmpleadoPuesto()\r\n\t\t\t\t+ \" and anx.nen_codigo ||'.'|| \" + \"anx.ent_codigo ||'.'|| \"\r\n\t\t\t\t+ \"anx.tip_codigo ||'.'|| \" + \"anx.pro_codigo = uo.codigo_sinarh \";\r\n\t\t\r\n\t\tList<SinAnx> listaAnx = new ArrayList<SinAnx>();\r\n\t\ttry {\r\n\t\t\tlistaAnx = em.createNativeQuery(sql, SinAnx.class).getResultList();\r\n\t\t\tfor (SinAnx anx : listaAnx) {\r\n\t\t\t\tInteger cant = anx.getCantDisponible();\r\n\t\t\t\tcant = cant + 1;\r\n\t\t\t\tanx.setCantDisponible(cant);\r\n\t\t\t\tem.merge(anx);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\t}", "public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public ArrayList<Cuenta> clientesSinTransacciones(String f1, String f2) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n Date fecha1 = Date.valueOf(f1);\n Date fecha2 = Date.valueOf(f2);\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"select c.Codigo as Codigo, c.Codigo_Cliente as Codigo_Cliente, l.Nombre as Nombre from Cuenta c join Cliente l on c.Codigo_Cliente = l.Codigo where c.Codigo not in (select Codigo_Cuenta from Transaccion where Fecha between ? and ?)\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setDate(1, fecha1);\n PrSt.setDate(2, fecha2);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = new Cuenta();\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n cuenta.setNombre(rs.getString(\"Nombre\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\n\t\t\t\t\t\"limit 25 offset 0\");\n\n\t\t\tList<Ficha_epidemiologia_n3> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n3.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Ficha_epidemiologia_n3 ficha_epidemiologia_n3 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\tficha_epidemiologia_n3, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public static Estudiante buscarEstudiante(String Nro_de_ID) {\r\n //meter este método a la base de datos\r\n Estudiante est = new Estudiante();\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion establecida!\");\r\n Statement sentencia = conexion.createStatement();\r\n ResultSet necesario = sentencia.executeQuery(\"select * from estudiante where Nro_de_ID ='\" + Nro_de_ID + \"'\");\r\n\r\n while (necesario.next()) {\r\n\r\n String ced = necesario.getString(\"Nro_de_ID\");\r\n String nomb = necesario.getString(\"Nombres\");\r\n String ape = necesario.getString(\"Apellidos\");\r\n String lab = necesario.getString(\"Laboratorio\");\r\n String carr = necesario.getString(\"Carrera\");\r\n String mod = necesario.getString(\"Modulo\");\r\n String mta = necesario.getString(\"Materia\");\r\n String fecha = necesario.getString(\"Fecha\");\r\n String HI = necesario.getString(\"Hora_Ingreso\");\r\n String HS = necesario.getString(\"Hora_Salida\");\r\n\r\n est.setNro_de_ID(ced);\r\n est.setNombres(nomb);\r\n est.setApellidos(ape);\r\n est.setLaboratorio(lab);\r\n est.setCarrera(carr);\r\n est.setModulo(mod);\r\n est.setMateria(mta);\r\n est.setFecha(fecha);\r\n est.setHora_Ingreso(HI);\r\n est.setHora_Salida(HS);\r\n\r\n }\r\n sentencia.close();\r\n conexion.close();\r\n\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n return est;\r\n }", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "public DTOSalida obtenerAccesosPlantilla(DTOOID dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Entrada\"); \n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet(); \n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.ACCE_OID_ACCE OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS_ACCES A, V_GEN_I18N_SICC B, COM_PLANT_COMIS C \"); \n query.append(\" WHERE \");\n if(dto.getOid() != null) {\n query.append(\" A.PLCO_OID_PLAN_COMI = \" + dto.getOid() + \" AND \");\n }\n query.append(\" A.PLCO_OID_PLAN_COMI = C.OID_PLAN_COMI AND \"); \n query.append(\" C.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n \n query.append(\" B.ATTR_ENTI = 'SEG_ACCES' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \");\n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.ACCE_OID_ACCE \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Salida\"); \n return dtos;\n }", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public ArrayList<Note> pedirTodasLasNotas(){\n ArrayList<Note> todasLasNotas = new ArrayList<>();\n Note nota;\n HashMap<Integer,String> misNotas = new HashMap<Integer,String>();\n ArrayList<String> tituloTratamiento = new ArrayList<String>();\n String[] campos = {\"_id\",\"titulo\",\"fecha\"};\n Cursor c = db.query(\"nota\",campos,null,null,null,null,null);\n if(c.moveToFirst()){\n\n do{\n nota = new Note();\n nota.setId(c.getInt(0));\n nota.setTitulo(c.getString(1));\n nota.setFechaFormateada(c.getString(2));\n todasLasNotas.add(nota);\n }while(c.moveToNext());\n return todasLasNotas;\n }\n\n return todasLasNotas;\n\n }", "private void consultarlistareportes() {\n db= con.getWritableDatabase();\n ReporteIncidente reporte= null;\n listarreportesinc =new ArrayList<ReporteIncidente>();\n Cursor cursor= db.rawQuery(\"select imagen1,asunto_reporte,estado_reporte,desc_reporte,cod_reporte from \"+ Utilitario.TABLE_REPORTE_INCIDENTE+\" where estado_reporte<>'Incompleto'\",null);\n\n while (cursor.moveToNext()){\n reporte= new ReporteIncidente();\n reporte.setImage1(cursor.getBlob(0));\n reporte.setAsunto(cursor.getString(1));\n reporte.setEstado(cursor.getString(2));\n reporte.setDescripcion(cursor.getString(3));\n reporte.setCodreporte(cursor.getInt(4));\n listarreportesinc.add(reporte);\n }\n //obtenerinformacion();\n db.close();\n }", "public static void ConsultarReq(String codCurso) {\n try {\n DefaultTableModel model = (DefaultTableModel) Vistas.ConsultaCursoReq.tblConsultaCurso.getModel();\n model.setRowCount(0);\n String consulta = \"Select distinct curreq.codigoCursoReq AS 'Requerimiento', Curso.nombreCurso AS 'Nombre curso'\\n\"\n + \"from Curso cur\\n\"\n + \"inner join Curso_Requisito curreq\\n\"\n + \"ON (Cur.codigoCurso= curreq.codigoCurso)\\n\"\n + \"join Curso \\n\"\n + \"ON (Curso.codigoCurso = curreq.codigoCursoReq)\"\n + \"WHERE cur.codigoCurso ='\" + codCurso + \"' \";\n ResultSet res = Modelo.ConexionSQL.consulta(consulta);\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getString(1));\n v.add(res.getString(2));\n model.addRow(v);\n Vistas.ConsultaCursoReq.tblConsultaCurso.setModel(model);\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage(), \"Error conexion\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "public String validarAsociacion(String nombre, String dpi, String codigo_cuenta, String codigo_cliente) {\n String mensaje = \"\";\n DM_Cliente dmcli = new DM_Cliente();\n DM_Solicitud dmsol = new DM_Solicitud();\n try {\n Cliente cliente = dmcli.validarCliente(nombre, dpi);\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cuenta);\n if (cliente != null) {\n rs = PrSt.executeQuery();\n if (rs.next()) {\n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n Solicitud solicitud = new Solicitud();\n solicitud.setEmisor(codigo_cliente);\n solicitud.setReceptor(cliente.getCodigo());\n solicitud.setCodigo_cuenta(codigo_cuenta);\n solicitud.setEstado(\"Pendiente\");\n solicitud.setFecha(fecha);\n mensaje = dmsol.agregarSolicitud(solicitud);\n } else {\n mensaje = \"La cuenta no existe\";\n }\n } else {\n mensaje = \"El dueño de la cuenta no existe\";\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return mensaje;\n }", "private void cargarNotasEnfermeria() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/notas_enfermeria.zul\", \"NOTAS DE ENFERMERIA\",\r\n\t\t\t\tparametros);\r\n\t}", "public Estetica(java.awt.Frame parent, boolean modal, String id,String idservicio) {\n super(parent, modal);\n initComponents();\n idserv=idservicio;\n this.setLocationRelativeTo(null); \n idpaciente=id;\n try {\n String consulta=\"SELECT nombrepaciente,sexo,observaciones,color,idrcliente, timestampdiff(month,fecha_nacimiento,curdate()) as edad,raza,telefono,referencia FROM tc_mascotas where Idmascota=\"+id;\n System.out.println(consulta);\n conex con=new conex();\n Statement st = con.getConnection().createStatement();\n ResultSet rs=st.executeQuery(consulta); \n String idcliente=\"0\";\n while (rs.next())\n { \n txtpaciente.setText(rs.getString(\"nombrepaciente\"));\n txtsexo.setText(rs.getString(\"sexo\")); \n txtraza.setText(rs.getString(\"raza\")); \n txtcontacto.setText(rs.getString(\"color\")); \n txttelcontacto.setText(rs.getString(\"telefono\")); \n txtreferencia.setText(rs.getString(\"referencia\")); \n txtgeneralidades.setText(rs.getString(\"observaciones\")); \n idcliente=rs.getString(\"idrcliente\");\n }\n consulta=\"SELECT nombre_completo,telefono,noext,MetodoPago,calle,colonia,municipio,cp,estado FROM tc_clientes where idcliente=\"+idcliente;\n rs=st.executeQuery(consulta); \n while (rs.next())\n { \n txtpropietario.setText(rs.getString(\"nombre_completo\"));\n txttelefono.setText(rs.getString(\"telefono\")); \n txtmetodopago.setText(rs.getString(\"MetodoPago\")); \n //txtraza.setText(rs.getString(\"calle\")+\" #\"+rs.getString(\"noext\")+\" Col. \"+rs.getString(\"colonia\")+\", \"+rs.getString(\"municipio\")+\" CP\"+rs.getString(\"cp\")+\" CP\"+rs.getString(\"estado\")); \n }\n rs.close();\n st.close();\n con.desconectar(); \n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se pudo obtener la informacion de la mascota \"+ex, \"Error sql\", JOptionPane.ERROR_MESSAGE);\n }\n \n \n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public void buscarDatos()throws Exception{\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue().toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\t\t\t\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\n\t\t\tList<Ficha_epidemiologia_n13> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n13.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\t\t\t\n\t\t\tfor (Ficha_epidemiologia_n13 ficha_epidemiologia_n13 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(ficha_epidemiologia_n13, this));\n\t\t\t}\n\t\t\t\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\t\t\t\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "private Map<Long, List<ObligacionCoactivoDTO>> consultaObligacionesComparendo() {\n logger.debug(\"CoactivoEJB::consultaObligacionesComparendo()\");\n Map<Long, List<ObligacionCoactivoDTO>> obligacionesDeudor = new HashMap<>();\n StringBuilder consulta = new StringBuilder();\n consulta.append(\"SELECT \");\n consulta.append(\"p.id_cartera, \");\n consulta.append(\"ca.saldo_capital, \");\n consulta.append(\"ca.saldo_interes, \");\n consulta.append(\"p.numero_obligacion, \");\n consulta.append(\"p.id_deudor, \");\n consulta.append(\"p.fecha_obligacion, \");\n consulta.append(\"p.id_funcionario, \");\n consulta.append(\"p.id_cargue_coactivo, \");\n consulta.append(\"p.id_precoactivo \");\n consulta.append(\"FROM precoactivo p \");\n consulta.append(\"JOIN cartera ca on ca.id_cartera = p.id_cartera \");\n consulta.append(\"WHERE p.id_estado_precoactivo = :estadoAprobado \");\n consulta.append(\"AND p.codigo_tipo_obligacion = :tipoComparendo \");\n\n Query query = em.createNativeQuery(consulta.toString());\n query.setParameter(\"estadoAprobado\", EnumEstadoPrecoactivo.AUTORIZADO.getValue());\n query.setParameter(\"tipoComparendo\", EnumTipoObligacion.COMPARENDO.getValue());\n @SuppressWarnings({ \"unchecked\" })\n List<Object[]> lsObligacionesComparendos = Utilidades.safeList(query.getResultList());\n\n for (Object[] obligacionComparendo : lsObligacionesComparendos) {\n int i = 0;\n BigInteger idCartera = (BigInteger) obligacionComparendo[i++];\n BigDecimal saldoCapital = (BigDecimal) obligacionComparendo[i++];\n BigDecimal saldoInteres = (BigDecimal) obligacionComparendo[i++];\n String numObligacion = (String) obligacionComparendo[i++];\n Long idDeudor = ((BigInteger) obligacionComparendo[i++]).longValue();\n Date fechaObligacion = (Date) obligacionComparendo[i++];\n Integer idFuncionario = (Integer) obligacionComparendo[i++];\n Long idCargue = ((BigInteger) obligacionComparendo[i++]).longValue();\n Long idPrecoactivo = ((BigInteger) obligacionComparendo[i++]).longValue();\n\n CoactivoDTO coactivo = new CoactivoDTO();\n coactivo.setCargueCoactivo(new CargueCoactivoDTO(idCargue));\n coactivo.setFuncionario(new FuncionarioDTO(idFuncionario));\n coactivo.setPersona(new PersonaDTO(idDeudor));\n // Arma obligacion que va a entrar a coactivo\n ObligacionCoactivoDTO obligacion = new ObligacionCoactivoDTO();\n obligacion.setCodigoTipoObligacion(EnumTipoObligacion.COMPARENDO.getValue());\n obligacion.setCartera(new CarteraDTO(idCartera.longValue()));\n obligacion.setNumeroObligacion(numObligacion);\n obligacion.setCoactivo(coactivo);\n obligacion.setFechaObligacion(fechaObligacion);\n obligacion.setValorObligacion(saldoCapital);\n obligacion.setValorInteresMoratorios(saldoInteres);\n obligacion.setIdPrecoativo(idPrecoactivo);\n if (!obligacionesDeudor.containsKey(idDeudor)) {\n obligacionesDeudor.put(idDeudor, new ArrayList<ObligacionCoactivoDTO>());\n }\n obligacionesDeudor.get(idDeudor).add(obligacion);\n }\n return obligacionesDeudor;\n }", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "public void rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud)\n throws MareException{\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Entrada\");\n Long oidConsolidado = null, oidPeriodo = null;\n RecordSet rs;\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT MAX(SOL_ORIG.OID_SOLI_CABE) OID_SOLI_CABE, MAX(SOL_ORIG.PERD_OID_PERI) PERD_OID_PERI \");\n\n query.append(\" FROM PED_SOLIC_CABEC SOL_DEVO, \");\n query.append(\" PED_SOLIC_CABEC SOL_ORIG, \");\n query.append(\" PED_SOLIC_CABEC SOL_DEVUELTA, \");\n query.append(\" INC_SOLIC_CONCU_PUNTA SCP, \");\n query.append(\" PED_TIPO_SOLIC_PAIS PTSP, \");\n query.append(\" PED_TIPO_SOLIC PTS \");\n \n query.append(\" WHERE SOL_DEVO.OID_SOLI_CABE = \" + dtoSolicitud.getOidSolicitud().toString() );\n query.append(\" AND SOL_DEVO.SOCA_OID_DOCU_REFE = SOL_ORIG.OID_SOLI_CABE \");\n query.append(\" AND SOL_ORIG.OID_SOLI_CABE = SOL_DEVUELTA.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVUELTA.OID_SOLI_CABE = SCP.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVO.TSPA_OID_TIPO_SOLI_PAIS = PTSP.OID_TIPO_SOLI_PAIS \");\n query.append(\" AND PTSP.TSOL_OID_TIPO_SOLI = PTS.OID_TIPO_SOLI \");\n query.append(\" AND PTS.IND_DEVO = 1 \");\n \n try {\n rs = BelcorpService.getInstance().dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if(! rs.esVacio() ){\n oidConsolidado = rs.getValueAt(0,\"OID_SOLI_CABE\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"OID_SOLI_CABE\" ) ).longValue() ):null;\n }\n \n if( oidConsolidado != null ){\n oidPeriodo = rs.getValueAt(0,\"PERD_OID_PERI\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"PERD_OID_PERI\" ) ).longValue() ):null; \n \n dtoSolicitud.setOidSolicitud( oidConsolidado );\n dtoSolicitud.setOidPeriodo( oidPeriodo );\n }\n\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Salida\");\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_atencion_embarazadaService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_atencion_embarazada> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_atencion_embarazadaService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_atencion_embarazada his_atencion_embarazada : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_atencion_embarazada,\r\n\t\t\t\t\t\tthis));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public ArrayList<DatosNombre> listaNombre(){\n \n ArrayList<DatosNombre> respuesta = new ArrayList<>();\n Connection conexion = null;\n JDBCUtilities conex = new JDBCUtilities();\n \n try{\n conexion= conex.getConnection();\n \n String query = \"SELECT usuario, contrasenia, nombre\"\n + \" FROM empleado\"\n + \" WHERE estado=true\";\n \n PreparedStatement statement = conexion.prepareStatement(query);\n ResultSet resultado = statement.executeQuery();\n \n while(resultado.next()){\n DatosNombre consulta = new DatosNombre();\n consulta.setUsuario(resultado.getString(1));\n consulta.setContrasenia(resultado.getString(2));\n consulta.setNombreAnt(resultado.getString(3));\n \n respuesta.add(consulta);\n }\n }catch(SQLException e){\n JOptionPane.showMessageDialog(null, \"Error en la consulta \" + e);\n }\n return respuesta;\n }", "public void buscarDatos() throws Exception {\r\n try {\r\n String parameter = lbxParameter.getSelectedItem().getValue()\r\n .toString();\r\n String value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n Map<String, Object> parameters = new HashMap();\r\n parameters.put(\"parameter\", parameter);\r\n parameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n getServiceLocator().getHospitalizacionService().setLimit(\r\n \"limit 25 offset 0\");\r\n\r\n List<Hospitalizacion> lista_datos = getServiceLocator()\r\n .getHospitalizacionService().listar(parameters);\r\n rowsResultado.getChildren().clear();\r\n\r\n for (Hospitalizacion hospitalizacion : lista_datos) {\r\n rowsResultado.appendChild(crearFilas(hospitalizacion, this));\r\n }\r\n\r\n gridResultado.setVisible(true);\r\n gridResultado.setMold(\"paging\");\r\n gridResultado.setPageSize(20);\r\n\r\n gridResultado.applyProperties();\r\n gridResultado.invalidate();\r\n gridResultado.setVisible(true);\r\n\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }", "public ArrayList<Cuenta> obtenerCuentasAsociadas(String codigo_cliente) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n PreparedStatement PrSt2;\n ResultSet rs = null;\n ResultSet rs2 = null;\n String Query = \"SELECT * FROM Solicitud WHERE Codigo_ClienteS = ? AND Estado = 'Aceptada'\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = obtenerCuenta(rs.getString(\"Codigo_Cuenta\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "public ResultSet mostrarPacientesTodos() throws SQLException {\n ResultSet listaPacientes;\n String sql;\n\n sql = \"SELECT * \"\n + \"FROM centromedico.paciente, centromedico.paciente_borrado\"\n + \"ORDER BY DNI\" + \";\";\n listaPacientes = this.conexion.makeQuery(sql);\n\n return listaPacientes;\n }", "public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }", "public DTOConsultaCliente consultarCliente(DTOOID oid) throws MareException {\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Entrada\");\n\n Boolean bUsaGEOREFERENCIADOR = Boolean.FALSE;\n MONMantenimientoSEG mms;\n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n RecordSet resultado = new RecordSet();\n StringBuffer query = new StringBuffer();\n DTOConsultaCliente dtos = new DTOConsultaCliente();\n\n try {\n query.append(\" select TICL_OID_TIPO_CLIE, SBTI_OID_SUBT_CLIE, I1.VAL_I18N DESC_TIPO_CLIENTE, \");\n query.append(\" I2.VAL_I18N DESC_SUB_TIPO_CLIENTE\");\n query.append(\" from MAE_CLIEN_TIPO_SUBTI T, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = SBTI_OID_SUBT_CLIE \");\n query.append(\" and T.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" ORDER BY DESC_TIPO_CLIENTE ASC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTiposSubtipos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" select TDOC_OID_TIPO_DOCU, NUM_DOCU_IDEN, VAL_IDEN_DOCU_PRIN, VAL_IDEN_PERS_EMPR, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_DOCUM from MAE_CLIEN_IDENT I, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_DOCUM' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TDOC_OID_TIPO_DOCU \");\n query.append(\" and I.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setIdentificaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n // Se agrega campo \"cod_clie\" a la query.\n query.append(\" SELECT val_ape1, val_ape2, val_apel_casa, val_nom1, val_nom2, val_trat, \");\n query.append(\" cod_sexo, fec_ingr, fopa_oid_form_pago, i1.val_i18n desc_forma_pago, \");\n query.append(\" cod_clie \");\n query.append(\" FROM mae_clien m, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.val_oid(+) = fopa_oid_form_pago \");\n query.append(\" AND i1.attr_enti(+) = 'BEL_FORMA_PAGO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma());\n query.append(\" AND m.oid_clie = \" + oid.getOid()); \n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n dtos.setApellido1((String) resultado.getValueAt(0, 0));\n dtos.setApellido2((String) resultado.getValueAt(0, 1));\n dtos.setApellidoCasada((String) resultado.getValueAt(0, 2));\n dtos.setNombre1((String) resultado.getValueAt(0, 3));\n dtos.setNombre2((String) resultado.getValueAt(0, 4));\n\n String tratamiento = (String) resultado.getValueAt(0, 5);\n\n if ((tratamiento != null) && !(tratamiento.equals(\"\"))) {\n dtos.setTratamiento(new Byte(tratamiento));\n }\n\n String sexo = (String) resultado.getValueAt(0, 6);\n\n if ((sexo != null) && !(sexo.equals(\"\"))) {\n dtos.setSexo(new Character(sexo.toCharArray()[0]));\n }\n\n dtos.setFechaIngreso((Date) resultado.getValueAt(0, 7));\n dtos.setFormaPago((String) resultado.getValueAt(0, 9));\n \n // Agregado by ssantana, inc. BELC300021214\n // Se agrega asignacion de parametro CodigoCliente\n dtos.setCodigoCliente((String) resultado.getValueAt(0, 10) );\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT FEC_NACI, COD_EMPL, SNON_OID_NACI, VAL_EDAD, ESCV_OID_ESTA_CIVI, VAL_OCUP, \");\n query.append(\" VAL_PROF, VAL_CENT_TRAB, VAL_CARG_DESE, VAL_CENT_ESTU, NUM_HIJO, NUM_PERS_DEPE, \");\n query.append(\" NSEP_OID_NSEP, TCLV_OID_CICL_VIDA, IND_CORR, IMP_INGR_FAMI, I1.VAL_I18N DESC_NACION, \");\n query.append(\" I2.VAL_I18N DESC_EDO_CIVIL, I3.VAL_I18N DESC_NESP, I4.VAL_I18N DESC_CICLO_VIDA, \");\n query.append(\" NIED_OID_NIVE_ESTU, i5.VAL_I18N desc_nivel_estu, IND_ACTI \");\n query.append(\" FROM MAE_CLIEN_DATOS_ADICI , V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, v_gen_i18n_sicc i5 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_NACIO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = SNON_OID_NACI \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_ESTAD_CIVIL' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = ESCV_OID_ESTA_CIVI \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_TIPO_NIVEL_SOCEC_PERSO' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = NSEP_OID_NSEP \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_CICLO_VIDA' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = TCLV_OID_CICL_VIDA \");\n query.append(\" and i5.ATTR_ENTI(+) = 'MAE_NIVEL_ESTUD' \");\n query.append(\" AND i5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i5.VAL_OID(+) = NIED_OID_NIVE_ESTU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n UtilidadesLog.debug(\"resultado: \" + resultado);\n\n dtos.setFechaNacimiento((Date) resultado.getValueAt(0, 0));\n dtos.setCodigoEmpleado((String) resultado.getValueAt(0, 1));\n /*cleal incidencia 21311 fecha 28/10/2005*/\n // Modificado por ssantana, 8/11/2005\n // dtos.setNacionalidad((resultado.getValueAt(0, 2))!=null ? new String(((BigDecimal) resultado.getValueAt(0, 2)).toString()) : \"\");\n dtos.setNacionalidad((resultado.getValueAt(0, 16)) != null ? (String) resultado.getValueAt(0, 16) : \"\"); \n //(resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null\n\n // dtos.setEdad((String)resultado.getValueAt(0, 3));\n dtos.setEdad((resultado.getValueAt(0, 3) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 3)).toString()) : \"\");\n dtos.setEstadoCivil((String) resultado.getValueAt(0, 17));\n dtos.setOcupacion((String) resultado.getValueAt(0, 5));\n dtos.setProfesion((String) resultado.getValueAt(0, 6));\n dtos.setCentroTrabajo((String) resultado.getValueAt(0, 7));\n dtos.setCargo((String) resultado.getValueAt(0, 8));\n dtos.setCentro((String) resultado.getValueAt(0, 9));\n\n //dtos.setNumeroHijos((BigDecimal)resultado.getValueAt(0, 10));\n /* dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 10)).toString())\n : \"0\");*/\n dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null);\n\n //dtos.setPersonasDependientes((String)resultado.getValueAt(0, 11));\n /* dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 11)).toString())\n : \"0\");*/\n dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 11)).toString()) : null);\n\n dtos.setNSEP((String) resultado.getValueAt(0, 18));\n dtos.setCicloVidaFamiliar((String) resultado.getValueAt(0, 19));\n dtos.setNivelEstudios((String) resultado.getValueAt(0, 21));\n\n //String corres = (String)resultado.getValueAt(0, 14);\n String corres = (resultado.getValueAt(0, 14) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 14)).toString()) : null;\n\n //String corres = ((BigDecimal) resultado.getValueAt(0,14)).toString();\n Boolean correspondencia = null;\n\n if ((corres != null) && !(corres.equals(\"\"))) {\n if (corres.equals(\"1\")) {\n correspondencia = Boolean.TRUE;\n } else {\n correspondencia = Boolean.FALSE;\n }\n }\n\n dtos.setDeseaCorrespondencia(correspondencia);\n\n BigDecimal big = (BigDecimal) resultado.getValueAt(0, 15);\n\n if (big == null) {\n dtos.setImporteIngreso(\"\");\n } else {\n dtos.setImporteIngreso(big.toString());\n }\n \n //SICC-DMCO-MAE-GCC-006 - Cleal\n Boolean indActi = null;\n if(((BigDecimal) resultado.getValueAt(0, 22))!=null){\n\n if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==1){\n indActi = new Boolean(true);\n } else if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==0){\n indActi = new Boolean(false); \n }\n }\n dtos.setIndicadorActivo(indActi);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT I2.VAL_I18N, C.COD_CLIE, FEC_DESD, FEC_HAST, TIVC_OID_TIPO_VINC, IND_VINC_PPAL, I1.VAL_I18N DESC_TIPO_VINCU \");\n query.append(\" FROM MAE_CLIEN_VINCU, V_GEN_I18N_SICC I1, mae_tipo_vincu tv, seg_pais p, v_gen_i18n_sicc i2, mae_clien c \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_VINCU' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIVC_OID_TIPO_VINC \");\n \n /* inicio deshace modif ciglesias incidencia 24377 17/11/2006\n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n // query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n query.append(\" and CLIE_OID_CLIE_VNTE = \" + oid.getOid() + \" \");\n */\n query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n /*fin deshace ciglesias 24377*/\n \n query.append(\" AND mae_clien_vincu.TIVC_OID_TIPO_VINC = tv.OID_TIPO_VINC \");\n \n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNTE = c.OID_CLIE \"); //eiraola 30/11/2006 Incidencia DBLG7...165\n \n //query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNDO = c.OID_CLIE \");\n \n query.append(\" AND tv.PAIS_OID_PAIS = p.OID_PAIS \");\n query.append(\" AND i2.VAL_OID = p.OID_PAIS \");\n query.append(\" AND i2.ATTR_ENTI = 'SEG_PAIS' \");\n query.append(\" AND i2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n //UtilidadesLog.info(\"resultado Vinculo: \" + resultado.toString() );\n dtos.setVinculos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*query.append(\" SELECT DES_CLIE_PREF, TIPF_OID_TIPO_PREF, DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.VAL_I18N descripcionTipo , a.TIPF_OID_TIPO_PREF, a.DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE a , v_gen_i18n_sicc i1 \");\n query.append(\" where a.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and i1.ATTR_ENTI = 'MAE_TIPO_PREFE' \");\n query.append(\" and i1.VAL_OID = a.TIPF_OID_TIPO_PREF \");\n query.append(\" and i1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" and i1.ATTR_NUM_ATRI = 1 \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPreferencias(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, NUM_OBSE, VAL_TEXT, DES_MARC \");\n query.append(\" FROM MAE_CLIEN_OBSER M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setObservaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT c.PAIS_OID_PAIS , c.COD_CLIE, t. TICL_OID_TIPO_CLIE, p.COD_TIPO_CONT, \");\n query.append(\" p.FEC_CONT, p.FEC_SIGU_CONT, I1.VAL_I18N DESC_PAIS, I2.VAL_I18N DESC_TIPO_CLIENTE \");\n query.append(\" FROM MAE_CLIEN_PRIME_CONTA p, MAE_CLIEN c, MAE_CLIEN_TIPO_SUBTI t, V_GEN_I18N_SICC I1, \");\n query.append(\" V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_PAIS' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = c.PAIS_OID_PAIS \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" AND p.CTSU_CLIE_CONT = t.OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = c.OID_CLIE \");\n query.append(\" and p.CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n query.append(\" SELECT c.pais_oid_pais, c.cod_clie, t.ticl_oid_tipo_clie, p.cod_tipo_cont, \");\n query.append(\" p.fec_cont, p.fec_sigu_cont, i1.val_i18n desc_pais, \");\n query.append(\" i2.val_i18n desc_tipo_cliente, i3.val_i18n, perio.val_nomb_peri, marca.DES_MARC \");\n query.append(\" FROM mae_clien_prime_conta p, \");\n query.append(\" mae_clien c, \");\n query.append(\" mae_clien_tipo_subti t, \");\n query.append(\" seg_canal canal, \");\n query.append(\" cra_perio perio, \");\n query.append(\" seg_marca marca, \");\n query.append(\" v_gen_i18n_sicc i1, \");\n query.append(\" v_gen_i18n_sicc i2, \");\n query.append(\" v_gen_i18n_sicc i3 \");\n query.append(\" WHERE i1.attr_enti(+) = 'SEG_PAIS' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = c.pais_oid_pais \");\n query.append(\" AND i2.attr_enti(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND i2.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i2.val_oid(+) = ticl_oid_tipo_clie \");\n query.append(\" AND p.ctsu_clie_cont = t.oid_clie_tipo_subt \");\n query.append(\" AND t.clie_oid_clie = c.oid_clie \");\n query.append(\" AND p.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.perd_oid_peri = perio.oid_peri(+) \");\n query.append(\" AND p.cana_oid_cana = canal.oid_cana(+) \");\n query.append(\" AND canal.oid_cana = i3.val_oid(+) \");\n query.append(\" AND i3.attr_enti(+) = 'SEG_CANAL' \");\n query.append(\" AND i3.attr_num_atri(+) = 1 \");\n query.append(\" AND i3.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" and p.MARC_OID_MARC = marca.OID_MARC(+) \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n // by Ssantana, 29/7/04 - Se corren algunos indices en -1 al quitar\n // campo Primer Pedido Contacto. \n // 5/8//2004 - Se agregan descripciones de Marca, Canal y Periodo\n dtos.setPaisContactado((String) resultado.getValueAt(0, 6));\n dtos.setCodigoClienteContactado((String) resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String) resultado.getValueAt(0, 7));\n dtos.setTipoContacto((String) resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date) resultado.getValueAt(0, 4));\n dtos.setFechaSiguienteContacto((Date) resultado.getValueAt(0, 5));\n dtos.setMarcaContactoDesc((String) resultado.getValueAt(0, 10));\n dtos.setCanalContactoDesc((String) resultado.getValueAt(0, 8));\n dtos.setPeriodoContactoDesc((String) resultado.getValueAt(0, 9));\n\n /* dtos.setPaisContactado((String)resultado.getValueAt(0, 7));\n dtos.setCodigoClienteContactado((String)resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String)resultado.getValueAt(0, 8));\n dtos.setTipoContacto((String)resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date)resultado.getValueAt(0, 4));\n //dtos.setFechaPrimerPedido((Date)resultado.getValueAt(0, 5));\n dtos.setFechaSiguienteContacto((Date)resultado.getValueAt(0, 6));*/\n }\n //Cleal Mae-03\n MONMantenimientoSEGHome mmsHome = SEGEjbLocators.getMONMantenimientoSEGHome();\n mms = mmsHome.create();\n bUsaGEOREFERENCIADOR = mms.usaGeoreferenciador(oid.getOidPais());\n \n resultado = new RecordSet();\n if(Boolean.FALSE.equals(bUsaGEOREFERENCIADOR)){\n UtilidadesLog.debug(\"*** No usa GEO\");\n resultado = obtieneDireccionSinGEO(oid);\n } else{\n UtilidadesLog.debug(\"*** Usa GEO\");\n resultado = obtieneDireccionConGEO(oid);\n }//\n \n //\n /*\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT dir.TIDC_OID_TIPO_DIRE, dir.TIVI_OID_TIPO_VIA, \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" NVL(dir.VAL_NOMB_VIA,vi.NOM_VIA) AS VIA, \");\n \n query.append(\" dir.NUM_PPAL, dir.VAL_COD_POST, \");\n query.append(\" dir.VAL_OBSE, I1.VAL_I18N DESC_TIPO_DIREC, I2.VAL_I18N DESC_TIPO_VIA, ind_dire_ppal, VAL.DES_GEOG \");\n query.append(\" FROM MAE_CLIEN_DIREC dir, ZON_VIA vi, ZON_VALOR_ESTRU_GEOPO val, \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" ZON_TERRI terr, \");\n }\n //\n query.append(\" V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_DIREC' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIDC_OID_TIPO_DIRE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'SEG_TIPO_VIA' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n\n //query.append(\" and I2.VAL_OID(+) = vi.TIVI_OID_TIPO_VIA \");\n query.append(\" and I2.VAL_OID(+) = dir.tivi_oid_tipo_via \");\n query.append(\" and dir.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND dir.ZVIA_OID_VIA = vi.OID_VIA(+) \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" AND dir.TERR_OID_TERR = terr.OID_TERR \");\n query.append(\" AND terr.VEPO_OID_VALO_ESTR_GEOP = val.OID_VALO_ESTR_GEOP \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" AND vi.PAIS_OID_PAIS = \"+oid.getOidPais());\n } else{\n \n query.append(\" \");\n \n }\n resultado = bs.dbService.executeStaticQuery(query.toString());\n */\n dtos.setDirecciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.val_i18n desc_tipo_comun, val_dia_comu, val_text_comu, ind_comu_ppal, \");\n\n /* query.append(\" DECODE(to_char(FEC_HORA_DESD, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_DESD, 'HH24:MI')), \");\n query.append(\" DECODE(to_char(FEC_HORA_HAST, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_HAST, 'HH24:MI')), \");*/\n query.append(\" to_char(FEC_HORA_DESD, 'HH24:MI'), \");\n query.append(\" to_char(FEC_HORA_HAST, 'HH24:MI'), \");\n query.append(\" val_inte_comu \");\n query.append(\" FROM mae_clien_comun, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = ticm_oid_tipo_comu \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n resultado = bs.dbService.executeStaticQuery(query.toString());\n UtilidadesLog.debug(\"----- resultado Comunicaciones: \" + resultado);\n dtos.setComunicaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, S.DES_MARC \");\n query.append(\" FROM MAE_CLIEN_MARCA M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n String[] marcas = new String[resultado.getRowCount()];\n\n for (int i = 0; i < resultado.getRowCount(); i++)\n marcas[i] = (String) resultado.getValueAt(i, 1);\n\n dtos.setMarcas(marcas);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT TITR_OID_TIPO_TARJ, CLTA_OID_CLAS_TARJ, CBAN_OID_BANC, I1.VAL_I18N DESC_TIPO_TARJ, \");\n query.append(\" DES_CLAS_TARJ, DES_BANC \");\n query.append(\" FROM MAE_CLIEN_TARJE, V_GEN_I18N_SICC I1, MAE_CLASE_TARJE, CCC_BANCO \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_TARJE' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TITR_OID_TIPO_TARJ \");\n query.append(\" and CLTA_OID_CLAS_TARJ = OID_CLAS_TARJ \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and CBAN_OID_BANC = OID_BANC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTarjetas(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT t.TICL_OID_TIPO_CLIE, t.SBTI_OID_SUBT_CLIE, c.CLAS_OID_CLAS, c.TCCL_OID_TIPO_CLASI, \");\n query.append(\n \" c.FEC_CLAS, PERD_OID_PERI, I1.VAL_I18N DESC_TIPO_CLIENTE, I2.VAL_I18N DESC_SUB_TIPO_CLIENTE, I3.VAL_I18N DESC_CLASI, I4.VAL_I18N DESC_TIPO_CLASI_CLIENTE, I5.VAL_I18N DESC_PERIODO, \");\n query.append(\" i6.VAL_I18N desc_canal, m.DES_MARC desc_marca \");\n query.append(\" FROM MAE_CLIEN_TIPO_SUBTI t, MAE_CLIEN_CLASI c, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, \");\n query.append(\" V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, V_GEN_I18N_SICC I5, \");\n query.append(\" cra_perio p, seg_marca m, v_gen_i18n_sicc i6 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = t.TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = t.SBTI_OID_SUBT_CLIE \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_CLASI' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = c.CLAS_OID_CLAS \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = c.TCCL_OID_TIPO_CLASI \");\n query.append(\" and I5.ATTR_ENTI(+) = 'CRA_PERIO' \");\n query.append(\" and I5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I5.VAL_OID(+) = PERD_OID_PERI \");\n query.append(\" and t.OID_CLIE_TIPO_SUBT = c.CTSU_OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND perd_oid_peri = p.OID_PERI \");\n query.append(\" AND i6.VAL_OID(+) = p.CANA_OID_CANA \");\n query.append(\" AND i6.ATTR_ENTI(+) = 'SEG_CANAL' \");\n query.append(\" AND i6.IDIO_OID_IDIO = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i6.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); */\n query.append(\" SELECT m.DES_MARC, v1.VAL_I18N, v2.VAL_I18N, \");\n query.append(\" v3.VAL_I18N, v4.VAL_I18N, v5.VAL_I18N \");\n query.append(\" FROM mae_clien_tipo_subti t, mae_clien_clasi c, cra_perio p, seg_marca m, v_gen_i18n_sicc v1, \");\n query.append(\" v_gen_i18n_sicc v2, v_gen_i18n_sicc v3, v_gen_i18n_sicc v4, v_gen_i18n_sicc v5 \");\n query.append(\" WHERE t.oid_clie_tipo_subt = c.ctsu_oid_clie_tipo_subt \");\n query.append(\" AND c.perd_oid_peri = p.oid_peri \");\n query.append(\" AND t.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); // MARCA\n query.append(\" AND p.CANA_OID_CANA = v1.VAL_OID \"); // CANAL\n query.append(\" AND v1.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v1.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND v1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.TICL_OID_TIPO_CLIE = v2.VAL_OID \"); // TIPO CLIENTE\n query.append(\" AND v2.ATTR_ENTI = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND v2.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.SBTI_OID_SUBT_CLIE = v3.VAL_OID \"); // SUBTIPO CLIENTE\n query.append(\" AND v3.ATTR_ENTI = 'MAE_SUBTI_CLIEN' \");\n query.append(\" AND v3.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v3.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.TCCL_OID_TIPO_CLASI = v4.VAL_OID \"); // TIPO CLASIFICACION\n query.append(\" AND v4.ATTR_ENTI = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" AND v4.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v4.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.CLAS_OID_CLAS = v5.VAL_OID \"); // CLASIFICACION\n query.append(\" AND v5.ATTR_ENTI = 'MAE_CLASI' \");\n query.append(\" AND v5.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v5.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n \n // BELC300023061 - 04/07/2006\n // Si no se obtuvo ninguna clasificacion para el cliente en la consulta anterior, \n // insertar una fila en el atributo clasificaciones, con el indicador principal activo, \n // sólo con la marca y el canal\n if (!resultado.esVacio()) {\n dtos.setClasificaciones(resultado);\n } else {\n query = new StringBuffer();\n resultado = new RecordSet();\n \n query.append(\" SELECT mar.DES_MARC, \");\n query.append(\" \t\t iCa.VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN uA, \");\n query.append(\" \t CRA_PERIO per, \");\n query.append(\" \t\t SEG_MARCA mar, \");\n query.append(\" \t V_GEN_I18N_SICC iCa \");\n query.append(\" WHERE uA.CLIE_OID_CLIE = \" + oid.getOid().toString());\n query.append(\" AND uA.IND_ACTI = 1 \");\n query.append(\" \t AND uA.PERD_OID_PERI_INI = per.OID_PERI \");\n query.append(\" \t AND per.MARC_OID_MARC = mar.OID_MARC \");\n query.append(\" AND per.CANA_OID_CANA = iCa.VAL_OID \");\n query.append(\" AND iCa.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND iCa.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND iCa.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" ORDER BY uA.OID_CLIE_UNID_ADMI ASC \");\n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setClasificaciones(resultado);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n //el false se utiliza para indicar que estas filas son de problemas \n //el true indica que estas filas son de soluciones \n query.append(\" SELECT i1.VAL_I18N, DES_PROB, decode(IND_SOLU,0,'false',1,'true') IND_SOLU, I2.VAL_I18N TSOC_OID_TIPO_SOLU, DES_SOLU, VAL_NEGO_PROD \");\n query.append(\" FROM MAE_CLIEN_PROBL, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PROBL' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIPB_OID_TIPO_PROB \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_SOLUC' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TSOC_OID_TIPO_SOLU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setProblemasSoluciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic\n FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s\n WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO'\n AND i1.idio_oid_idio(+) = 1\n AND i1.val_oid(+) = tpoid_tipo_perf_psic\n AND clie_oid_clie = 152\n AND marc_oid_marc = s.oid_marc */\n query.append(\" SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic \");\n query.append(\" FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = tpoid_tipo_perf_psic \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND marc_oid_marc = s.oid_marc \");\n\n /* query.append(\" SELECT MARC_OID_MARC, TPOID_TIPO_PERF_PSIC, COD_TEST, FEC_PSIC, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_PERFIL_PSICO, S.DES_MARC \");\n query.append(\" FROM MAE_PSICO, V_GEN_I18N_SICC I1, SEG_MARCA S \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TPOID_TIPO_PERF_PSIC \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and MARC_OID_MARC = S.OID_MARC \");*/\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPsicografias(resultado);\n } catch (CreateException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (RemoteException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (Exception e) {\n e.printStackTrace();\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n UtilidadesLog.debug(\"DTO a retornar: \" + dtos.toString());\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Salida\");\n\n return dtos;\n }", "private void cargarFichaLepra_discapacidades() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "public void consultaDatosFiliatorios(Paciente p_paciente){\n\t\tSystem.out.println(\"Hospital: \" + this.getHospital() + \"\\tDirector: \" + this.getDirector());\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------\");\n\t\tp_paciente.mostrarDatosPantalla();\n\t}", "public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}", "public ArrayList<Factura> recuperaFacturaCompletaPorFiltro(String filtro) {\r\n\t\tString sql = \"\";\r\n\t\tsql += \"SELECT * FROM facturas WHERE \";\r\n\t\tsql += filtro;\r\n\t\tsql += \" ORDER BY facturas.numero\";\r\n\t\tSystem.out.println(sql);\r\n\t\tArrayList<Factura> lista = new ArrayList<>();\r\n\t\tConnection c = new Conexion().getConection();\r\n\t\tif (c != null) {\r\n\t\t\ttry {\r\n\t\t\t\t// Crea un ESTAMENTO (comando de ejecucion de un sql)\r\n\t\t\t\tStatement comando = c.createStatement();\r\n\t\t\t\tResultSet rs = comando.executeQuery(sql);\r\n\t\t\t\twhile (rs.next() == true) {\r\n\t\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\t\tint clienteId = rs.getInt(\"clienteId\");\r\n\t\t\t\t\tString nombreCliente = rs.getString(\"nombreCliente\");\r\n\t\t\t\t\tint numero = rs.getInt(\"numero\");\r\n\t\t\t\t\tDate fecha = rs.getDate(\"fecha\");\r\n\t\t\t\t\tdouble porcDescuento = rs.getDouble(\"porcDescuento\");\r\n\t\t\t\t\tdouble porcRecargoEquivalencia = rs.getDouble(\"porcRecargoEquivalencia\");\r\n\t\t\t\t\tdouble impTotal = rs.getDouble(\"impTotal\");\r\n\t\t\t\t\tdouble impRecargo = rs.getDouble(\"impRecargo\");\r\n\t\t\t\t\tdouble impIva = rs.getDouble(\"impIva\");\r\n\t\t\t\t\tString dirCorreo = rs.getString(\"dirCorreo\");\r\n\t\t\t\t\tString dirFactura = rs.getString(\"dirFactura\");\r\n\t\t\t\t\tString dirEnvio = rs.getString(\"dirEnvio\");\r\n\t\t\t\t\tboolean cobrada = rs.getBoolean(\"cobrada\");\r\n\t\t\t\t\tArrayList<FacturaDetalle> detalles = new FacturasDetallesBDD().recuperaPorFacturaId(id);\r\n\t\t\t\t\tlista.add(new Factura(id, clienteId, nombreCliente, numero, fecha, porcDescuento, porcRecargoEquivalencia, impTotal, impRecargo, impIva, dirCorreo, dirFactura, dirEnvio, cobrada, detalles));\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void filtrarOfertas() {\n\n List<OfertaDisciplina> ofertas;\n \n ofertas = ofertaDisciplinaFacade.filtrarEixoCursoTurnoCampusQuad(getFiltrosSelecEixos(), getFiltrosSelecCursos(), turno, campus, quadrimestre);\n\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n \n //Após filtrar volta os parametros para os valores default\n setFiltrosSelecEixos(null);\n setFiltrosSelecCursos(null);\n turno = \"\";\n quadrimestre = 0;\n campus = \"\";\n }", "public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_partoService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_parto> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_partoService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_parto his_parto : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_parto, this));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}" ]
[ "0.6480782", "0.63004047", "0.62688345", "0.6262824", "0.62101984", "0.6155029", "0.6129437", "0.6122028", "0.6067798", "0.6046521", "0.60445595", "0.60356694", "0.60295296", "0.6028018", "0.6009575", "0.5992537", "0.59636873", "0.5948962", "0.59486395", "0.5938137", "0.58964753", "0.5832551", "0.58324337", "0.58311814", "0.58306676", "0.5826039", "0.57897377", "0.5784148", "0.5782811", "0.57816654", "0.5774891", "0.5764971", "0.57617754", "0.57564294", "0.5755616", "0.57466716", "0.57457703", "0.57413864", "0.5740267", "0.5737251", "0.57314026", "0.57275236", "0.5725282", "0.57108015", "0.57063794", "0.5703993", "0.5703803", "0.56923175", "0.5688184", "0.5677807", "0.5672741", "0.5669314", "0.5660422", "0.5655856", "0.5654008", "0.5650237", "0.56465745", "0.5644068", "0.56439704", "0.56415164", "0.56353384", "0.56334233", "0.56234866", "0.56216407", "0.5619735", "0.5617741", "0.56174797", "0.5615494", "0.56140953", "0.56130016", "0.56107396", "0.5597449", "0.55951834", "0.55935055", "0.5589287", "0.5586982", "0.5582763", "0.5580632", "0.5575071", "0.55726975", "0.5568298", "0.55587834", "0.5558226", "0.55571204", "0.55560315", "0.55537575", "0.5547298", "0.5546752", "0.55460364", "0.5543678", "0.55404794", "0.5538453", "0.5536894", "0.5523436", "0.5518528", "0.55130136", "0.55086917", "0.5507613", "0.5507316", "0.55057544" ]
0.66334367
0
Following code is for the toolbar title assertions
public static ViewInteraction matchToolbarTitle(CharSequence title) { return onView(isAssignableFrom(Toolbar.class)) .check(matches(withToolbarTitle(is(title)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validateTitle()\r\n\t{\r\n\t\tString titleDisplayed = this.heading.getText();\r\n\t\tassertEquals(titleDisplayed, \"Dashboard\");\r\n\t\tSystem.out.println(\"Value is asserted\");\r\n\t\t\t}", "public void setToolbarTitle() {\n Log.i(tag, \"set toolbar title\");\n this.toolbarGroupIcon.animate().alpha(0.0f).setDuration(150).setListener(null);\n this.toolbarTitle.animate().alpha(0.0f).setDuration(150).setListener(new AnimatorListener() {\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getGroupName());\n } else {\n MainActivity.this.toolbarTitle.setText(MainActivity.this.currentLight.getName());\n }\n if (MainActivity.this.toolbarTitle.getLineCount() == 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize);\n } else if (MainActivity.this.toolbarTitle.getLineCount() > 1) {\n MainActivity.this.toolbarTitle.setTextSize(MainActivity.this.toolbarTitleSize - 6.0f);\n }\n MainActivity.this.toolbarTitle.animate().alpha(1.0f).setDuration(150).setListener(null);\n if (MainActivity.this.broadcastingToGroup) {\n MainActivity.this.toolbarGroupIcon.setVisibility(0);\n MainActivity.this.toolbarGroupIcon.animate().alpha(1.0f).setDuration(150).setListener(null);\n return;\n }\n MainActivity.this.toolbarGroupIcon.setVisibility(8);\n }\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n });\n }", "public void verifyDashboardTitle() {\n app.azzert().titleEquals(\"PECOS\");\n }", "@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }", "@Test\r\n\t\tpublic void testShowsCorrectTitle() {\r\n\t\t\t\r\n\t\t\t// Simply check that the title contains the word \"Hoodpopper\"\r\n\t\t\t\r\n\t\t\tString title = driver.getTitle();\r\n\t\t\tassertTrue(title.contains(\"Hoodpopper\"));\r\n\t\t}", "private void initToolbarTitle() {\n Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);\n toolbar.setTitle(R.string.string_settings);\n }", "private static ViewInteraction matchToolbarTitle(\n CharSequence title) {\n return onView(isAssignableFrom(Toolbar.class))\n .check(matches(hasToolbarTitle(is(title))));\n }", "public abstract String getBarTitle();", "private static Matcher<Object> withToolbarTitle(final Matcher<CharSequence> textMatcher) {\n\n return new BoundedMatcher<Object, Toolbar>(Toolbar.class) {\n\n @Override\n public boolean matchesSafely(Toolbar toolbar) {\n return textMatcher.matches(toolbar.getTitle());\n }\n\n @Override\n public void describeTo(Description description) {\n description.appendText(\"with toolbar title: \");\n textMatcher.describeTo(description);\n }\n };\n }", "@Test\n public void panelTitleTest() {\n Player.GetItem item = getPlayerHandler().getMediaItem();\n onView(withId(R.id.title)).check(matches(withText(item.getTitle())));\n }", "@SmallTest\n\tpublic void testTitle() {\n\t\tassertEquals(getActivity().getTitle(), solo.getString(R.string.title_activity_memory_game));\n\t}", "@Test(priority=0)\n\tpublic void titleVerification() {\n\t\tString expectedTitle = \"Facebook – log in or sign up\";\n\t\tString actualTitle = driver.getTitle();\n\t\tAssert.assertEquals(actualTitle, expectedTitle);\n\t}", "public void assertTitle(final String title);", "public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "protected abstract void setTitle();", "@RecentlyNullable\n/* */ public CharSequence getPaneTitle() {\n/* 1054 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public ToolBarManager initTitle(String toolBarTitle, int color,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "protected abstract int getTitleBarStringId();", "@Test(groups ={Slingshot,Regression})\n\tpublic void verifyTitleField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Title Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.ValidateAddnewUserTitleField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "protected boolean titlePageNeeded(){\n return true;\n }", "@Test\n\tpublic void titlevalidation() throws IOException\n\t{\n\t\t\n\t\tLandingpage l=new Landingpage(driver);\n\t\t//compare text from the browser with the actual text\n\t\t//here comes assertion\n\t\tAssert.assertEquals(l.title().getText(),\"FEATURED COURSES\");\n\t\tlog.info(\"Compared properly\");\n\t\t\n\t}", "private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}", "@Override\n public void title_()\n {\n }", "public ToolBarManager initTitle(String toolBarTitle){\n return initTitle(toolBarTitle,0xFFFFFFFF);\n }", "private void updateTileBar(String title) {\r\n toolbar.setTitle(title);\r\n }", "private void create_toolbar() {\n setSupportActionBar(toolbar);\n getSupportActionBar().setTitle(\"Event Planner\");//this will set the title of our application\n\n }", "void setupToolBar(String title) {\n setupToolBar(title, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n onBackPressed();\n }\n });\n }", "@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }", "public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }", "@Override\n public void title()\n {\n }", "public abstract CharSequence getTitle();", "public void testGetSetTitle() {\n exp = new Experiment(\"10\");\n exp.setTitle(\"test\");\n assertEquals(\"test/set title does not work\", \"test\", exp.getTitle());\n }", "boolean hasTitle();", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "public void setToolbarTitle(String title)\n {\n if(_act.getSupportActionBar() !=null)\n (_act).getSupportActionBar().setTitle(title);\n\n\n }", "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}", "void setTitle(java.lang.String title);", "@Test(priority = 2, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"To Verify Title and Title Text\")\n\tpublic void VerifyTitleTxt() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tdata.VerifyTitlenText();\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Title and Title Text\", \"yes\");\n\t}", "public void setTitlePopup(String t) {\n/* 147 */ getCOSObject().setString(COSName.T, t);\n/* */ }", "@Test\t\r\n\r\npublic void forgot(){\n\t\r\n driver.findElement(By.partialLinkText(\"Forgot\")).click();\r\n System.out.println(\"the forgotpage title is \"+\" \"+driver.getTitle());\r\n String expectedTitle = \"Forgot Password | Can't Log In | Facebook\";\r\n String actualTitle = driver.getTitle();\r\n softassert.assertEquals(actualTitle, expectedTitle);\r\n softassert.assertAll();\r\n \r\n}", "private void setToolbarTitle(Bundle searchParams) {\n this.searchParams = searchParams;\n if (searchParams != null) {\n if (searchParams.containsKey(PLAYLIST_BUNDLE) && searchParams.containsKey(SEARCH_QUERY)) {\n getSupportActionBar().setTitle(getString(R.string.replay_toolbar_playlist_search_title,\n ((PlaylistDTO) searchParams.get(PLAYLIST_BUNDLE)).getTitle(),\n searchParams.getString(SEARCH_QUERY) ));\n } else if (searchParams.containsKey(PLAYLIST_BUNDLE)) {\n titleTabTitle = getString(R.string.replay_toolbar_playlist_title, ((PlaylistDTO) searchParams.get(PLAYLIST_BUNDLE)).getTitle());\n getSupportActionBar().setTitle(titleTabTitle);\n } else {\n getSupportActionBar().setTitle(getString(R.string.replay_toolbar_search_title, searchParams.getString(SEARCH_QUERY)));\n }\n } else {\n getSupportActionBar().setTitle(R.string.replay_toolbar_normal_title);\n }\n }", "@Override\n\tpublic void setTitle(CharSequence title) {\n\t\t\n\t}", "void showTitle(String title);", "public ToolBarManager initTitle(int toolBarTitleResId, int color,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),color,start,top,end,bottom);\n }", "@Test(priority=3, dependsOnMethods= {\"validateUrl\"})\n\tpublic void validateTtitle() {\n\t\t\n\t\tString actualTtitle = driver.getTitle();\n\t\tString expectedTitle = \"Messenger\";\n\t\tAssert.assertEquals(actualTtitle, expectedTitle);\n\t\t\n\t\t\n\t\t\n\t\tReporter.log(\"Validating the messanger page title\");\n\t\t\n\t}", "public void setTitle(java.lang.String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setPaneTitle(@RecentlyNullable CharSequence paneTitle) {\n/* 1045 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void Title ()\n {\n\tTitle = new Panel ();\n\tTitle.setBackground (Color.white);\n\tchessboard (Title);\n\tp_screen.add (\"1\", Title);\n }", "protected GuiTestObject title(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"), anchor, flags);\n\t}", "@When(\"^User checks$\")\r\n\r\n\tpublic void user_cahecks_the_title() throws Throwable {\n\r\n\t\tSystem.out.println(\"Page Title \" + driver.getTitle());\r\n\r\n\t\tActualTitle =driver.getTitle();\r\n\r\n\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "@Test\r\n\tpublic void testSetTitleEU() {\r\n\t\texternu1.setTitle(\"UnitExtern\");\r\n\t\tassertEquals(\"UnitExtern\", externu1.getTitle());\r\n\t}", "public void setToolBarTitle(String title) {\n mToolBar.setTitle(title);\n }", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Test\n public void verifyTitleOfHomePageTest()\n {\n\t \n\t String abc=homepage.validateHomePageTitle();\n\t Assert.assertEquals(\"THIS IS DEMO SITE FOR \",abc );\n }", "void setEvaluateClickText(String title);", "@Override\n public void onSetToolbarTitle(int position) {\n switch (position){\n case 0:\n toolbar.setTitle(\"TED Talks\");\n toolbar.setTitleTextColor(getResources().getColor(R.color.colorAccent));\n break;\n case 1:\n toolbar.setTitle(\"TED Playlists\");\n toolbar.setTitleTextColor(getResources().getColor(R.color.colorAccent));\n break;\n case 2:\n toolbar.setTitle(\"TED Podcasts\");\n toolbar.setTitleTextColor(getResources().getColor(R.color.colorAccent));\n break;\n }\n }", "@Test\n\tpublic void accountsPageTitleTest(){\n\t\tSystem.out.println(\"Test 1\");\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(\"Page Title is: \" + title);\n\t\tAssert.assertEquals(title, \"My Account\"); // Assert is a Class and AssertEquals is a Static method as it is referred by class name\n\t}", "TITLE createTITLE();", "private void addTitle() {\n\t\tJXPanel titlePanel = new JXPanel();\n\t\ttitlePanel.setLayout(null);\n\t\ttitlePanel.setSize(180, 60);\n\t\ttitlePanel.setLocation(60, 10);\n\t\ttitlePanel.setToolTipText(\"www.i.hsr.ch\");\n\t\ttitlePanel.setBorder(new DropShadowBorder(new Color(0, 0, 0), 7, 0.5f, 12, true, true, true, true));\n\t\t\n\t\tJLabel title = GUIComponents.createLabel(YAETMMainView.PROGRAM, new Point(45, 12));\n\t\ttitle.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\t\n\t\tJLabel titleExtend = GUIComponents.createLabel(YAETMMainView.PROGRAMEXT, new Point(10, 33));\n\t\ttitleExtend.setSize(200, 20);\n\t\ttitleExtend.setFont(new Font(\"Arial\", Font.PLAIN, 11));\n\t\t\n\t\ttitlePanel.add(titleExtend);\n\t\ttitlePanel.add(title);\n\t\tpanel.add(titlePanel);\n\t}", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setTitle(String title) { this.title = title; }", "String title();", "String title();", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public ToolBarManager initTitle(String toolBarTitle, int color){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n }\n return instance;\n }", "public String getTabTitle();", "public void setTitle(String value) {\n/* 337 */ setTitle((String)null, value);\n/* */ }", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "private void setWindowTitle(String title) {\n this.title = title;\n }", "protected abstract String title ();", "@Test\n public void titleTest() {\n // TODO: test title\n }", "void updateTitle() {\n leftBtn = (Button) findViewById(com.ek.mobilebapp.R.id.custom_title_btn_left);\n leftBtn.setCompoundDrawablesWithIntrinsicBounds(null,\n getResources().getDrawable(com.ek.mobilebapp.R.drawable.more_icon), null, null);\n leftBtn.setOnClickListener(clickListener);\n\n title = (TextView) findViewById(R.id.custom_title_label);\n title.setText(R.string.app_name);\n }", "public String getTitleComponent(){\n return titleComponent;\n }", "@Test\r\n\tpublic void testSetTitleMU() {\r\n\t\tmeetingu1.setTitle(\"UnitMeeting\");\r\n\t\tassertEquals(\"UnitMeeting\", meetingu1.getTitle());\r\n\t}", "private void checkTitle(final WebDriver driver) {\r\n\t\tfinal String title = driver.getTitle();\r\n\t\tAssert.assertEquals(\"Wrong page title\", PAGE_TITLE, title);\r\n\t}", "private void prepareToolbar() {\r\n EventBarView eventBar = findViewById(R.id.eventBar);\r\n eventBar.setEventTitle(event.name);\r\n }", "private static ToolBar header(Stage stage) {\n\t\t// Main menu button on the right\n\t\tButton mainMenu = new Button(\"Main menu\");\n\t\tmainMenu.setOnAction(actionEvent -> mainMenu(stage));\n\t\t\n\t\t// Username on the left\n\t\tLabel usernameLabel = new Label(UserInterfaceLogic.getUsernameLabel());\n\t\t\n\t\tToolBar toolBar = new ToolBar();\n\t\ttoolBar.getItems().addAll(usernameLabel, new Separator(), mainMenu);\n\t\t\n\t\treturn toolBar;\n\t}", "public void testGetTitle() {\n System.out.println(\"getTitle\");\n Wizard instance = new Wizard();\n String expResult = \"\";\n String result = instance.getTitle();\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void test_getTitle() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"Sherlock\",t1.getTitle());\n }", "private void updateToolbarTitle(int position) {\n //no need to update title if the toolbar is null for some reason\n if (getSupportActionBar() == null) return;\n\n //figure out if we should use format 1 or 2 for the title and format the title accordingly\n final SuggestionsStatePagerAdapter pagerAdapter = (SuggestionsStatePagerAdapter) viewPager.getAdapter();\n final int count = pagerAdapter.getCount();\n\n //set the title\n getSupportActionBar().setTitle(\n getString(R.string.title_detail_parameterized,\n String.valueOf(1+position), //add 1 since users are not used to seeing zero-based indexing\n String.valueOf(count)));\n }", "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "private void setupToolbar() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.activity_menubar_toolbar);\n setSupportActionBar(toolbar);\n final ActionBar actionBar = getSupportActionBar();\n\n TextView mTitle = (TextView) toolbar.findViewById(R.id.actionbar_tvTitle);\n ImageView ivSave = (ImageView) toolbar.findViewById(R.id.activity_base_actionbar_ivNext);\n mTitle.setTypeface(typeface);\n mTitle.setVisibility(View.VISIBLE);\n ivSave.setVisibility(View.VISIBLE);\n ivSave.setImageResource(R.drawable.ic_save);\n ivSave.setOnClickListener(this);\n mTitle.setText(\"Share Pics\");\n\n if (actionBar != null) {\n\n actionBar.setTitle(\"\");\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowTitleEnabled(true);\n }\n\n\n }" ]
[ "0.7026573", "0.70001376", "0.6997632", "0.69157434", "0.68261516", "0.6821912", "0.68071854", "0.680143", "0.6767409", "0.6702199", "0.6650587", "0.6643244", "0.66154164", "0.6537273", "0.652453", "0.6523365", "0.64710456", "0.6463979", "0.639137", "0.6371932", "0.6365096", "0.634929", "0.6323836", "0.6301062", "0.6300924", "0.62850094", "0.62829953", "0.6280292", "0.62712324", "0.6268548", "0.6252668", "0.6240206", "0.6238726", "0.6229946", "0.621391", "0.62050027", "0.6179018", "0.6166766", "0.6166766", "0.6166766", "0.6166766", "0.6166766", "0.61666244", "0.615876", "0.6158163", "0.61445045", "0.61405635", "0.61377484", "0.61216134", "0.61144763", "0.6095159", "0.60839474", "0.608362", "0.6076095", "0.6068139", "0.6066642", "0.6066642", "0.6066642", "0.606026", "0.60434765", "0.60282266", "0.60281736", "0.602647", "0.600806", "0.59947896", "0.5989449", "0.5984265", "0.5983346", "0.5982576", "0.5978611", "0.59377694", "0.59373444", "0.59311265", "0.59161043", "0.59067225", "0.59067225", "0.59031916", "0.58968127", "0.5892048", "0.5891343", "0.5884858", "0.5884858", "0.5884858", "0.5884858", "0.5884858", "0.58795065", "0.5877662", "0.5876578", "0.58692384", "0.5867646", "0.58654046", "0.5864747", "0.58496326", "0.5837177", "0.5821703", "0.582142", "0.58181834", "0.581285", "0.5802901" ]
0.63860196
20
Following code is to wait for an element
public static ViewAction waitId(final int viewId, final long millis) { return new ViewAction() { @Override public Matcher<View> getConstraints() { return isRoot(); } @Override public String getDescription() { return "wait for a specific view with id <" + viewId + "> during " + millis + " millis."; } @Override public void perform(final UiController uiController, final View view) { uiController.loopMainThreadUntilIdle(); final long startTime = System.currentTimeMillis(); final long endTime = startTime + millis; final Matcher<View> viewMatcher = withId(viewId); do { for (View child : TreeIterables.breadthFirstViewTraversal(view)) { // found view with required ID if (viewMatcher.matches(child)) { return; } } uiController.loopMainThreadForAtLeast(50); } while (System.currentTimeMillis() < endTime); // timeout happens throw new PerformException.Builder() .withActionDescription(this.getDescription()) .withViewDescription(HumanReadables.describe(view)) .withCause(new TimeoutException()) .build(); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "public static void waitForElementVisiblity(WebElement element) {\n\t\t\t\n\t\t}", "private void waitForElementToBeLoad(String string) {\n\t\n}", "public void waitForElementPresent(By locator){\n \tWebDriverWait wait=new WebDriverWait(driver,20);\n \twait.until(ExpectedConditions.presenceOfElementLocated(locator));\n }", "private void waitForElement(WebDriver driver, int timeToWaitInSeconds, By ElementLocater) {\n\t\tWebDriverWait wait = new WebDriverWait(driver, timeToWaitInSeconds);\n\t\twait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(ElementLocater));\n\n\t}", "public WebElement wait(WebElement webElement) {\n WebDriverWait webDriverWait = new WebDriverWait(driver, Integer.parseInt(testData.timeout));\n return webDriverWait.until(ExpectedConditions.visibilityOf(webElement));\n }", "private void waitforvisibleelement(WebDriver driver2, WebElement signoutimg2) {\n\t\r\n}", "public void handlingWaitToElement(By locator){\n WebDriverWait wait = new WebDriverWait(appiumDriver, 60);\n wait.until(ExpectedConditions.presenceOfElementLocated(locator));\n }", "protected WebElement waitForElementToBeVisible(WebElement element) {\n actionDriver.moveToElement(element);\n WebDriverWait wait = new WebDriverWait(driver, 5);\n wait.until(ExpectedConditions.visibilityOf(element));\n return element;\n }", "public static boolean waitForElement(WebDriver driver, WebElement element) {\r\n boolean statusOfElementToBeReturned = false;\r\n WebDriverWait wait = new WebDriverWait(driver, flipKartMaxElementWait);\r\n try {\r\n WebElement waitElement = wait.until(ExpectedConditions.visibilityOf(element));\r\n if (waitElement.isDisplayed() && waitElement.isEnabled()) {\r\n statusOfElementToBeReturned = true;\r\n }\r\n } catch (Exception ex) {\r\n \tSystem.out.println(\"Unable to find a element\" + ex.getMessage());\r\n }\r\n\t\treturn statusOfElementToBeReturned;\r\n }", "public void waitForVisibilityOfElement(WebElement element) {\n\t\twait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "protected WebElement waitForExpectedElement(final By by) {\n return wait.until(visibilityOfElementLocated(by));\n }", "public void waitForElementVisibility(WebDriver driver, WebElement element)\n\t\t{\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,20);\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\t}", "public void waitForElemnetXpathPresent(String xpath){\r\n\t\t\t\tWebDriverWait wait = new WebDriverWait(Driver.driver,20);\r\n\t\t\t\twait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.xpath(xpath)));\r\n\t\t\t}", "public static void waitForElement(WebDriver driver, WebElement element) throws Exception {\n\t\tWebDriverWait wait = new WebDriverWait(driver, 80);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\tThread.sleep(1000);\n\t}", "public void waitForVisibilityOfWebElement(WebElement webElement){\r\n\t\twait.until(ExpectedConditions.visibilityOf(webElement));\r\n\t}", "public boolean waitforelement(int timeout,By by){\n\t\twhile(timeout>0){\n\t\t\tsleep(1);\n\t\t\tList<WebElement> list = driver.findElements(by);\n\t\t\tif(list.size()!=0){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\ttimeout--;\n\t\t}\n\t\tSystem.out.println(\"waiting timeout.... Element not found \" +by.toString());\n\t\treturn false;\n\t}", "public static void waitForVisibility(WebElement element){\n getWait().until(ExpectedConditions.visibilityOf(element));\n }", "public Boolean waitUntilElementAppears(WebDriver driver, final String xpath) throws NumberFormatException, IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\n\t\t\t\t\ttry {\n\t\t\t\t\tExpectedCondition<Boolean> e = new ExpectedCondition<Boolean>() {\n\t\t\t\t public Boolean apply(WebDriver driver) {\t\t\t\t \t\n\t\t\t\t return (driver.findElements(By.xpath(xpath)).size() == 0);\n\t\t\t\t }\n\t\t\t\t };\n\t\t\t\t wait.until(e);}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { fileWriterPrinter(\"\\nElement not found!\\nXPATH: \" + xpath); }\n\t\t\t\t\t}\n\t\t\t\t fileWriterPrinter(\"Waiting time for Element appearence: \" + waitTimeConroller(start, 30, xpath) + \" sec\");\n\t\t\t\t return (driver.findElements(By.xpath(xpath)).size() == 0);\n\t\t\t\t}", "public void waitForElement(String locator) {\n wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(locator)));\n }", "public void waitElementToBeVisible(WebElement webElement) {\n wait.until(ExpectedConditions.visibilityOf(webElement));\n }", "public static void waitUntilElementIsVisible(WebElement element) {\n WebDriverWait webDriverWait = getWebDriverWait();\n webDriverWait.until(ExpectedConditions.visibilityOf(element));\n }", "public static void waitUntilElementIsInvisible(WebElement element) {\n WebDriverWait webDriverWait = getWebDriverWait();\n webDriverWait.until(ExpectedConditions.invisibilityOf(element));\n }", "public void waitForElement(WebElement element) {\r\n\t\ttry {\r\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, timeout);\r\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(element));\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.info(element.toString() + \" is not present on page or not clickable\");\r\n\t\t}\r\n\r\n\t}", "@Test\n public void EmplicitWaitTest() {\n\n Driver.getDriver().get(\"https://the-internet.herokuapp.com/dynamic_controls\");\n\n //click on enable\n Driver.getDriver().findElement(By.xpath(\"//form[@id='input-example']//button\")).click();\n\n\n // this is a class used to emplicit wait\n WebDriverWait wait = new WebDriverWait(Driver.getDriver(), 10);//creating object\n //this is when wait happens\n // we are waiting for certain element this xpath is clicable\n wait.until(//waiting\n ExpectedConditions.elementToBeClickable(//to click\n By.xpath(\"//input[@type='text']\")));//clicking by the xpath\n\n\n\n //eneter text\n\n Driver.getDriver().findElement(By.xpath(\"//input[@type='text']\")).sendKeys(\"Hello World\");\n\n\n }", "public void waitForElementToVisisble(WebElement elementToCheck){\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.visibilityOf(elementToCheck));\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tLog.error(\"Element not visible\");\n\t\t}\n\t}", "public void waitForVisibilityOf(WebElement element) {\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "public void waitUntilElement(WebDriver driver, final String xpath) throws NumberFormatException, IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\n\t\t\t\t\ttry {\n\t\t\t\t\tExpectedCondition<Boolean> e = new ExpectedCondition<Boolean>() {\n\t\t\t\t public Boolean apply(WebDriver driver) {\n\t\t\t\t return (driver.findElements(By.xpath(xpath)).size() > 0);\n\t\t\t\t }\n\t\t\t\t };\n\t\t\t\t wait.until(e);}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { fileWriterPrinter(\"\\nElement not found!\\nXPATH: \" + xpath); }\n\t\t\t\t\t}\n\t\t\t\t fileWriterPrinter(\"Waiting time for Element: \" + waitTimeConroller(start, 30, xpath) + \" sec\\n\");\n\t\t\t\t}", "public void waitForElementsPresent(By by,int time){\n WebDriverWait wait = new WebDriverWait(driver,time);\n wait.until(ExpectedConditions.presenceOfElementLocated(by));\n }", "public void waitForElementVisibility(String locator) {\n \t WebDriverWait wait = new WebDriverWait(driver, 10);\n \t wait.until(ExpectedConditions.visibilityOfElementLocated(autoLocator(locator)));\n }", "public void waitForElementVisibility(String locator) {\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator)));\n }", "public void waitForElementVisible(WebElement element) {\r\n\t\ttry {\r\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, timeout);\r\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.info(element.toString() + \" is not present on page\");\r\n\t\t}\r\n\t}", "public void waitForPresenceOfElementToBeLocated(By locator){\r\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(locator));\r\n\t}", "public static void setWaitSelenium() throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n driver.get(\"https://google.com\");\n\n WebElement input = driver.findElement(By.xpath(\"//input[@name=\\\"q\\\"]\"));\n input.sendKeys(\"Abcd\");\n Thread.sleep(10000);\n driver.findElement(By.name(\"btnK\")).click();\n //driver.findElement(By.name(\"btnK\")).sendKeys(Keys.RETURN);\n\n // Fluent wait\n // Waiting 30s for an element to be present on the page,\n // for its presence once every 2s\n Wait<WebDriver> wait = new FluentWait<WebDriver>(driver)\n .withTimeout(60, TimeUnit.SECONDS)\n .pollingEvery(2, TimeUnit.SECONDS)\n .ignoring(NoSuchElementException.class);\n\n WebElement clickseleniumlink = wait.until(new Function<WebDriver, WebElement>(){\n\n public WebElement apply(WebDriver driver ) {\n WebElement link = driver.findElement(By.xpath(\"/html[1]/body[1]/div[7]/div[3]/div[10]/div[1]/div[2]/div[1]/div[2]/div[2]/div[1]/div[1]/div[5]/div[1]/div[1]/div[1]/div[1]/div[1]/a[1]\"));\n if(link.isEnabled()){\n System.out.println(\"Element found\");\n }\n return link;\n }\n });\n //click on the selenium link\n clickseleniumlink.click();\n\n driver.close();\n driver.quit();\n }", "@Test\n public void explicitWait() {\n WebDriverWait wait = new WebDriverWait(driver, 10);\n driver.get(\"https://the-internet.herokuapp.com/dynamic_controls\");\n WebElement removeButton = driver.findElement(By.xpath(\"//button[@type='button']\"));\n removeButton.click();\n //WebElement goneMessage=driver.findElement(By.id(\"message\"));\n WebElement goneMessage = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"message\")));\n String expectedMessage = \"It's gone!\";\n Assert.assertEquals(goneMessage.getText(), expectedMessage);\n\n }", "public static void wait_for_element(By locator) throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Locator: \" + locator, Constants.LOG_INFO, false);\n\t\t\tWebDriverWait wait = new WebDriverWait(CheetahEngine.getDriverInstance(), Constants.GLOBAL_TIMEOUT);\n\t\t\tfluent_wait(locator);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "public void waitForElementToBeClickable(WebElement element) {\n wait.until(ExpectedConditions.visibilityOf(element));\n wait.until(ExpectedConditions.elementToBeClickable(element));\n }", "public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "private static ExpectedCondition<WebElement> waitForElementToBeDisplayed(final WebElement we) \n\t{\n\t\treturn new ExpectedCondition<WebElement>() \n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * This method will retrieve the element.\n\t\t\t\t\t * \n\t\t\t\t\t * @param driver The driver to set.\n\t\t\t\t\t * @return Returns the webelement.\n\t\t\t\t\t */\n\t\t\t\t\tpublic WebElement apply(WebDriver driver) \n\t\t\t\t\t{\n\t\t\t\t\t\tif(we.isDisplayed()){\n\n\t\t\t\t\t\t\treturn we;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn null;\n\n\t\t\t\t\t}\n\t\t\t\t};\n\t}", "public void waitForContentLoad(String element) {\n // TODO implement generic method to wait until page content is loaded\n\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.xpath(\".//td[contains(., \" + element + \")]\"))));\n }", "public String waitForElementVisibility(String object, String data) {\n logger.debug(\"Waiting for an element to be visible\");\n int start = 0;\n int time = (int) Double.parseDouble(data);\n try {\n while (true) {\n if(start!=time)\n {\n if (driver.findElements(By.xpath(OR.getProperty(object))).size() == 0) {\n Thread.sleep(1000L);\n start++;\n }\n else {\n break; }\n }else {\n break; } \n }\n } catch (Exception e) {\n return Constants.KEYWORD_FAIL + \"Unable to close browser. Check if its open\" + e.getMessage();\n }\n return Constants.KEYWORD_PASS;\n }", "@Override\n protected void waitThePageToLoad() {\n WaitUtils.waitUntil(driver, ExpectedConditions.visibilityOf(driver\n .findElement(By.xpath(SEARCH_XPATH))));\n }", "public static void waitForElementPresence(AndroidDriver<AndroidElement> androidDriver, By element){\r\n\t\tWebDriverWait wait= new WebDriverWait(androidDriver, 30);\r\n\t\twait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(element));\r\n\t}", "public static WebElement fluentWaitTest(final String spath)\n\t{\n\t\t// Create object of FluentWait class and pass WebDriver as input\n\t\t \n FluentWait<WebDriver> wait = new FluentWait<WebDriver>(driver);\n wait.pollingEvery(1, TimeUnit.SECONDS);\n log.info(\"Polling the DOM for the target WebElement\");\n wait.withTimeout(1, TimeUnit.MINUTES);\n wait.ignoring(NoSuchElementException.class);\n\n // Function :Input as WebDriver and output as WebElement\n WebElement element = wait.until(new Function<WebDriver, WebElement>() //This Function returns a WebElement \n {\n // apply method- WebDriver as input\n public WebElement apply(WebDriver arg0) //We are defining the function taking the WebDriver as input \n {\n WebElement ele = arg0.findElement(By.xpath(spath));\n return ele;\n }\n\n }\n );\n\n //If element is found then it will display the status\n System.out.println(\"Final visible status is >>>>> \" + element.isDisplayed());\n return element;\n\n }", "public void waitTillObjectAppears(By locator) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, TIMEOUT_S);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t} catch (TimeoutException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void waitForVisibility(By by,int time){\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }", "protected WebElement waitForElementToBeClickable(WebElement element) {\n actionDriver.moveToElement(element);\n WebDriverWait wait = new WebDriverWait(driver, 5);\n wait.until(ExpectedConditions.elementToBeClickable(element));\n return element;\n }", "public void waitForElementToBeClickable(WebElement webElement){\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(webElement));\r\n\t}", "public void waitForInvisibilityOfWebElement(By locator){\r\n\t\twait.until(ExpectedConditions.invisibilityOfElementLocated(locator));\r\n\t}", "public void waitForElementClickable(String locator) {\n waitForElementVisibility(locator);\n wait.until(ExpectedConditions.elementToBeClickable(By.xpath(locator)));\n }", "public WebElement waitForElement(By by) {\n List<WebElement> elements = waitForElements(by);\n int size = elements.size();\n\n if (size == 0) {\n Assertions.fail(String.format(\"Could not find %s after %d attempts\",\n by.toString(),\n configuration.getRetries()));\n } else {\n // If an element is found then scroll to it.\n scrollTo(elements.get(0));\n }\n\n if (size > 1) {\n Logger.error(\"WARN: There are more than 1 %s 's!\", by.toString());\n }\n\n return getDriver().findElement(by);\n }", "@Test\n public void implicitWait() {\n //We have implicit wait in out testbase class, we driver will automatically use implicit wait whenever we use driver\n driver.get(\"https://the-internet.herokuapp.com/dynamic_controls\");\n WebElement removeButton = driver.findElement(By.xpath(\"//button[@type='button']\"));\n removeButton.click();\n WebElement goneMessage = driver.findElement(By.id(\"message\"));\n String expectedMessage = \"It's gone!\";\n Assert.assertEquals(goneMessage.getText(), expectedMessage);\n }", "public static void waitForClickability(WebElement element){\n getWait().until(ExpectedConditions.elementToBeClickable(element));\n }", "public boolean isElementPresent(WebElement elementName, int timeout){\n //https://github.com/appium/java-client/issues/617\n\t/*try{\n\t WebDriverWait wait = new WebDriverWait(getDriver(), timeout);\n\t wait.until(ExpectedConditions.visibilityOf(elementName));\n\t return true;\n\t}catch(Exception e){\n\t return false;\n\t}*/\n try{\n int counter = 0;\n while(counter < timeout){\n Thread.sleep(1000);\n counter++;\n try{\n if(elementName.isDisplayed()){\n //if(ExpectedConditions.visibilityOf(elementName) !=null ){\n return true;\n }else{\n continue;\n }\n }catch(Exception e){\n continue;\n }\n }\n System.out.println(\"ELEMENT NOT FOUND - \" + elementName + \" AFTER \" + timeout );\n return false;\n }catch(Exception e){\n return false;\n }\n }", "public void waitForElementToAppear(By locator,int timeToOut) {\n\t\tWebDriverWait wait = new WebDriverWait(_eventFiringDriver, timeToOut);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t}", "void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}", "public void waitForVisibilityOfAllWebElements(List<WebElement> webElement){\r\n\t\twait.until(ExpectedConditions.visibilityOfAllElements(webElement));\r\n\t}", "public WebElement waitForElement(By locator, int timeOut)\n\t{\n\t\tif(driver == null){\n\t\t\tthrow new IllegalArgumentException(\"WebDriver cannot be null\");\n\t\t}\n\t\tWebDriverWait wait=new WebDriverWait(driver,timeOut);\n\t\treturn wait.until(ExpectedConditions.refreshed(ExpectedConditions.presenceOfElementLocated(locator)));\n\t}", "public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }", "public void waitElementToBeClickable(WebElement webElement) {\n wait.until(ExpectedConditions.elementToBeClickable(webElement));\n }", "public static void waitUntilElementIsClickable(WebElement element) {\n WebDriverWait webDriverWait = getWebDriverWait();\n webDriverWait.until(ExpectedConditions.elementToBeClickable(element));\n }", "public void Wait_ExplictWait() {\r\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t WebDriver driver=new ChromeDriver(); \r\n\t \r\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t \t\t\tdriver.get(\"https://contentstack.built.io\");\r\n\t \t\t\t\r\n\t \t\t\t\r\n\t\t\t\t\t\tWebDriverWait wait=new WebDriverWait(driver, 15);\r\n\t\t\t\t\r\n\t\t\t\t\t\tdriver.findElement(By.id(\"email\")).sendKeys(\"kannan\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tWebElement link;\r\n\t\t\t\t\t\tlink= wait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"kForgot password?\")));\r\n\t\t\t\t\t\tlink.click();\r\n driver.quit();\r\n}", "public static void waitForElementVisible(By by, long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }", "@Test\n public void buscarProyectoSinCompletarOrden(){\n WebDriverWait wait = new WebDriverWait(driver, 30);\n ingenieria.buscarProyecto();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"growlError_container\")));\n Assert.assertEquals(\"Debe ingresar al menos un campo de busqueda.\", driver.findElement(By.id(\"growlError_container\")).getText());\n //helper.captura(\"buscarProyectoSinCompletarOrden\");\n }", "public boolean waitForVisibility(By targetElement) {\n try {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.visibilityOfElementLocated(targetElement));\n return true;\n } catch (TimeoutException e) {\n error(\"Exception Occurred while waiting for visibility of element with definition :: \" +\n targetElement);\n error(Throwables.getStackTraceAsString(e));\n throw new TimeoutException(Throwables.getStackTraceAsString(e));\n }\n }", "protected void aguardaElemento(Function<WebDriver, ?> expect) {\n\t\tCapabilities.getWait().until(ExpectedConditions.refreshed((ExpectedCondition<?>) expect));\n\t}", "public Boolean waitUntilElementPresence(WebDriver driver, int seconds, final String xpath, String elementName, StackTraceElement t) throws IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, seconds);\n\t\t\t\t\ttry { wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(xpath))); }\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { fileWriterPrinter(\"\\n\" + elementName + \" not found!\\nXPATH: \" + xpath); }\n\t\t\t\t\tgetScreenShot(t, elementName.replace(\"\\\"\", \"''\") + \" presence Time-Out\", driver);\n\t\t\t\t\t}\n\t\t\t\t fileWriterPrinter(\"Waiting time for \" + padRight(elementName, 30 - elementName.length()) + \" presence: \" + waitTimeConroller(start, seconds, elementName) + \" sec\");\n\t\t\t\t return (driver.findElements(By.xpath(xpath)).size() > 0);\n\t\t\t\t}", "public void waitForLoad() {\n\tExpectedCondition<Boolean> pageLoadCondition = new ExpectedCondition<Boolean>()\r\n\t { \r\n public Boolean apply(WebDriver driver) \r\n {\r\n\t return ((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\r\n\t\t }\r\n\t\t };\r\n\t// a\r\n\t\t if((new WebDriverWait(driver, 0.1).until(PageLoadCondition))==false){\r\n\t\t \t \t\r\n\t\t \t//Takesscreenshot is a java class - screenshot code\r\n\t\t \tTakesScreenshot scrShot=((TakesScreenshot)driver);\r\n\t\t \tFile SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\r\n\t\t \tFile DestFile=new File(fileWithPath);\r\n\t\t \tFileUtils.copyFile(SrcFile, DestFile);\r\n\t\t \tSyso(\"page failed to load in 0.1 sec, refer screenshot saved in ___\");\r\n\t\t }\r\n\t\t// b \r\n\t\t if ((new WebDriverWait(driver, 5).until(PageLoadCondition))==true)){\r\n\t\t System.out.println(\"page loaded in 5 sec\");\t\r\n\t\t }\r\n\t}", "public WebElement waitForElement(By locator) {\n\t\tif(driver == null){\n\t\t\tthrow new IllegalArgumentException(\"WebDriver cannot be null\");\n\t\t}\n\t\treturn waitForElement(locator,explicitWait());\n\t}", "public static void waitforStaleElement(WebElement element) {\n\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\n\t\twait.until(ExpectedConditions.refreshed(ExpectedConditions.stalenessOf(element)));\n\n\t}", "public void waitForElementToReattachToDOM(final By bySelector)\n {\n // waits for the save to be registered before performing next action.\n System.out.println(\"Wait for element to not be stale \" + bySelector);\n new WebDriverWait(driver, DEFAULT_TIMEOUT, DEFAULT_SLEEP_IN_MILLIS).\n until(ExpectedConditions.not(ExpectedConditions.stalenessOf(waitForDisplay(bySelector))));\n }", "public static void waitForElement(WebElement element, AndroidDriver driver, String elementName, int seconds)\n\t\t\tthrows IOException {\n\t\ttry {\n\t\t\tlogger.info(\"---------Waiting for visibility of element---------\" + element);\n\n\t\t\tWait<AndroidDriver> wait = new FluentWait<AndroidDriver>(driver).withTimeout(seconds, TimeUnit.SECONDS)\n\t\t\t\t\t.pollingEvery(250, TimeUnit.MICROSECONDS).ignoring(NoSuchElementException.class);\n\t\t\t// Assert.assertTrue(wait.until(ExpectedConditions.visibilityOf(element))\n\t\t\t// !=\n\t\t\t// null);\n\t\t\tlogger.info(\"---------Element is visible---------\" + element);\n\t\t} catch (Exception e) {\n\t\t\tMyExtentListners.test.fail(MarkupHelper.createLabel(\"Verify \" + \"\\'\" + elementName + \"\\'\"\n\t\t\t\t\t+ \" is displayed || \" + \"\\'\" + elementName + \"\\'\" + \" is not displayed \", ExtentColor.RED));\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, elementName));\n\t\t\tlogger.info(\"---------Element is not visible---------\" + element);\n\t\t\tthrow e;\n\t\t} catch (AssertionError e) {\n\t\t\tMyExtentListners.test.fail(MarkupHelper.createLabel(\"Verify \" + \"\\'\" + elementName + \"\\'\"\n\t\t\t\t\t+ \" is displayed || \" + \"\\'\" + elementName + \"\\'\" + \" is not displayed \", ExtentColor.RED));\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, elementName));\n\t\t\tlogger.info(\"---------Element is not visible---------\" + element);\n\t\t\tthrow e;\n\t\t}\n\t}", "public WebElement waitForDisplay(final WebElement webelement)\n {\n return waitForDisplay(webelement, DEFAULT_TIMEOUT);\n }", "public static void waitForRegistrationButton(){\n DriverManager.waitForElement(Constans.REGISTRATION_BUTTON_LOCATOR);\n }", "public static void waitForElementToBeVisible(WebDriver driver,\n\t\t\tWebElement element) {\n\t\tlogger.info(\"Waiting for an element to be visible \" + element);\n\t\tWebDriverWait wait = new WebDriverWait(driver,\n\t\t\t\tInteger.parseInt(getConfigValues(\"timeOutInSeconds\")));\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "public void waitModalWindow(By waitForElement) {\n\t\tBaseWaitingWrapper.waitForElementToBeVisible(waitForElement, driver);\r\n\t\t\r\n\r\n\t}", "public static void awaitFor (By by, int timer)\n\t{\n\t\tawait ().\n\t\t\t\tatMost (timer, SECONDS).\n\t\t\t\tpollDelay (1, SECONDS).\n\t\t\t\tpollInterval (1, SECONDS).\n\t\t\t\tignoreExceptions ().\n\t\t\t\tuntilAsserted (() -> assertThat (getDriver ().findElement (by).isDisplayed ()).\n\t\t\t\t\t\tas (\"Wait for Web Element to be displayed.\").\n\t\t\t\t\t\tisEqualTo (true));\n\t}", "public void waitForPageToLoad() {\n Wait<WebDriver> wait = new WebDriverWait(WebDriverManager.getDriver(), 90);\n wait.until(new Function<WebDriver, Boolean>() {\n public Boolean apply(WebDriver driver) {\n return String\n .valueOf(((JavascriptExecutor) driver).executeScript(\"return document.readyState\"))\n .equals(\"complete\");\n }\n });\n try {\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"waitMessage_div\")));\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(\"//div[contains(text(),'Loading')]\")));\n // waitForPageToLoad();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected void waitThePageToLoad() {\n ExpectedCondition pageLoadCondition = new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver driver) {\n return ((JavascriptExecutor) driver).executeScript(\"return document.readyState\").equals(\"complete\");\n }\n };\n WaitUtils.waitUntil(driver, pageLoadCondition);\n }", "public static void waitForelementClickable(By by, long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.elementToBeClickable(by));\n }", "public static ExpectedCondition<WebElement> explicitWaitForElement(final By by) throws WebDriverException {\n uiBlockerTest(\"\", \"\");\n \treturn new ExpectedCondition<WebElement>() {\n public WebElement apply(WebDriver driver) {\n WebElement element = driver.findElement(by);\n return element.isDisplayed()?element:null;\n }\n };\n }", "public static void VerifySum()\r\n\t {\r\n\t WebElement BagSum = Browser.instance.findElement(BagValueSum);\r\n\t\r\n\t if(BagSum.getAttribute(\"value\").equals(output))\r\n\t {\r\n\t\tSystem.out.println(\"Bag Value Sum is Matching\"); \r\n\t } \r\n\t else\r\n\t {\r\n\t\t System.out.println(\"Bag Value Sum is not matching\");\r\n\t }\r\n\r\n\t\tWebDriverWait wait=new WebDriverWait(Browser.instance,10);\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(cancelButton));\r\n\t\tBrowser.instance.findElement(cancelButton).click();\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(confirmYesButton));\r\n\t\tBrowser.instance.findElement(confirmYesButton).click();\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(editButton));\r\n\r\n}", "void letterWait(String path) {\n WebDriverWait newsWait = new WebDriverWait(chrome, 3);\n try {\n newsWait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(path)));\n chrome.findElement(By.xpath(path)).click();\n\n } catch (Throwable e) {\n// e.printStackTrace();\n }\n }", "public void isElementVisible(WebElement elem) {\n try {\n driverWait.until(ExpectedConditions.visibilityOf(elem));\n System.out.println(\"Element is present in the page\");\n } catch (Exception e) {\n Assert.fail(\"Element isn't present in the page\");\n }\n }", "static void test(WebDriver driver, String usrnm, String pwd) {\n\t\tWebElement usernameBox = driver.findElement(By.xpath(\"//input[@id='name']\"));\r\n\t\tWebElement passwordBox = driver.findElement(By.xpath(\"//input[@id='password']\"));\r\n\t\tWebElement loginButton = driver.findElement(By.xpath(\"//input[@type='submit']\"));\r\n\t\t\t\r\n\t\t// Send values to input boxes\t\t\r\n\t\tusernameBox.sendKeys(usrnm);\r\n\t\tpasswordBox.sendKeys(pwd);\r\n\t\tloginButton.click();\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\r\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"/html/body/div[4]/div[2]/div/div/div[1]/div/div[1]/div/div[1]/div/div[3]/div/div[2]/div/div/div/div[2]/div[2]/div[2]/div/div/div/div[2]/div/table/tbody/tr[5]/td[2]/div/div\")));\r\n}", "public void waitUntilElementVisibility(WebDriver driver, int seconds, final String xpath, String elementName, StackTraceElement t) throws IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, seconds);\n\t\t\t\t\ttry { wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath))); }\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { \n\t\t\t\t\t\t\tfileWriterPrinter(\"\\n\" + elementName + \" is still not visible!\\nXPATH: \" + xpath);\n\t\t\t\t\t\t\tgetScreenShot(t, elementName.replace(\"\\\"\", \"''\") + \" visibility Time-Out\", driver);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t fileWriterPrinter(\"Waiting time for \" + padRight(elementName, 28 - elementName.length()) + \" visibility: \" + waitTimeConroller(start, seconds, elementName) + \" sec\");\n\t\t\t\t\t}", "public boolean explixitWait(WebDriver driver, String xpath) \r\n\t{\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, Constants.WEB_DRIVER_WAIT);\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(getValue(xpath))));\r\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(By.xpath(getValue(xpath))));\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void explicitWaitTillVisible(WebDriver driver, int sec, WebElement element) {\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, sec);\r\n\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t}", "protected WebElement aguardaElemento(ExpectedCondition<WebElement> expect) {\n\t\treturn Capabilities.getWait().until(ExpectedConditions.refreshed(expect));\n\t}", "public static WebElement waitForElementPresent(WebDriver driver,\n\t\t\tfinal By by, long timeOutInSeconds) {\n\n\t\tWebElement we = null;\n\t\ttry {\n\t\t\tWebDriverWait wdw = new WebDriverWait(driver, timeOutInSeconds);\n\n\t\t\tif ((we = wdw.until(new ExpectedCondition<WebElement>() {\n\t\t\t\tpublic WebElement apply(WebDriver d) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn d.findElement(by);\n\t\t\t\t}\n\t\t\t})) != null) {\n\t\t\t\t// Do something;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Do something;\n\t\t}\n\t\treturn we;\n\n\t}", "public WebElement waitFor(By by, int index)\n\t{\n\t\tTimer elemTimer = new Timer(ELEMENT_WAIT);\n\t\twhile(elemTimer.stillWaiting())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tList<WebElement> elems = findElements(by);\n\t\t\t\tif(elems.size() > index) //can see enough elements\n\t\t\t\t{\n\t\t\t\t\tif(elems.get(index).isDisplayed() && elems.get(index).isEnabled())\n\t\t\t\t\t{\n\t\t\t\t\t\treturn elems.get(index);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(ElementNotVisibleException | NoSuchElementException | StaleElementReferenceException e)\n\t\t\t{\n\n\t\t\t}\n\t\t\tcatch(UnhandledAlertException e)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tswitchTo().alert().dismiss();\n\t\t\t\t}\n\t\t\t\tcatch(NoAlertPresentException a) //Really don't know\n\t\t\t\t{}\n\t\t\t}\n\t\t\tMacro.sleep(300);\n\t\t}\n\t\treturn null;\n\t}", "public WebElement waitTillVisible(final WebElement element) {\n return (new WebDriverWait(webDriver, WAIT_TIME)).until(ExpectedConditions.elementToBeClickable(element));\n }", "public static WebElement waitForElementToBeVisible(By locator, int timeOut){\n\t\tWebDriverWait wait = new WebDriverWait(driver, timeOut);\n\t\treturn wait.until(ExpectedConditions.visibilityOf(getElement(locator)));\n\n\t}", "public boolean waitForVisibilityOfElement(By locator) {\r\n\t\ttry {\r\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\r\n\t\t\treturn true;\r\n\t\t} catch (ElementNotVisibleException e) {\r\n\t\t\tSystem.out.println(\"ElementNotVisibleException\" + e.getMessage());\r\n\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static void waitFor(WebElement element, int timer, WebDriver driver) {\n\n\t\t// Wait for the static element to appear\n\n\t\tWait<WebDriver> exists = new WebDriverWait(driver, timer).withMessage(\"element not visible\");\n\t\texists.until(ExpectedConditions.refreshed(ExpectedConditions.visibilityOf(element)));\n\t\n\n\t}", "public static WebElement waitUntilPresenceOfElementLocated(By by) {\n WebDriverWait webDriverWait = getWebDriverWait();\n return webDriverWait.until(ExpectedConditions.presenceOfElementLocated(by));\n }", "public void waitUntilElementInvisibility(WebDriver driver, int seconds, final String xpath, String elementName, StackTraceElement t) throws IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, seconds);\n\t\t\t\t\ttry { wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(xpath))); }\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() > 0) { \n\t\t\t\t\t\t\tfileWriterPrinter(\"\\n\" + elementName + \" is still visible!\\nXPATH: \" + xpath);\n\t\t\t\t\t\t\tgetScreenShot(t, elementName.replace(\"\\\"\", \"''\") + \" invisibility Time-Out\", driver);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t fileWriterPrinter(\"Waiting time for \" + padRight(elementName, 26 - elementName.length()) + \" invisibility: \" + waitTimeConroller(start, seconds, elementName) + \" sec\");\n\t\t\t\t\t}", "@Override\n public boolean isPresent(long seconds){\n if (seconds < 0) {\n return false;\n }\n try\t{\n WebElement element = (WebElement) (new WebDriverWait(driver, seconds))\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.presenceOfElementLocated(locator));\n this.element = element;\n return true;\n }\n catch (NoSuchElementException ex){\n this.noSuchElementException = new NoSuchElementException(locator.toString());;\n return false;\n }\n catch (TimeoutException ex){\n this.noSuchElementException = new NoSuchElementException(locator.toString());\n return false;\n }\n }", "public void waitForEndOfAllAjaxes(){\r\n\t\tLOGGER.info(Utilities.getCurrentThreadId()\r\n\t\t\t\t+ \" Wait for the page to load...\");\r\n\t\tWebDriverWait wait = new WebDriverWait(driver,Integer.parseInt(Configurations.TEST_PROPERTIES.get(ELEMENTSEARCHTIMEOUT)));\r\n\t\twait.until(new ExpectedCondition<Boolean>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Boolean apply(WebDriver driver) {\r\n\t\t\t\t//\t\t\t\treturn (Boolean)((JavascriptExecutor)driver).executeScript(\"return jQuery.active == 0\");\r\n\t\t\t\treturn ((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\r\n\t\t\t\t//\t\t\t\t return Boolean.valueOf(((JavascriptExecutor) driver).executeScript(\"return (window.angular !== undefined) && (angular.element(document).injector() !== undefined) && (angular.element(document).injector().get('$http').pendingRequests.length === 0)\").toString());\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public WebElement waitForElementToBeClickable(final WebElement webElement)\n {\n // waits for the save to be registered before performing next action.\n System.out.println(\"Wait for clickable \" + webElement);\n return new WebDriverWait(driver,\n DEFAULT_TIMEOUT, DEFAULT_SLEEP_IN_MILLIS).ignoring(\n WebDriverException.class).ignoring(StaleElementReferenceException.class).\n until(ExpectedConditions.elementToBeClickable(webElement));\n }", "@And(\"^I wait for page to load completely$\")\n\tpublic void waitForCompleteLoading(){\n\t\tString result=selenium.synchronize();\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}" ]
[ "0.7670062", "0.7515577", "0.73475224", "0.7346099", "0.7200078", "0.71582156", "0.71480304", "0.71443254", "0.7100568", "0.7072867", "0.70688635", "0.70675325", "0.7047821", "0.7022546", "0.699408", "0.6973738", "0.6958343", "0.69448704", "0.69224167", "0.69137263", "0.6904688", "0.68808264", "0.68567723", "0.68380606", "0.682306", "0.68187934", "0.68047726", "0.6791766", "0.67874235", "0.67660517", "0.6758405", "0.6731407", "0.6726616", "0.6718856", "0.6705543", "0.668545", "0.6670384", "0.6639222", "0.6636466", "0.6634521", "0.6634424", "0.66216516", "0.66149706", "0.6609209", "0.66085804", "0.65939844", "0.6590761", "0.65453243", "0.6542134", "0.6537158", "0.6535348", "0.6517944", "0.64992714", "0.64983666", "0.64966816", "0.6490297", "0.64829445", "0.64691526", "0.6453735", "0.6448807", "0.64408416", "0.64397275", "0.643838", "0.6427387", "0.64244473", "0.64150715", "0.64129597", "0.64082587", "0.63982743", "0.63959104", "0.6384945", "0.63826525", "0.63711727", "0.63390356", "0.6330144", "0.63260514", "0.63156074", "0.6297192", "0.62771785", "0.62713706", "0.62657493", "0.6262513", "0.62569594", "0.62534195", "0.6251045", "0.62456787", "0.62441945", "0.6239248", "0.62227374", "0.6219149", "0.6218687", "0.62183374", "0.6218024", "0.621678", "0.6209592", "0.62077856", "0.6207678", "0.6199452", "0.61947787", "0.6187418", "0.6184572" ]
0.0
-1
This method is to reset preferences and make sure user is logged out before performing a new test case
public static void ResetPreferences() throws Exception{ File root = InstrumentationRegistry.getTargetContext().getFilesDir().getParentFile(); String[] sharedPreferencesFileNames = new File(root, "shared_prefs").list(); try{ for (String fileName : sharedPreferencesFileNames) { InstrumentationRegistry.getTargetContext().getSharedPreferences(fileName.replace(".xml", ""), Context.MODE_PRIVATE).edit().clear().commit(); } } catch (NullPointerException exp){} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearForTesting() {\n mPreferences.edit().clear().apply();\n }", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "public void logout() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.clear();\r\n editor.apply();\r\n ctx.startActivity(new Intent(ctx, MainActivity.class));\r\n }", "public void logout(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", 0);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.clear();\n preferencesEditor.commit();\n // take user back to login screen\n Intent logoutIntent = new Intent(mContext, LoginActivity.class);\n logoutIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(logoutIntent);\n }", "public void clearLoginInfo(){\n ProfileSharedPreferencesRepository.getInstance(application).clearLoginInfo();\n }", "public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n mCtx.startActivity(new Intent(mCtx, LoginActivity.class));\n }", "public void logout() {\n\n // Instance, user and token become null\n instance = null;\n user = null;\n authtoken = null;\n\n // Switch all the settings back to true\n isLifeStoryLinesOn = true;\n isFamilyTreeLinesOn = true;\n isSpouseLinesOn = true;\n isFatherSideOn = true;\n isMotherSideOn = true;\n isMaleEventsOn = true;\n isFemaleEventsOn = true;\n\n //Take care of resetting boolean logics use throughout app\n isLoggedIn = false;\n personOrSearch = false;\n startLocation = null;\n eventID = null;\n\n // Clear all lists\n\n people.clear();\n events.clear();\n personEvents.clear();\n currentPersonEvents.clear();\n eventTypes.clear();\n\n childrenMap.clear();\n maleSpouse.clear();\n femaleSpouse.clear();\n paternalAncestorsMales.clear();\n paternalAncestorsFemales.clear();\n maternalAncestorsMales.clear();\n maternalAncestorsFemales.clear();\n }", "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n Intent myIntent = new Intent(mCtx, LoginActivity.class);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mCtx.startActivity(myIntent);\n }", "@AfterClass\n\tpublic void tearDown() {\n\n\t\tsettings.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t\tapp.quit();\n\t\ttest.log(Status.INFO, \"Closed firefox\");\n\n\t}", "public static void tearDown() {\n reset();\n clear();\n APIConfig.getInstance().setAppId(null, null);\n APIConfig.getInstance().setDeviceId(null);\n APIConfig.getInstance().setToken(null);\n APIConfig.getInstance().setUserId(null);\n Leanplum.setApplicationContext(null);\n }", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "public void logout() {\n // Mengambil method clear untuk menghapus data Shared Preference\n editor.clear();\n // Mengeksekusi perintah clear\n editor.commit();\n // Membuat intent untuk berpindah halaman\n Intent intent = new Intent(context, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n }", "public void clearSession(){\n mIsLoggedIn = false;\n mUser = null;\n clearSharedPreference();\n }", "public void resetAllExceptLogout() {\n reset(getAllExcept(UserActions.NOTIFY_LOGOUT_ACTION));\n }", "public void clearUserSession() {\n editor.clear();\r\n editor.commit();\r\n }", "public void logOut() {\n sp.edit().clear().commit();\n }", "@AfterClass\n public static void afterStories() throws Exception {\n Thucydides.getCurrentSession().clear();\n }", "public void onLogout(){\n\t\tString userid = prefs.getString(ctx.getString(R.string.prefs_username),\"\" );\n\t\t\n\t\tif (! userid.equals(\"\"))\n\t\t{\n\t\t\tString firstname = \"\";\n\t\t\tString lastname =\"\" ;\n\t\t\t\n\t\t\tif (! prefs.getString(ctx.getString(R.string.prefs_display_name),\"\").isEmpty()) {\n\t\t\t\tString displayname = prefs.getString(ctx.getString(R.string.prefs_display_name),\"\");\n\t\t\t\tString[] name = displayname.split(\" \");\n\t\t\t\tif (name.length > 0) {\n\t\t\t\t\tfirstname = name[0];\n\t\t\t\t\tlastname = name[1];\n\t\t\t\t} else {\n\t\t\t\t\tfirstname = displayname;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint points = prefs.getInt(ctx.getString(R.string.prefs_points),0);\n\t\t\tint badges = prefs.getInt(ctx.getString(R.string.prefs_badges),0);\t\t\t\n\t\t\tboolean scoring = prefs.getBoolean(ctx.getString(R.string.prefs_scoring_enabled),true);\n\n\t\t\tupdateUser(userid, prefs.getString(ctx.getString(R.string.prefs_api_key),\"\"), firstname, lastname, points, badges, scoring);\n\t\t}\n\t\t\n\t\t\n\t\t// Reset preferences\n\t\tEditor editor = prefs.edit();\n \teditor.putString(ctx.getString(R.string.prefs_username), \"\");\n \teditor.putString(ctx.getString(R.string.prefs_api_key), \"\");\n \teditor.putString(ctx.getString(R.string.prefs_display_name),\"\");\n \teditor.putInt(ctx.getString(R.string.prefs_points), 0);\n \teditor.putInt(ctx.getString(R.string.prefs_badges), 0);\n \teditor.putBoolean(ctx.getString(R.string.prefs_scoring_enabled), false);\n \teditor.commit();\n\t}", "private void logout(){\n ParseUser.logOut();\n removeUserFromPrefs();\n Intent intent = LandingActivity.intent_factory(this);\n startActivity(intent);\n }", "public void attemptLogout() {\n spEditor.clear();\n spEditor.putBoolean(LOGGEDIN_KEY, false);\n spEditor.commit();\n }", "public void logOut() {\n\t\tToken.getIstance().setHashPassword(null);\n\t}", "public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}", "@BeforeClass\n public static void beforeStories() throws Exception {\n Thucydides.getCurrentSession().clear();\n }", "public void Logout() {\n \t\t\t\n \t\t}", "void logoff();", "@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}", "@Override\n public void loggedOut() {\n timeTables = new Timetables();\n appointments = new Appointments();\n tasks = new Tasks();\n messages = new Messages();\n substitutions = new Substitutions();\n files = new Files();\n announcements = new Announcements();\n excuseNotes = new ExcuseNotes();\n }", "public static void logout() {\n userId = -1;\n aisId = -1;\n \n name = \"\";\n role = \"\";\n roleFromDatabase = \"\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n }", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "public void reset() {\n mHsConfig = null;\n mLoginRestClient = null;\n mThirdPidRestClient = null;\n mProfileRestClient = null;\n mRegistrationResponse = null;\n\n mSupportedStages.clear();\n mRequiredStages.clear();\n mOptionalStages.clear();\n\n mUsername = null;\n mPassword = null;\n mEmail = null;\n mPhoneNumber = null;\n mCaptchaResponse = null;\n mTermsApproved = false;\n\n mShowThreePidWarning = false;\n mDoesRequireIdentityServer = false;\n }", "@Override\n protected void tearDown() throws Exception {\n super.tearDown();\n preferences.setValue(IPreferenceConstants.P_CREATION_FLOW, false);\n }", "private void testFinished() {\n\t\t\tLoginPage.logout(driver());\n\t\t}", "@AfterTest\n\t\tpublic void logout(){\n//Calling method to logout from the account and verify logout message.\n//'**********************************************************\n\t\t\tLogOutPage accountLogoutPage =myWishlistPage.logout();\n\t\t\tAssert.assertTrue(accountLogoutPage.getlogoutMsg().equals(\"Account Logout\"), \"Account Logout message is not displayed\");\n\t\t\textentTest.log(LogStatus.PASS,\"Account Logout message is displayed and the user is signed out from the account\");\n//'**********************************************************\n//Close the report\n//'**********************************************************\n\t\t\textentReports.endTest(extentTest);\n\t\t\textentReports.flush();\n\t\t\textentReports.close();\n\t\t}", "public void resetValues() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(CUREDIFFICULTY, null);\n editor.putInt(CURETARGETSCORE, 0);\n editor.putInt(CURRSCOREFINDCURE, 0);\n editor.apply();\n System.out.println(sharedPreferences.getAll());\n\n }", "@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}", "public static void reset() {\n prefs().edit()\n .remove(PREFKEY_USER_ID)\n .remove(PREFKEY_READER_TAG)\n .remove(PREFKEY_READER_RECOMMENDED_OFFSET)\n .remove(PREFKEY_READER_SUBS_PAGE_TITLE)\n .commit();\n }", "private void logout() {\n getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit().clear().apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE).edit().putBoolean(IS_LOGGED_IN, false).apply();\n\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(URL + \"/nuh/logout\")\n .build();\n AsyncTask.execute(() -> {\n try {\n client.newCall(request).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }", "public void onSignOut() {\n SharedPreferences userPrefs = PreferenceManager.getDefaultSharedPreferences(\n TBLoaderAppContext.getInstance());\n SharedPreferences.Editor editor = userPrefs.edit();\n editor.clear().apply();\n mTbSrnHelper = null;\n mUserPrograms = null;\n }", "protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}", "private void resetApp() {\n\t\tSession.inResetMode = true;\n\t\t// Stopping alarm and GPS services at reset.\n\t\t// MyAlarmService.cancelMyAlarmService(this.getApplicationContext());\n\t\tif (Sw_LoginScreenActivity.this.stopService(new Intent(Sw_LoginScreenActivity.this, MyAlarmService.class))) {\n\t\t\tMyAlarmService.running = false;\n\t\t\tLog.w(\"Snowboard\", \"MyAlarmService stopped due to application reset.\");\n\t\t} else {\n\t\t\tLog.e(\"Snowboard\", \"Failed to stop MyAlarmService in application reset.\");\n\t\t}\n\n\t\tif (Sw_LoginScreenActivity.this.stopService(new Intent(Sw_LoginScreenActivity.this, GPSService.class))) {\n\t\t\tLog.w(\"Snowboard\", \"GPSService stopped due to application reset.\");\n\t\t} else {\n\t\t\tLog.e(\"Snowboard\", \"Failed to stop GPSService in application reset.\");\n\t\t}\n\n\t\ttry {\n\t\t\tDataBaseHelper myDbHelper = new DataBaseHelper(Sw_LoginScreenActivity.this);\n\t\t\ttry {\n\t\t\t\t// Deleting Previous Database.\n\t\t\t\tmyDbHelper.dbDelete();\n\t\t\t} catch (Exception ioe) {\n\t\t\t\tLog.e(TAG, \"Unable to delete database\");\n\t\t\t}\n\t\t\tLog.i(TAG, \"DB Deleted\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// clear preferences\n\t\teditor.clear();\n\t\teditor.commit();\n\n\t\teditor.putBoolean(Config.IS_RESET_KEY, true);\n\t\teditor.putString(Config.SERVER_URL_KEY, NetworkUtilities.BASE_URL);\n\t\teditor.commit();\n\n\t\t// Recalling this activity\n\t\tstartActivity(new Intent(Sw_LoginScreenActivity.this, Sw_LoginScreenActivity.class));\n\t\tfinish();\n\t}", "public synchronized void resetUserWorkouts() {\n userWorkouts = null;\n }", "@Test (priority=0)\n\tpublic synchronized void resetPasswordOnQA() throws InterruptedException, IOException, AWTException {\n\t\n\t\tif (resetQA == true)\n\t\t{\n\t\t\n\t\t\tRemoteWebDriver driver = DriverFactory.getInstance().getDriver();\n\t\t\t\n\t\t\t/********************************************************************************\n\t\t\t * \n\t\t\t * CREATE USER ON QA\n\t\t\t * \n\t\t\t ********************************************************************************/\n\t\t\t\n\t\t\t// Environment\n\t\t\tString env = \"QA\";\n\t\t\t\n\t\t\t// Go to QA Secure site\n\t\t\tdriver.get(\"https://secure.mercuryvmpqa.com/\");\n\t\t\t\n\t\t\t// Create the user\n\t\t\tresetPassword(driver, env);\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\n\t\telse\n\t\t{\n\t\t\tExtentTest test = ExtentTestManager.getTest();\n\t\t\t// Skip test\n\t\t\tSystem.out.println(\"Skipped resetting the password for the user on QA becuase the boolean was set to false\");\n\t\t\t// Log a skip in the extent report\n\t\t\ttest.log(LogStatus.SKIP, \"<span class='label info'>SKIPPED</span>\", \"<pre>Skipped resetting the password for the user on QA becuase the boolean was set to false</pre>\");\n\t\t} // end else\n\t\t\n\t}", "public static void makeUnlogged() {\n\t\tMemberSessionFacade.removeAttribute(ConfigKeys.LOGGED);\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, null);\n\t}", "void clearCurrentUser() {\n currentUser = null;\n }", "public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}", "private void onLogoutButtonClick() {\r\n mViewModel.logout();\r\n //Clear input fields\r\n mUsernameInput.setText(\"\");\r\n mTokenInput.setText(\"\");\r\n\r\n //Clear saved credentials\r\n FragmentActivity activity = getActivity();\r\n if (activity == null) {\r\n return;\r\n }\r\n SharedPreferences sharedPreferences = activity.getApplicationContext().getSharedPreferences(getString(R.string.key_pref_file), MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.putString(getString(R.string.key_pref_username), \"\");\r\n editor.putString(getString(R.string.key_pref_token), \"\");\r\n editor.apply();\r\n }", "@After\r\n\tpublic void teardown() throws FindFailed {\r\n\t\t//TODO: check if not LoginPage is displayed > then\r\n\t\tnew HomePage(s).logOut();\r\n\t\tSystemActions.closeClient(app);\r\n\t}", "private void resetSharedPreferences(){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(getString(R.string.pref_genre_key), getString(R.string.pref_genre_any_value));\n editor.putString(getString(R.string.pref_earliest_year_key), getString(R.string.pref_earliest_year_default));\n editor.putString(getString(R.string.pref_latest_year_key), getString(R.string.pref_latest_year_default));\n // Commit the edits\n editor.apply();\n }", "@Test (enabled = false, retryAnalyzer = Retry.class, testName = \"Sanity Tests\", description = \"Settings: Save Login\",\n\t\t\tgroups = { \"Sanity Android1\" })\n\t\t\t\n\tpublic void settingsKeepMeSignedIn() throws Exception, Throwable {\n\t\tgenMeth.clickName(genMeth, droidData.Settings_Name);\n//\t\tgenMeth.takeScreenShotPositive(genMeth, \"keep me signed in is checked\");\n\t\t\n\t\ttry {\n\t\t\tdriver.launchApp();\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tgenMeth.isElementVisible(By.name(\"Pogoplug Cloud\"));\n\t\t\n\t\t\n\t\t// Keep me signed in = False\n\t\tgenMeth.clickId(genMeth, droidData.IconLeftUpperBack_ID);\n\t\tgenMeth.clickName(genMeth, droidData.Settings_Name);\n\t\tgenMeth.clickName(genMeth, \"Keep me signed in\");\n\t\t\n\t\ttry {\n\t\t\tdriver.close();\n\t\t\tdriver.launchApp();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tgenMeth.isElementVisible(By.id(droidData.BTNalreadyHaveAnAccount_id));\n\n\t}", "public void clearSharedPreferences(){\n\n //clear user session data\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.clear();\n editor.apply();\n\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public void clearStatus(){\r\n\t\tmsgActionResult=null;\r\n\t\tcurrentPasswordConfirmed = false;\r\n\t\tpassword = \"\";\r\n\t}", "public void logout() {\n editor.clear();\n editor.commit();\n\n }", "private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }", "public void logoutCurrentUser() {\n currentUser = null;\n }", "public void resetHistory() {\n SharedPreferences.Editor editor = preferences.edit();\n editor.remove(\"usernameHistory\");\n editor.apply();\n }", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void logOutAdministrator() {\n logOutGeneral();\n }", "static void logout() {\n\t\tserver.clearSharedFiles(username);\n\t\tserver.clearNotSharedFiles(username);\n\t}", "public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}", "private void logout(){\n Log.i(\"HHH\",\"disconnect\");\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(\"Are you sure you want to log out ?\");\n alertDialogBuilder.setPositiveButton(\"YES\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n Intent intent1 = new Intent(ControlDiagnostic.this, HistoryActivity.class);\n startActivity(intent1);\n //Getting out sharedpreferences\n //SharedPreferences preferences = getSharedPreferences(Config.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Getting editor\n /* SharedPreferences.Editor editor = preferences.edit();\n\n //Puting the value false for loggedin\n editor.putBoolean(Config.LOGGEDIN_SHARED_PREF, false);\n\n //Putting blank value to email\n editor.putString(Config.KEY_USER_EMAIL, \"\");\n\n //Saving the sharedpreferences\n editor.commit();*/\n\n //Starting login activity\n // Intent intent = new Intent(NavigationActivity.this, Login.class);\n // startActivity(intent);\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"NO\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n\n }\n });\n\n //Showing the alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n\n }", "public void resetUser() {\n\t\ttry {\n\t\t\tif(null != rawSrv){\n\t\t\trawSrv.resetCfgGroup(ConfigType.RESET_USER);\n\t\t\t}\n\t\t} catch (TVMException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void resetAccountSettings()\n {\n getSaveFeedbackLabel().setText(\"\");\n getChangeUsernameErrorLabel().setText(\"\");\n updateProfilePictures();\n updateProfileLabels();\n setBufferImage(null);\n getImagePathLabel().setText(IMAGE_PATH_DEFAULT);\n changePasswordController.resetPasswordFields();\n passwordFeedbackLabel.setText(\"\");\n\n changeUsernameField.setText(\"\");\n changeUsernameField.setPromptText(controllerComponents.getAccount().getUsername());\n emailField.setPromptText(controllerComponents.getAccount().getEmail());\n currentUsernameLabel.setText(controllerComponents.getAccount().getUsername());\n }", "@AfterClass\n public static void tearDownClass() {\n ApplicationSessionManager.getInstance().stopSession();\n }", "private void doLogout() {\r\n\t\tdoctor.setOnline(0);\r\n\t\t// Set doctor as logged out\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Release objects and notify observers\r\n\t\tloggedIn = false;\r\n\t\tnotifyObservers();\r\n\t\tdoctors = null;\r\n\t\tdoctor = null;\r\n\t}", "public void logout() {\n loggedIn = \"\";\n FacesContext.getCurrentInstance().getExternalContext()\n .getSessionMap().put(\"loggedIn\", \"\");\n }", "public void logOut() {\n\t\t// Close all opened windows and start up the App again\n\t\tcurrentUser = null;\n\t\tcurrentContact = null;\n\t\tjava.awt.Window win[] = java.awt.Window.getWindows();\n\t\tfor (int i = 0; i < win.length; i++) {\n\t\t\twin[i].dispose();\n\t\t}\n\t\tApp.main(null);\n\t}", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(Activity_Main.this, Activity_Login.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void resetStateOfSUT() {\n\n try {\n //FIXME: this fails due to locks on Neo4j. need way to reset it\n //deleteDir(new File(tmpFolder));\n if(!Files.exists(Path.of(tmpFolder))) {\n Files.createDirectories(Path.of(tmpFolder));\n }\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"users.json\"), Path.of(tmpFolder,\"users.json\"), StandardCopyOption.REPLACE_EXISTING);\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"logins.json\"), Path.of(tmpFolder,\"logins.json\"), StandardCopyOption.REPLACE_EXISTING);\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tSessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.unbindResource(sessionFactory);\r\n\t\tSessionFactoryUtils.closeSession(sessionHolder.getSession());\r\n\r\n\t\t// seulement dans le cas d'utilisation de spring security //\r\n\t\tSecurityContextHolder.getContext().setAuthentication(null);\r\n\t}", "public void reset() {\r\n id = -1;\r\n username = \"\";\r\n password = \"\";\r\n password2 = \"\";\r\n firstName = \"\";\r\n lastName = \"\";\r\n phoneNumber = \"\";\r\n email = \"\";\r\n address = \"\";\r\n socialSecurityNumber = \"\";\r\n creditCard = \"\";\r\n }", "@Override\n public void Logout() {\n\t \n }", "protected void ClearData() {\n\t\t// TODO Auto-generated method stub\n\t\n\t\t sharedPreferences = this.getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);\n\t\t Editor editor = sharedPreferences.edit();\n\t\t if(sharedPreferences.contains(\"username\")||sharedPreferences.contains(\"password\")){\n\t\t\t editor.remove(\"username\");\n\t\t\t editor.remove(\"password\");\n\t\t }\n\t\t editor.clear();\n\t\t editor.commit();\n\t}", "@After\r\n public void tearDown() throws Exception {\r\n PWCallback.resetHandle();\r\n }", "public void logout() {\n\n $(logOutNavigator).click();\n driver = commonMethods.waitForElement(driver, logOffBtn);\n $(logOffBtn).click();\n $(loadingProgressIcon).should(disappear);\n }", "public void logout(){\r\n\t\tallUser.remove(this.sessionID);\r\n\t\tthis.sessionID = -1;\r\n\t}", "private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "public void logOut() {\n Logger.d(TAG,\"login#logOut\");\n Logger.d(TAG,\"login#stop reconnecting\");\n //\t\teverlogined is enough to stop reconnecting\n everLogined = false;\n isLocalLogin = false;\n reqLoginOut();\n }", "public void logoutpackged() {\n\n editor.remove(IS_LOGIN);\n editor.remove(KEY_NAME);\n editor.remove(KEY_EMAIL);\n editor.remove(KEY_ID);\n// editor.remove(KEY_IMAGEURI);\n editor.remove(PROFILE_IMG_URL);\n editor.remove(PROFILE_IMG_PATH);\n// editor.remove(KEY_LANGUAGE);\n editor.commit();\n\n /* Intent i = new Intent(context, SelectLanguage.class);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(i);\n ((Activity) context).finish();*/\n\n }", "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "@AfterClass\n public static void tearDownClass() throws Exception {\n if (!RunningOnGithubAction.isRunningOnGithubAction()) {\n Connection connection = getSnowflakeAdminConnection();\n connection\n .createStatement()\n .execute(\n \"alter system set\"\n + \" master_token_validity=default\"\n + \",session_token_validity=default\"\n + \",SESSION_RECORD_ACCESS_INTERVAL_SECS=default\");\n connection.close();\n }\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(getActivity(), LoginActivity.class);\n startActivity(intent);\n getActivity().finish();\n }", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "public static void clear(){\n preferences.edit().clear().apply();\n }", "public void logout() {\n\n clearData();\n Intent intent = new Intent(getContext(), LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n\n\n }", "@AfterMethod\n public void logout() {\n TalentPage talentPage = new TalentPage(driver);\n talentPage.logout();\n }", "@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }", "@Test\n\tpublic void should_resetTheLocale() {\n\t\t// set user locale to nothing\n\t\tContext.setLocale(null);\n\t\t\n\t\t// clear out the caches\n\t\tGlobalProperty defaultLocale = new GlobalProperty(OpenmrsConstants.GLOBAL_PROPERTY_DEFAULT_LOCALE, \"\",\n\t\t \"blanking out default locale\");\n\t\tContext.getAdministrationService().saveGlobalProperty(defaultLocale);\n\t}", "@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLocalRequest().getSession().invalidate();\n\t\t\n\t}", "public static void clearAllSavedUserData() {\n cacheUser = null;\n cacheAccessToken = null;\n getSharedPreferences().edit().clear().commit();\n }", "@Override\n public void clearSharedPrefs() {\n\n }", "protected void logout() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\t\tuserController.performLogout();\n\n\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t}", "private void logOutIfAlreadyLogInTest() {\n try {\n onView(withId(R.id.menuButtonImage)).perform(click());\n onView(withText(R.string.logout)).perform(click());\n onView(withId(R.id.google_sign_in_button)).check(matches(isDisplayed()));\n }\n catch (NoMatchingViewException e) {\n // was already logged out\n }\n }", "@After\n\tpublic void tearDownTest() {\n\t\tDepclipsePlugin.getDefault().getPreferenceStore().setValue(\n\t\t\t\tJDependPreferenceConstants.PREF_ACTIVE_FILTERS_LIST,\n\t\t\t\tDepclipsePlugin.getDefault().getPreferenceStore()\n\t\t\t\t\t\t.getDefaultString(\n\t\t\t\t\t\t\t\tJDependPreferenceConstants.PREF_ACTIVE_FILTERS_LIST));\n\t}", "public static void deleteLogin(Context context) {\n SharedPreferences.Editor editor = context.getSharedPreferences(Utils.SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE).edit();\n editor.putBoolean(LOGIN_SAVED_KEY, false);\n editor.apply();\n loggedIn = false;\n }", "@Test\n public void conditionalOTPDefaultSkip() {\n Map<String, String> config = new HashMap<>();\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }", "public void logout(final Context applicationContext) {\n LoginManager.getInstance().logOut();\n\n SharedPreferences preferences\n = applicationContext.getSharedPreferences(ApplicationConstants.sSTRING_SHARED_PREFERENCES_FILENAME, Context.MODE_PRIVATE);\n // Clear SharedPreferences\n preferences.edit().clear().apply();\n\n setLoginState(false, applicationContext);\n\n }" ]
[ "0.68465203", "0.67837244", "0.6762739", "0.66474175", "0.6613463", "0.65770614", "0.65318584", "0.65179193", "0.65056294", "0.6427045", "0.64230245", "0.6422247", "0.641068", "0.6397808", "0.6393163", "0.6389639", "0.6388607", "0.6386226", "0.63849545", "0.6367167", "0.6331833", "0.6331666", "0.63259655", "0.6319442", "0.63034195", "0.6251299", "0.6248271", "0.6246074", "0.6169138", "0.61640036", "0.6132833", "0.6102039", "0.6101904", "0.60946923", "0.6094355", "0.607927", "0.60401666", "0.60329777", "0.6016229", "0.6014303", "0.6012489", "0.6009322", "0.6007791", "0.5975758", "0.59752643", "0.5965435", "0.59653044", "0.59493333", "0.59274673", "0.5921835", "0.5917945", "0.59171355", "0.59162253", "0.5907273", "0.59017336", "0.58980376", "0.5895399", "0.58942586", "0.5884092", "0.58828723", "0.58812654", "0.58801836", "0.5880037", "0.58648974", "0.58612233", "0.58604234", "0.58600867", "0.5854152", "0.5851517", "0.5851064", "0.58470535", "0.5845031", "0.5841843", "0.58349985", "0.5829843", "0.582872", "0.58262265", "0.58255625", "0.5822246", "0.5817119", "0.5811163", "0.58089614", "0.5805807", "0.5804279", "0.5799155", "0.5797366", "0.57928514", "0.5781576", "0.57812905", "0.57797396", "0.577732", "0.57722783", "0.5768392", "0.5767315", "0.57648504", "0.57627064", "0.57598615", "0.57576233", "0.57568765", "0.57559353", "0.575542" ]
0.0
-1
Use the current date as the default date in the picker
public Dialog onCreateDialog(Bundle savedInstanceState) { final Calendar c = Calendar.getInstance(); int year = c.get(Calendar.YEAR); int month = c.get(Calendar.MONTH); int day = c.get(Calendar.DAY_OF_MONTH); // Create a new instance of DatePickerDialog and return it DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day); if(this.getMinDate() != null){ dialog.getDatePicker().setMinDate(this.getMinDate().getTime()); } if(this.getMaxDate() != null){ dialog.getDatePicker().setMaxDate(this.getMaxDate().getTime()); } if(getPositiveClickListner() != null){ dialog.setButton(DialogInterface.BUTTON_POSITIVE, "OK", getPositiveClickListner()); } return dialog; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public void set_value_to_default() {\n this.selectionListStrike.setText(\"\");\n this.selectionListCal_iv.setText(\"\");\n this.selectionListUlast.setText(\"\");\n String format = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date());\n int parseInt = Integer.parseInt(format.substring(6, 10));\n int parseInt2 = Integer.parseInt(format.substring(3, 5));\n int parseInt3 = Integer.parseInt(format.substring(0, 2));\n this.selectedDate = parseInt + \"-\" + parseInt2 + \"-\" + parseInt3;\n this.selectionListExpiry.setSelectedText(format);\n this.selectionListExpiry.initItems(R.string.set_date, SelectionList.PopTypes.DATE, parseInt, parseInt2, parseInt3);\n if (!this.wtype.equals(\"C\")) {\n this.callputbutton.callOnClick();\n }\n }", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "public Date getSelectedDate();", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }", "abstract Date getDefault();", "private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }", "public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }", "private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public void setPickerDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.getYear(), date.getMonth().getValue(), date.getDayOfMonth()));\n new Dialog().confirmDialog();\n }", "public Date getSelectDate();", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "private DatePicker createDatePicker(boolean veto) {\r\n DatePickerSettings datePickerSettings = new DatePickerSettings();\r\n datePickerSettings.setAllowEmptyDates(false);\r\n datePickerSettings.setAllowKeyboardEditing(false);\r\n DatePicker datePicker = new DatePicker(datePickerSettings);\r\n if (veto) {\r\n // If today is Saturday or Sunday, this sets the default\r\n // to the following Monday\r\n if (LocalDate.now().getDayOfWeek() == DayOfWeek.SATURDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(3));\r\n } else if (LocalDate.now().getDayOfWeek() == DayOfWeek.SUNDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(2));\r\n } else datePicker.setDate(LocalDate.now().plusDays(1));\r\n // Veto Policy to disallow weekends\r\n datePickerSettings.setVetoPolicy(new VetoDates());\r\n } else datePicker.setDate(LocalDate.now());\r\n return datePicker;\r\n }", "public void setDefaultDateRange() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n Calendar todaysDate = Calendar.getInstance();\n toDateField.setText(dateFormat.format(todaysDate.getTime()));\n\n todaysDate.set(Calendar.DAY_OF_MONTH, 1);\n fromDateField.setText(dateFormat.format(todaysDate.getTime()));\n }", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "public void SetCurrentDate(CalendarWidget kCal) {\n\t\tfor(int i = 0; i < 42; ++i)\n\t\t{\n\t\t\tif(kCal.cell[i].date.getText().toString().length() == 0)\n\t\t\t\tcontinue;\n\t\t\tkCal.checkForCurrentData(kCal.cell[i]);\n\t\t}\n\t}", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(Addnewuser.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n dob.setText(birthday);\n // Toast.makeText(Addnewuser.this, \"\"+birthday+\"\\n\" +\n // \"\"+date.toString(), Toast.LENGTH_SHORT).show();\n\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n }", "@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }", "public Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}", "public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public DatePickerDialog(@NonNull Context context) {\n this(context, 0, null, Calendar.getInstance(), -1, -1, -1);\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n DateFormat df = DateFormat.getDateInstance();\n String formattedDate = df.format(chosenDate);\n\n // Display the chosen date to app interface\n C_birthdate.setText(formattedDate);\n //C_reg_date.setText(formattedDate);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_eDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "public Main() {\n initComponents();\n setColor(btn_home);\n String date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n jcurrentDate.setText(date);\n \n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_sDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDateField.setText(year + \"/\" + (month + 1) + \"/\" + day);\n }", "public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }", "@Override\n public void onClick(View v) {\n\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }", "@TargetApi(Build.VERSION_CODES.O)\n public LocalDate getTodayDate() {\n LocalDate date;\n date = LocalDate.now();\n return date;\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "public String getCurrentDate() {\n return currentDate;\n }", "public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}", "DateFormatPanel() {\r\n\t\tfDateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT);\r\n\t}", "public void setSelectedDate(Date selectedDate);", "public DateChooser(Locale locale) {\r\n this.locale = locale;\r\n currentDate = Calendar.getInstance(locale);\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public static Date today() // should it be void?\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int day = currentDate.get(GregorianCalendar.DATE);\n int month = currentDate.get(GregorianCalendar.MONTH) + 1;\n int year = currentDate.get(GregorianCalendar.YEAR);\n int hour = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minute = currentDate.get(GregorianCalendar.MINUTE);\n return new Date(day, month, year, hour, minute);\n }", "public static String getCurrentDate() {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"); \n LocalDateTime now = LocalDateTime.now(); \n return dtf.format(now);\n }", "@SuppressLint(\"SetTextI18n\")\n private void setTransactionDate() {\n // used to get the name of the month from the calendar\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(mnths[i], Integer.toString(i));\n } else {\n\n months.put(mnths[i], Integer.toString(i));\n }\n }\n\n // set the date when somehting is selected from the DatePicker\n dateText.setText(months.get(transaction.getMonth()) + '-' + Integer.toString(transaction.getDay()) + '-' + transaction.getYear());\n findViewById(R.id.transaction_date).setOnClickListener(new View.OnClickListener() {\n @Override\n // show DatePicker on field click\n public void onClick(View v) {\n showDatePickerDialog();\n }\n });\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }", "private void setDefaultExpiryDate() {\n int twoWeeks = 14;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, twoWeeks);\n this.expiryDate = calendar.getTime();\n }", "public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static Date getCurrentDate() {\n return new Date();\n }", "public Date getCurrentDate() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n Date currentDate = cal.getTime();\n return currentDate;\n }", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }", "private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }", "public void setDate() {\n this.date = new Date();\n }", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n final String selectedDate = year + \"-\" + String.format(\"%02d\", (month+1)) + \"-\" + String.format(\"%02d\", day);\n mDateSession.setText(selectedDate);\n dateFormatted=year+\"\"+String.format(\"%02d\", (month+1))+\"\"+String.format(\"%02d\", day);\n }", "public CurrentDate getCurrentDate() { \n return mCurrentDate; \n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void promptDate(String date)\n {\n this.date = date;\n }", "public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "public void onDateSet(DatePicker view, int year, int month, int day){\n TextView tv = getActivity().findViewById(R.id.textBornAdult);\n\n // Create a Date variable/object with user chosen date\n Calendar cal = Calendar.getInstance(SBFApplication.config.locale);\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n // DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, BaseActivity.getInstance().config.locale);\n String formattedDateShow = formatterBornShow.format(chosenDate);\n String formattedDate = formatterTrain.format(chosenDate);\n // formatter.format(date.getDate()\n\n\n // Display the chosen date to app interface\n tv.setText(formattedDateShow);\n dateBorn=formattedDate;\n // MemoryStore.set(getActivity(), \"adultBorn\", formattedDate);\n // MemoryStore.set(getActivity(), \"adultBornShow\", formattedDateShow);\n }", "@Override\n\tprotected void setDate() {\n\n\t}", "@Override\r\n public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\r\n year = selectedYear;\r\n month = selectedMonth;\r\n day = selectedDay;\r\n\r\n // Show selected date\r\n W_date.setText(new StringBuilder().append(month + 1).append(\"-\").append(day)\r\n .append(\"-\").append(year).append(\" \"));\r\n }", "private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }", "private void show_Date_Picker() {\n final Calendar c = Calendar.getInstance();\r\n mYear = c.get(Calendar.YEAR);\r\n mMonth = c.get(Calendar.MONTH);\r\n mDay = c.get(Calendar.DAY_OF_MONTH);\r\n android.app.DatePickerDialog datePickerDialog = new android.app.DatePickerDialog(this,\r\n new android.app.DatePickerDialog.OnDateSetListener() {\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth)\r\n {\r\n\r\n txt_mfgdate_text.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);\r\n\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.show();\r\n\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public static Date getCurrentDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tjava.util.Date currentDate = calendar.getTime();\r\n\t\tDate date = new Date(currentDate.getTime());\r\n\t\treturn date;\r\n\t}", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(final View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(UserRegister.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n\n String birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n // String dob = birthday;\n et_dob.setText(birthday);\n\n\n if (validatedate(mybirthday)) {\n Snackbar.make(v, birthday + \" is not possible\", Snackbar.LENGTH_LONG).show();\n et_dob.setText(\"\");\n return;\n }\n if (validateage(mybirthday)) {\n Snackbar.make(v, \"You have to be above 15 years old\", Snackbar.LENGTH_LONG)\n .setAction(\"Help\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //visitwebsite();\n }\n })\n .show();\n et_dob.setText(\"\");\n }\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n\n\n }", "private void setToday() {\r\n\t\tmTime = new Date().getTime();\r\n\t}", "@Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR); // current year\n int mMonth = c.get(Calendar.MONTH); // current month\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\n // date picker dialog\n datePickerDialog = new DatePickerDialog(ChangeProfileActivity.this,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n // set day of month , month and year value in the edit text\n txtdate.setText(dayOfMonth + \"/\"\n + (monthOfYear + 1) + \"/\" + year);\n\n }\n }, mYear, mMonth, mDay);\n datePickerDialog.show();\n }", "public void resetDates() {\r\n selectedDate = null;\r\n currentDate = Calendar.getInstance();\r\n }", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\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(), this, year, month, day);\n }", "public Date getDate(Date defaultVal) {\n return get(ContentType.DateType, defaultVal);\n }", "public void selectDateToMeet(View view) {\n int day;\n int month;\n int year;\n\n /* if the date button has tag of DATE_PICKED then set the date on dialog to date picked earlier,\n otherwise display todays date on the dialog */\n if (dateText.getText().toString().equals(\"\") || !dateText.getText().toString().toLowerCase().contains(\"date\")) {\n String dates[] = dateText.getText().toString().split(\"-\");\n\n day = Integer.parseInt(dates[2]);\n //minus 1 to get the month index\n month = Integer.parseInt(dates[1]) - 1;\n year = Integer.parseInt(dates[0]);\n\n } else {\n //get todays date\n Calendar cal = Calendar.getInstance();\n\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n }\n\n //set the dialog with the date and show it\n DatePickerDialog dialog = new DatePickerDialog(BookPlanActivity.this,\n android.R.style.Theme_Holo_Light_Dialog_MinWidth,\n mDataSetListener, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, \"Clear Date\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n dateText.setText(\"Select a date\");\n }\n });\n\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.show();\n }", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "public void goToToday() {\n goToDate(today());\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(UserUpdate.this, date, cal\n .get(Calendar.YEAR), cal.get(Calendar.MONTH), cal\n .get(Calendar.DAY_OF_MONTH)).show();\n }" ]
[ "0.7571456", "0.70521796", "0.69745404", "0.68636376", "0.6799111", "0.67897666", "0.6782179", "0.67797935", "0.6702195", "0.6687638", "0.6674044", "0.6662639", "0.6640538", "0.66288954", "0.662257", "0.6613743", "0.6612383", "0.6563278", "0.6557139", "0.6538863", "0.65302044", "0.65146554", "0.65109235", "0.6484592", "0.64844716", "0.6472949", "0.6459524", "0.6438919", "0.6435683", "0.64346147", "0.6424902", "0.640703", "0.64025724", "0.6394937", "0.6389988", "0.6373225", "0.63647926", "0.63593984", "0.63401794", "0.63361883", "0.6330014", "0.631954", "0.6309936", "0.63033485", "0.62963927", "0.62766176", "0.6275921", "0.62684345", "0.6255106", "0.6249697", "0.6243469", "0.6238198", "0.62354046", "0.6221662", "0.62080497", "0.6200911", "0.6189947", "0.61783636", "0.6175011", "0.6163045", "0.61613", "0.61559844", "0.6152206", "0.61334014", "0.6122889", "0.61150354", "0.60976577", "0.60886496", "0.60879856", "0.60790443", "0.6078681", "0.6078613", "0.60729265", "0.6068665", "0.60464925", "0.6045165", "0.60431266", "0.6037135", "0.6036868", "0.6030874", "0.6029548", "0.60216326", "0.60192263", "0.6015798", "0.6011136", "0.6000088", "0.5999327", "0.59951705", "0.5995044", "0.59933364", "0.5992398", "0.5983535", "0.5983471", "0.5982945", "0.59807634", "0.59764946", "0.597331", "0.5971347", "0.5970328", "0.5969831", "0.59636796" ]
0.0
-1
Service class for users of system hallocasa
public interface UserService { /** * Finds a user by email * * @param email * @return */ User find(String email); /** * Finds a user by email * * @param email * @return */ List<User> addUsersToShowableList(UserListRequest userListRequest); /** * Finds a user by its id * * @param id * @return */ User find(long id); /** * * @param user */ void save(User user, String token); /** * * @param user */ void register(User user, String urlBase); /** * Load the number of user offering services * @return */ Integer loadUserCount(); /** * Validate if email already exists * @param email * The email to validate */ void validate(String email); /** * Send a activation email to user who register * @param email * @param activationLink * @param activationKey * @throws MailServicesErrorException */ void sendActivationLinkEmail(User user, String activationLink, String activationKey) throws MailServicesErrorException; /** * Activate an user that comes from email activation link * @param email * @param activationToken */ void activateUser(String email, String activationToken); /** * Ends the user session by deleting its security access token * @param userTokenTokenContent * Content of user token to delete */ void logout(String userTokenTokenContent); /** * filter users by specific request filter * @param request * @return */ UserFilterResult find(UserFilterRequest request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface UserService {\n\n //创建一个用户\n public void createUser(Sysuser sysuser);\n //修改用户信息\n public void saveUser(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<map>\n public List<Map<String,Object>> signIn(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<Sysuser>\n public List<Sysuser> getUserInfo1(Sysuser Sysuser);\n\n //修改密码\n public int modifyPassword(Map<String, Object> params);\n\n //修改头像\n public int modifyPhoto(String userId, String photoPath, String userType);\n\n //根据用户ID查询用户\n public Sysuser getUserInfoFromId(String userId);\n\n //设置用户是否可登陆后台\n public int setUserConsole(int userId,int state);\n\n //设置用户是否可登陆前台\n public int setUserFront(int userId,int state);\n\n}", "public interface UserProcessService {\n\n /**\n * Get user chinese name.\n *\n * @param userName user english name (user id)\n * @return user chinese name\n */\n String getUserCnName(String userName);\n\n /**\n * Query all users.\n *\n * @return all users\n */\n List<User> queryAllUsers();\n\n /**\n * Create a user.\n *\n * @param user\n * @return\n */\n Integer createUser(User user);\n}", "public interface UserService {\n\n /**\n * 验证手机号是否已被注册\n * @param phone\n */\n boolean checkPhoneCanReg(String phone);\n\n /**\n * 发送短信验证码\n * @param phone\n */\n void sendRegPhoneVCode(String phone);\n\n /**\n * 注册\n * @param phone\n * @param vcode\n */\n void register(String phone, String vcode,String pwd);\n\n /**\n * 查询用户\n * @param username\n * @param pwd\n * @return\n */\n UserVo queryUser(String username, String pwd);\n}", "public interface UsersService {\n public int register(String userName,String telphone,String passWord);\n public boolean login(String telphone,String passWord);\n public Users getUserByTelphone(String telphone);\n public int editUserMessage(String telphone,String username,String realname,String sex,String userQQ,String email,String userwechat,String birthday);\n public int updatePassword(String telphone,String password);\n public int saveUserimage(String telphone,String userimage);\n public Users getUserByUID(int uid);\n}", "public interface SysUserService {\n String getHelloWords();\n\n void addSysUser(SysUser user);\n\n SysUser getUserById(String id);\n\n SysUser getUserByLoginName(String sysUserLoginName);\n}", "public interface SysUserService {\n\n /**\n * 新增用户\n * @param SysUser\n * @return\n */\n SysUser addSysUser(SysUser SysUser);\n\n /**\n * 根据用户名查询用户\n * @param username\n * @return\n */\n SysUser findUserByUserName(String username);\n\n /**\n * 根据用户姓名查询用户\n * @param name\n * @return\n */\n SysUser findUserByName(String name);\n\n /**\n * 根据id获取用户\n * @param userId\n * @return\n */\n SysUser findUserByUserId(Integer userId);\n\n /**\n * 根据id删除用户\n * @param userId\n */\n void delete(Integer userId);\n\n /**\n * 分页查询用户\n * @param userName 用户名\n * @param page\n * @param rows\n * @return\n */\n List<SysUser> getUsers(String userName, Integer page, Integer rows);\n\n /**\n * 根据用户名查询数量\n * @param userName\n * @return\n */\n Integer getUsersCount(String userName);\n\n /**\n * 根据用户id查询用户\n * @param userId\n * @return\n */\n SysUser getUserById(Integer userId);\n\n /**\n * 更新用户信息\n * @param user\n */\n void update(SysUser user);\n\n /**\n * 修改登录密码\n * @param userId\n * @param newPassword\n */\n void modifyPassword(int userId, String newPassword);\n\n /**\n * 根据用户id获取用户密码\n * @param userId\n * @return\n */\n String getPassword(int userId);\n}", "public interface UserService {\r\n\r\n //注册方法\r\n Integer register(UserForm userForm) throws IOException;\r\n\r\n //登录\r\n UserDTO login(String userName, String userPassword);\r\n\r\n //检查用户名是否有效(str可以是用户名也可以是手机号。对应的type是username和userPhone)\r\n Integer checkValid(String str, String type);\r\n\r\n //获取用户登录信息\r\n UserDTO getUserInfo(String userPhone);\r\n\r\n //忘记密码获取问题\r\n String getQuestion(String userPhone);\r\n\r\n //提交问题答案(返回一个token)\r\n String checkAnswer(String userPhone, String userQuestion, String userAnswer);\r\n\r\n //忘记密码的重设密码\r\n Integer forgetResetPassword(String userPhone, String newPassword, String forgetToken);\r\n\r\n //登录状态中重设密码\r\n Integer resetPassword(String oldPassword, String newPassword, UserDTO userDTO);\r\n\r\n //登录状态更新个人信息\r\n Integer updateInformation(UserDTO userDTO,String userName, String userMail,String userPhone,String userQuestion,String userAnswer);\r\n\r\n //获取当前登录用户的详细信息,并强制登录\r\n UserForm getInformation(UserDTO userDTO);\r\n\r\n //退出登录\r\n Integer logout();\r\n\r\n //管理员查询用户列表\r\n List<UserInfo> list();\r\n\r\n //添加收货地址\r\n Shipping createShipping(ShippingForm shippingForm, String userId);\r\n\r\n //更新收货地址\r\n Shipping updateShipping(ShippingForm shippingForm, String shippingId, String userId);\r\n\r\n //查看收货地址\r\n Shipping shippingDetail(String shippingId);\r\n\r\n //查看收货地址列表\r\n List<Shipping> shippingList(String userId);\r\n\r\n //删除收货地址\r\n void deleteShipping(String shippingId);\r\n\r\n}", "public interface sysUserService {\n @DataSource(\"master\")\n sysUser selectByid(String id);\n PageInfo selectUserList(String username, String name, String status, String org_id,\n String is_admin, String orderFiled, String orderSort, int pageindex, int pagenum);\n int addUser(sysUser sysuser);\n int modifyUser(sysUser sysuser);\n int deleteUser(String id);\n int changeUserStatus(String id,String status);\n}", "public interface UserService {\n public Map enroll(String username,String password,String name);\n public Map login(String username,String password);\n public Map modify(String username,String newPassword);\n //2017.8.15\n public Map consumeTimes(String username);\n public Map personMessage(String username);\n public Map queryHadPublishTrade(String username);\n\n //2017.8.19\n public Map uploadIcon(MultipartFile img, HttpServletRequest request,String username);\n}", "public interface UserService {\n\n public User getUserByName(String name);\n\n public User modify();\n\n public boolean add(User user);\n\n int getStatusCount(String userName, int status);\n\n boolean exist(String name);\n\n void edit(String userName, String nick, String note, String newpassword, String school, String email);\n\n int getSubmitCount(String userName);\n}", "public interface SysUserService extends Service<SysUser> {\n void sysUserAdd(SysUser sysUser,String userId) throws Exception;\n void sysUserUpdate(SysUser sysUser,String userId);\n String checkSysUsername(String sysUsername);\n\n /**\n * 通过 username 查询 a_sys_user 表中是否含有 username , 若无对应的 username ,则给出相应的提示。 2018/05/19 11:07 rk\n * @param username\n * @return\n */\n String checkUsername(String username);\n\n /**\n * 实现登录功能\n * @param username\n * @param password\n * @return\n */\n SysUser sysUserLogin(String username, String password);\n\n /**\n * 根据username查询role_id 在a_user_role表中查询\n * @param username\n * @return\n */\n // String queryRoleId(String username);\n List<String> queryRoleId(String username);\n\n /**\n * 通过 username 删除用户数据\n * @param username\n */\n void deleteUserByUsername(String username);\n\n /**\n * 模糊匹配,查询 a_sys_user \n * @param username\n * @param name\n * @param user_type\n * @param org_code\n * @param is_ok\n * @return\n */\n List<SysUser> selectByFiveParameter(String username, String name, String user_type, String org_code, String is_ok);\n\n}", "public interface UserService {\n /**\n * 添加\n * @param userName\n * @param age\n */\n void insert(String userName,int age);\n\n /**\n * 插入用户\n */\n void insertUser(String userName);\n\n /**\n * 删除\n * @param userId\n */\n void delete(Long userId);\n\n /**\n * 查询\n * @param userId\n * @return\n */\n String select(Long userId) throws InterruptedException;\n\n /**\n * 抛出异常\n */\n void throwEx() throws Exception;\n}", "public interface UserService {\n\n SysUser getUser(String username);\n\n BootstrapTable list(SearchVo search);\n\n ResultVo saveOrUpdate(SysUser user, BigDecimal roleId);\n\n SysUser getUserById(BigDecimal id);\n\n ResultVo delete(BigDecimal id);\n}", "public interface UserinfoService {\n\n /**\n * 根据ID获取用户实体对象\n * @param userId\n * @return 用户实体\n * @throws Exception\n */\n TblUserinfo getUserById(BigDecimal userId) throws Exception;\n\n /**\n * 根据用户名密码返回实体对象\n * @param username\n * @param password\n * @return 用户实体\n * @throws Exception\n */\n TblUserinfo loginCheck(String username,String password) throws Exception;\n\n /**\n * 返回所有用户列表\n * @return 用户实体列表\n * @throws Exception\n */\n List<TblUserinfo> getAllList() throws Exception;\n\n /**\n * 添加用户信息\n * @param tblUserinfo 用户\n * @throws Exception\n */\n void addUser(TblUserinfo tblUserinfo) throws Exception;\n\n /**\n * 更新用户信息\n * @param tblUserinfo 用户\n * @throws Exception\n */\n void updateUser(TblUserinfo tblUserinfo) throws Exception;\n\n /**\n * 删除用户信息\n * @param id\n * @throws Exception\n */\n void delUser(BigDecimal id) throws Exception;\n}", "public interface UsersService {\n\n\tvoid login(String email, String password);\n\tvoid getUserProfile(String userId);\n\tvoid sendAvatar(Bitmap avatar);\n}", "public interface UserService {\n\n User login(User user);\n\n /**\n * 用户列表\n *\n * @param user\n * @param pageHelper\n * @return\n */\n List<User> userGrid(User user, PageHelper pageHelper);\n\n /**\n * 保存或者更新\n *\n * @param user\n */\n void saveOrUpdate(User user) throws Exception;\n\n /**\n * 通过主键list集合删除\n *\n * @param list\n */\n void delete(List<String> list);\n\n /**\n * 加载男女管理员\n *\n * @return\n */\n List<Map<String, Object>> userMaleAndFemale();\n}", "public interface UserService {\n\n //查询所有用户\n public List<User> selectUserList();\n //根据权限查询用户列表\n public List<User> selectUserListByType(int type);\n //更改用户信息(包括权限)\n public boolean updateUser(User user);\n\n public User selectUserByUserId(String userId);\n}", "public interface IUserService extends BaseService<User> {\n\n /**\n * 通过手机号 查询用户所有基础字段\n * @param phone\n * @return\n */\n User getUserByPhone(String phone);\n\n /**\n * 获取该用户下的分销列表\n * @param userId\n * @return\n */\n Map<String,List<DistributionUser>> getDistributionUser(String userId,Integer pageNO,Integer pageSize);\n\n /**\n * 通过邀请码查询用户\n * @param shareCode 邀请码\n * @return\n */\n User getUserByShareCode(String shareCode);\n\n /**\n * 统计昨日数据\n * 积分(score)、欢喜券(bigDecimal)、单元总量(暂无)、转化率(parities)\n * @return\n */\n Map<String,Object> countLastDay();\n\n /**\n * 后台通过/拒绝申请成为代理商\n * @param userId 用户ID\n * @param status 1 通过 2 拒绝通过\n */\n void setAgent(String userId,Integer status) throws Exception;\n\n /**\n * 后台用户列表\n * @param pages\n * @param map\n * @return\n */\n Pages<User> list(Pages pages, Map<String ,Object> map);\n}", "public interface UserService {\n\n public List<User> getUsers();\n\n //添加用户\n public boolean addUser(User user);\n\n //通过用户名查user对象\n public List<User> getUserByName(String username);\n //通过用户id获取角色名\n public String getRoleNameByUid(Integer userid);\n //修改密码\n public boolean updateUpw(User user );\n}", "public interface UserService {\r\n\t\r\n\tpublic UserProfileTo readUser(Long id);\r\n\r\n\tpublic UserProfileTo createUser(String login, String password, String email);\r\n}", "@Service\npublic interface UserService {\n\n void userRegister(String username, String password);\n\n String userLogin(String username, String password);\n\n User findUserByUserName(String userName);\n\n boolean insertThirdPartUserInfo(String username, String imageUrl, String thirdPart);\n\n boolean isExistLocalUserName(String username);\n}", "public interface UserService {\n\n\tpublic void save(UserEntity userEntity);\n\n\tpublic void saveBatch(HashMap<String, Object> map);\n\n\tpublic void delete(UserEntity userEntity);\n\n\tpublic void update(UserEntity userEntity);\n\n\tpublic void updatePic(UserEntity userEntity);\n\t\n\tpublic void updateRole(UserEntity userEntity);\n\n\tpublic List<UserEntity> findList(UserEntity userEntity);\n\n\t/* find user information to display */\n\tpublic List<UserParam> findUesrDetailInfo(UserEntity userEntity);\n\n\t/* find user information by name */\n\tpublic List<UserParam> findListForManagement(UserEntity userEntity);\n}", "public interface IAtsUserService {\n\n IAtsUser getCurrentUser() throws OseeCoreException;\n\n String getCurrentUserId() throws OseeCoreException;\n\n IAtsUser getUserById(String userId) throws OseeCoreException;\n\n IAtsUser getUserByArtifactId(ArtifactId id);\n\n boolean isUserIdValid(String userId) throws OseeCoreException;\n\n boolean isUserNameValid(String name) throws OseeCoreException;\n\n IAtsUser getUserByName(String name) throws OseeCoreException;\n\n Collection<IAtsUser> getUsersByUserIds(Collection<String> userIds) throws OseeCoreException;\n\n boolean isAtsAdmin(IAtsUser user);\n\n List<IAtsUser> getUsers(Active active);\n\n List<IAtsUser> getUsersSortedByName(Active active);\n\n void reloadCache();\n\n void releaseUser();\n\n List<? extends IAtsUser> getUsers();\n\n List<? extends IAtsUser> getUsersFromDb();\n\n IAtsUser getUserByAccountId(Long accountId);\n\n}", "public abstract String getUser() throws DataServiceException;", "public interface UserInfoService extends Service<UserInfo> {\n float getHistoryRate(int userId, int day);\n\n String getEncryPhotoUrl(int userId);\n String getEncryPayPassword(String payPasswor);\n int selectByIdAndPayPassword(String userId,String payPassword);\n int computeAge(String IdNO);\n String computeSex(String IdNo);\n UserInfo anonymousUserInfo(UserInfo userInfo);\n\n List<UserInfo> findFriendByUserId(String userId);\n\n List<UserInfo> findIsAddingFriend(String userId);\n\n Boolean lockPayPassword(int uid);\n\n ErrorEnum addLockPayPassword(int uid);\n\n List<LikePeopleJoinUserInfoVo> findLikePeople(String userId);\n\n}", "public interface UserService {\n\n public SysUser findByUserName();\n}", "public interface UserService {\n}", "public interface UserService {\n}", "public interface UserService {\n HashMap<String,Object> get(String id);\n\n HashMap<String,Object> getUserByName(String name);\n\n HashMap<String,Object> verifyAccessToken(String accessToken);\n\n int genUserToken(String name, String token);\n\n int changePwd(String id, String newPasswordCiphertext);\n}", "public interface SystemService {\n\n /**\n * 根据用户名获取User对象\n *\n * @param name 用户名\n * @return 用户对象\n */\n User findUserById(String name);\n\n\n /**\n * 是否存在User\n *\n * @param name 用户名\n * @return 存在返回true\n */\n boolean isUserByName(String name);\n\n\n /**\n * 是否存在User\n *\n * @param user 用户实体类\n * @return 存在返回true\n */\n boolean isUserByNameAndID(User user);\n\n /**\n * 添加User\n *\n * @param user 用户实体类\n */\n void addUser(User user);\n\n\n /**\n * 是否存在Role\n *\n * @param rolename 角色名称\n * @return 存在返回true\n */\n boolean isRoleByName(String rolename);\n\n /**\n * 根据角色名称、角色主键判断是否存在\n *\n * @param roleDb 角色实体类\n * @return 存在返回true\n */\n boolean isRoleByNameAndRoleid(Role roleDb);\n\n\n /**\n * 添加Role\n *\n * @param role 剧社实体类\n */\n void roleAdd(Role role);\n\n\n /**\n * 是否存在Model\n *\n * @param modelname 模块名称\n * @return 存在返回true\n */\n boolean isModelByName(String modelname);\n\n /**\n * 根据模块名称和模块主键查询\n *\n * @param modelDb 模块实体类\n * @return 存在返回true\n */\n boolean isModelByNameAndModelid(Model modelDb);\n\n /**\n * 添加Model\n *\n * @param model 模块实体类\n */\n void modelAdd(Model model);\n\n\n /**\n * 通过主键查找User\n *\n * @param userId 用户主键\n * @return User对象\n */\n User findUserById(Integer userId);\n\n /**\n * 通过主键查找Role\n *\n * @param roleId 角色主键\n * @return Role对象\n */\n Role findRoleById(Integer roleId);\n\n /**\n * 通过主键查找Model\n *\n * @param modelId 模块主键\n * @return Model对象\n */\n Model findModelById(Integer modelId);\n\n /**\n * 删除用户\n *\n * @param userId 用户主键\n */\n void userDelete(Integer userId);\n\n /**\n * 删除角色\n *\n * @param roleId 角色主键\n */\n void roleDelete(Integer roleId);\n\n\n /**\n * 删除Model\n *\n * @param modelId 模块主键\n */\n void modelDelete(Integer modelId);\n\n\n /**\n * 更新用户\n *\n * @param userDb 用户实体类\n */\n void updateUser(User userDb);\n\n\n /**\n * 更新角色\n *\n * @param roleDb 角色实体类\n */\n void updateRole(Role roleDb);\n\n\n /**\n * 更新model\n *\n * @param modelDb 模块实体类\n */\n void updateModel(Model modelDb);\n\n\n /**\n * 用户列表\n *\n * @param user 用户实体类\n * @param pageable 分页工具类\n * @return 返回用户列表\n */\n UserDto userList(User user, Pageable pageable);\n\n\n /**\n * 角色列表\n *\n * @param role 角色实体类\n * @param pageable 分页工具类\n * @return 角色列表\n */\n RoleDto roleList(Role role, Pageable pageable);\n\n\n /**\n * model列表\n *\n * @param model 模块实体类\n * @param pageable 分页工具类\n * @return 模块列表\n */\n ModelDto modelList(Model model, Pageable pageable);\n\n\n /**\n * 设置用户的属于角色\n *\n * @param userRolesDto 包含用户主键、角色主键DTO\n */\n void userRoles(UserRolesDto userRolesDto);\n\n /**\n * 设置角色管理的模块信息\n *\n * @param roleModelsDto 包含模块主键、角色主键DTO\n */\n void roleModels(RoleModelsDto roleModelsDto);\n\n\n /**\n * 通过userid查询用户角色绑定关系\n *\n * @param userid 用户主键\n * @return 用户角色绑定关系\n */\n List<ViewUserRole> findByUserid(Integer userid);\n\n /**\n * 通过roleid查询角色模块绑定关系\n *\n * @param roleid 角色主键\n * @return 角色模块绑定关系\n */\n List<ViewRoleModel> findByRoleid(Integer roleid);\n\n /**\n * 查询用户管理模块信息\n *\n * @param user 用户对象\n * @return 用户模块绑定关系\n */\n List<ViewUserModel> findModelList(User user);\n\n /**\n * 模块与DashBoard绑定关系\n *\n * @param dashboardDto 模块主键、仪表板主键DTO\n */\n void modelDashboards(ModelDashboardDto dashboardDto);\n\n\n}", "public abstract String getUser();", "public interface SysUserService {\n List<String> getAllUrl();\n\n /**\n * 获取角色名称\n *\n * @param url\n * @return\n */\n List<String> getRoleNameByUrl(String url);\n\n /**\n * 根据loginName获取用户角色\n *\n * @param loginName\n * @return\n */\n List<SysUserRole> getRoleByLoginName(String loginName);\n\n /**\n * 根据Id获取SysUser\n *\n * @param userId\n * @return\n */\n SysUser getSysUserById(Integer userId);\n\n /**\n * 根据role_id获取roleName\n *\n * @param roleId\n * @return\n */\n String getRoleNameById(Integer roleId);\n\n /**\n * 根据登录信息获取用户\n *\n * @param loginName\n * @param userPassword\n * @return\n */\n SysUser getSysUser(String loginName, String userPassword);\n\n String queryRole();\n}", "public interface SysUserService {\n\n void saveUser(SysUser sysUser);\n\n void updateUser(SysUser sysUser);\n\n void deleteUser(String id);\n\n SysUser queryUserById(String id);\n\n List<SysUser> queryUserList(SysUser sysUser);\n\n PageInfo<SysUser> queryUserListPaged(SysUser user, Integer page, Integer pageSize);\n\n SysUser queryUserByIdCustom(String id);\n\n void saveUserTransactional(SysUser user);\n}", "@Local\npublic interface HandleUser {\n\n /**\n * Method that check the user credential and return the id of the logged\n * user otherwise throw an exception to signal an error in the\n * authentication phase.\n *\n * @param username Username of the user\n * @param password Password of the user\n * @return id of the logged user\n * @throws ErrorRequestException expection throw if errors in the\n * authentication phase\n */\n long checkAccessCredential(String username, String password)\n throws ErrorRequestException;\n\n /**\n * Method that find and return the data of the user id passed via parameter.\n *\n * @param userID id of the user connected to MeteoCal\n * @return UserDTO the user data object\n * @throws ErrorRequestException if there is a problem retriving the user\n * info\n */\n UserDTO getUser(long userID)\n throws ErrorRequestException;\n\n /**\n * Method that add a new user to the MeteoCal application\n *\n * @param newUser the new user to add in MeteoCal\n * @throws ErrorRequestException\n */\n void addUser(UserDTO newUser) throws ErrorRequestException;\n\n /**\n * Method that handle the login of the user in MeteoCal\n *\n * @param loginUser the user that whant to login in MeteoCal\n * @return true if the login process was succesful; false otherwise.\n */\n boolean doLogin(UserDTO loginUser);\n\n /**\n * Method that return the owner of a calendar\n *\n * @param calendarId the calendar id of the user returned\n * @return the owner of the calendar; null otherwise;\n */\n UserDTO getOwner(String calendarId);\n\n /**\n * Method that search the user with a PUBLIC Calendar that match the given\n * query\n *\n * @param query\n * @return the list of the result that match the query\n */\n List<ResultDTO> search(String query);\n\n /**\n * Method that search the user that match the given query\n *\n * @param query\n * @return the list of the result that match the query\n */\n List<ResultDTO> searchUser(String query);\n\n /**\n * Method that change the user settings\n *\n * @param loggedUser the user with the new settings\n * @throws ErrorRequestException\n */\n void changeSettings(UserDTO loggedUser) throws ErrorRequestException;\n\n /**\n * Method that return the visibility of the given calendar id\n *\n * @param calendarId\n * @return Visibility.PUBLIC or Visibility.PRIVATE for the given calendarId\n * @throws it.polimi.meteocal.exception.ErrorRequestException\n */\n Visibility getCalendarVisibility(String calendarId) throws ErrorRequestException;\n\n /**\n * Method that change the calendar visibility of the current logged user\n *\n * @param visibility the wanted visibility for the current logged calendar\n * user\n * @throws it.polimi.meteocal.exception.ErrorRequestException\n */\n void changeCalendarVisibility(Visibility visibility) throws ErrorRequestException;\n\n /**\n * Method that save the notification in the DB\n *\n * @param notification the notification to save in the DB\n * @return true if the notification is added, false otherwise\n */\n boolean addNotification(EventNotificationDTO notification);\n\n /**\n * Method that handle the user accepts to a notification\n *\n * @param selectedNotification the notification that the user have accepted\n */\n void acceptNotification(NotificationDTO selectedNotification);\n\n /**\n * Method that handle the user declines to a notification\n *\n * @param selectedNotification the notification that the user have declined\n */\n void declineNotification(NotificationDTO selectedNotification);\n\n /**\n * Method that add the calendar to the logged user prefered\n *\n * @param calendarId the id of the prefered calendar to add\n */\n void addPreferedCalendar(String calendarId);\n\n /**\n * Method that remove the calendar from the logged user prefered\n *\n * @param calendarId the id of the prefered calendar to remove\n */\n void delPreferedCalendar(String calendarId);\n\n /**\n * Method that remove outdated notification from the user that refers to\n * passed event\n */\n void removeOldNotification();\n\n}", "public interface UserService {\n\n /**\n * Deletes the specified group from Kylo.\n *\n * @param groupId the system name of the group\n * @return {@code true} if the group was deleted, or {@code false} if the group does not exist\n */\n boolean deleteGroup(@Nonnull String groupId);\n\n /**\n * Deletes the specified user from Kylo.\n *\n * @param userId the system name of the user\n * @return {@code true} if the user was deleted, or {@code false} if the user does not exist\n */\n boolean deleteUser(@Nonnull String userId);\n\n /**\n * Gets the group with the specified system name.\n *\n * @param groupId the system name of the group\n * @return the group, if found\n */\n @Nonnull\n Optional<UserGroup> getGroup(@Nonnull String groupId);\n\n /**\n * Gets a list of all groups in Kylo.\n *\n * @return all groups\n */\n @Nonnull\n List<UserGroup> getGroups();\n\n /**\n * Gets the user with the specified system name.\n *\n * @param userId the system name of the user\n * @return the user, if found\n */\n @Nonnull\n Optional<User> getUser(@Nonnull String userId);\n\n /**\n * Gets a list of all users in Kylo.\n *\n * @return all users\n */\n @Nonnull\n List<User> getUsers();\n\n /**\n * Gets the list of users belonging to the specified group.\n *\n * @param groupId the system name of the group\n * @return the users\n */\n @Nonnull\n Optional<List<User>> getUsersByGroup(@Nonnull String groupId);\n\n /**\n * Adds or updates the specified group.\n *\n * @param group the group\n */\n void updateGroup(@Nonnull UserGroup group);\n\n /**\n * Adds or updates the specified user.\n *\n * @param user the user\n */\n void updateUser(@Nonnull User user);\n}", "public interface UserService {\r\n\r\n\t/**\r\n\t * Loads {@link User} specified by ID\r\n\t * @param id of user\r\n\t * @return {@link User} instance\r\n\t * @throws RuntimeException if user does not exist\r\n\t */\r\n\tUser loadUserById(Integer id);\r\n\r\n\t/**\r\n\t * Loads {@link User} specified by username\r\n\t * @param username of user\r\n\t * @return {@link User} instance\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tUser loadUserByUsername(String username);\r\n\r\n\t/**\r\n\t * Creates new user \r\n\t * @param userBuilder used to define user properties\r\n\t * @param notify determines whether notification email should be send\r\n\t * @return newly created {@link User}\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tUser createUser(UserBuilder userBuilder, boolean notify);\r\n\r\n\t/**\r\n\t * Updates user specified by ID and version\r\n\t * @param id of the user to update\r\n\t * @param version of the user to update\r\n\t * @param userBuilder used to define user properties to be updated\r\n\t * @throws RuntimeException if user does not exist or permission is denied \r\n\t */\r\n\tvoid updateUser(Integer id, Long version, UserBuilder userBuilder);\r\n\r\n\t/**\r\n\t * Deletes the user\r\n\t * @param id of the user to delete\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tvoid deleteUser(Integer id);\r\n\r\n\t/**\r\n\t * Updates user-domain association\r\n\t * @param userId of the user\r\n\t * @param domainId of the domain\r\n\t * @param roles {@link UserRole} to set.\r\n\t * @throws RuntimeException if user does not exist, domain does not exist or permission is denied\r\n\t */\r\n\tvoid updateDomainAssociation(Integer userId, Integer domainId, UserRole... roles);\r\n\r\n\t/**\r\n\t * Updates user-user group association\r\n\t * @param userId of the user\r\n\t * @param userGroups id's of the groups\r\n\t * @throws RuntimeException if user does not exist, user groups do not exist or permission is denied\r\n\t */\r\n\tvoid updateUserGroupAssociation(Integer userId, Integer... userGroups);\r\n\r\n\t/**\r\n\t * Creates an user request of desired type.\r\n\t * @param username username of the user the request is created for.\r\n\t * @param type Specifies the type of the request. Available types are: LOGIN_UNATTENDED, PASSWORD_SET, PASSWORD_RESET, UNLOCK_ACCOUNT, LOGIN\r\n\t * @return request_id and request_code of the created request. Example: 1544;RDQX1Qx9UokSf4n3KAVWgNClvrFUqncSZg7fK3gnVAfNIAOylN\r\n\t * @throws RuntimeException if user does not exist or permission is denied\r\n\t */\r\n\tString createUserRequest(String username, UserRequestType type);\r\n\r\n}", "public interface UserService {\n boolean hasMatchUser(String userName, String password);\n\n User findUserByUserName(String userName);\n\n void loginSuccess(User user);\n\n void createNewUser(User user) throws IOException;\n\n String makeMD5(String password);\n}", "public interface User\n extends HttpSessionBindingListener, TurbineUserDelegate, TurbineUser\n{\n /** The 'perm storage' key name for the create_date field. */\n String CREATE_DATE = \"CREATE_DATE\";\n\n /** The 'perm storage' key name for the last_login field. */\n String LAST_LOGIN = \"LAST_LOGIN\";\n\n /** The 'perm storage' key for the confirm_value field. */\n String CONFIRM_VALUE = \"CONFIRM_VALUE\";\n\n /** This is the value that is stored in the database for confirmed users */\n String CONFIRM_DATA = \"CONFIRMED\";\n\n /** The 'perm storage' key name for the access counter. */\n String ACCESS_COUNTER = \"_access_counter\";\n\n /** The 'temp storage' key name for the session access counter */\n String SESSION_ACCESS_COUNTER = \"_session_access_counter\";\n\n /** The 'temp storage' key name for the 'has logged in' flag */\n String HAS_LOGGED_IN = \"_has_logged_in\";\n\n /** The session key for the User object. */\n String SESSION_KEY = \"turbine.user\";\n\n /**\n * Gets the access counter for a user from perm storage.\n *\n * @return The access counter for the user.\n */\n int getAccessCounter();\n\n /**\n * Gets the access counter for a user during a session.\n *\n * @return The access counter for the user for the session.\n */\n int getAccessCounterForSession();\n\n /**\n * Gets the last access date for this User. This is the last time\n * that the user object was referenced.\n *\n * @return A Java Date with the last access date for the user.\n */\n Date getLastAccessDate();\n\n /**\n * Gets the create date for this User. This is the time at which\n * the user object was created.\n *\n * @return A Java Date with the date of creation for the user.\n */\n Date getCreateDate();\n\n /**\n * Returns the user's last login date.\n *\n * @return A Java Date with the last login date for the user.\n */\n Date getLastLogin();\n\n /**\n * Get an object from permanent storage.\n *\n * @param name The object's name.\n * @return An Object with the given name.\n */\n Object getPerm(String name);\n\n /**\n * Get an object from permanent storage; return default if value\n * is null.\n *\n * @param name The object's name.\n * @param def A default value to return.\n * @return An Object with the given name.\n */\n Object getPerm(String name, Object def);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @return A Map.\n */\n Map<String, Object> getPermStorage();\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @return A Map.\n */\n Map<String, Object> getTempStorage();\n\n /**\n * Get an object from temporary storage.\n *\n * @param name The object's name.\n * @return An Object with the given name.\n */\n Object getTemp(String name);\n\n /**\n * Get an object from temporary storage; return default if value\n * is null.\n *\n * @param name The object's name.\n * @param def A default value to return.\n * @return An Object with the given name.\n */\n Object getTemp(String name, Object def);\n\n /**\n * This sets whether or not someone has logged in. hasLoggedIn()\n * returns this value.\n *\n * @param value Whether someone has logged in or not.\n */\n void setHasLoggedIn(Boolean value);\n\n /**\n * The user is considered logged in if they have not timed out.\n *\n * @return True if the user has logged in.\n */\n boolean hasLoggedIn();\n\n /**\n * Increments the permanent hit counter for the user.\n */\n void incrementAccessCounter();\n\n /**\n * Increments the session hit counter for the user.\n */\n void incrementAccessCounterForSession();\n\n /**\n * Remove an object from temporary storage and return the object.\n *\n * @param name The name of the object to remove.\n * @return An Object.\n */\n Object removeTemp(String name);\n\n /**\n * Sets the access counter for a user, saved in perm storage.\n *\n * @param cnt The new count.\n */\n void setAccessCounter(int cnt);\n\n /**\n * Sets the session access counter for a user, saved in temp\n * storage.\n *\n * @param cnt The new count.\n */\n void setAccessCounterForSession(int cnt);\n\n /**\n * Sets the last access date for this User. This is the last time\n * that the user object was referenced.\n */\n void setLastAccessDate();\n\n /**\n * Set last login date/time.\n *\n * @param lastLogin The last login date.\n */\n void setLastLogin(Date lastLogin);\n\n /**\n * Put an object into permanent storage.\n *\n * @param name The object's name.\n * @param value The object.\n */\n void setPerm(String name,\n Object value);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @param storage A Map.\n */\n void setPermStorage(Map<String, Object> storage);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @param storage A Map.\n */\n void setTempStorage(Map<String, Object> storage);\n\n /**\n * Put an object into temporary storage.\n *\n * @param name The object's name.\n * @param value The object.\n */\n void setTemp(String name, Object value);\n\n /**\n * Sets the creation date for this user.\n *\n * @param date Creation date\n */\n void setCreateDate(Date date);\n\n /**\n * This method reports whether or not the user has been confirmed\n * in the system by checking the TurbineUserPeer.CONFIRM_VALUE\n * column to see if it is equal to CONFIRM_DATA.\n *\n * @return True if the user has been confirmed.\n */\n boolean isConfirmed();\n\n /**\n * Sets the confirmation value.\n *\n * @param value The confirmation key value.\n */\n void setConfirmed(String value);\n\n /**\n * Gets the confirmation value.\n *\n * @return The confirmed value\n */\n String getConfirmed();\n\n /**\n * Updates the last login date in the database.\n *\n * @throws Exception A generic exception.\n */\n\n void updateLastLogin()\n throws Exception;\n}", "public interface IAuthenticationService extends IStatisticsProvider {\r\n\t/** Service's Name in {@link String} form */\r\n public static final String SERVICE_NAME = Constants.NAMESPACES.SERVICE_PREFIX + \"AuthenticationService\";\r\n\r\n /** Service's Name in {@link URI} form */\r\n public static final URI SERVICE_URI = Constants.valueFactory.createURI(SERVICE_NAME);\r\n\r\n /* Statistics object for this service\r\n public org.openanzo.services.stats.AuthenticationServiceStats getStatistics();\r\n */\r\n\t/**Constant for parameter password */\r\n\tpublic static final String PARAM_PASSWORD = \"password\";\r\n\t/**Constant for parameter userId */\r\n\tpublic static final String PARAM_USER_ID = \"userId\";\r\n\t/**authenticateUser operation name constant */\r\n public static final String AUTHENTICATE_USER = \"authenticateUser\";\r\n /**\r\n * Authenticate a User.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id the user is authenticating against.\r\n * @param password\r\n * The password for the id the user is authenticating against.\r\n * @return User's URI.\r\n * @throws AnzoException\r\n */\r\n public org.openanzo.services.AnzoPrincipal authenticateUser(IOperationContext context,String userId,String password) throws AnzoException;\r\n\r\n /**\r\n * Authenticate a User.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id the user is authenticating against.\r\n * @param password\r\n * The password for the id the user is authenticating against.\r\n * @param output\r\n * {@link java.io.Writer} onto which output is written\r\n * @param resultFormat\r\n * format of result data\r\n * @throws AnzoException\r\n */\r\n public void authenticateUser(IOperationContext context,String userId,String password, java.io.Writer output, String resultFormat) throws AnzoException;\r\n\t/**getUserPrincipal operation name constant */\r\n public static final String GET_USER_PRINCIPAL = \"getUserPrincipal\";\r\n /**\r\n * Get a User's URI.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id of the user for which to retrieve a URI.\r\n * @return URI.\r\n * @throws AnzoException\r\n */\r\n public org.openanzo.services.AnzoPrincipal getUserPrincipal(IOperationContext context,String userId) throws AnzoException;\r\n\r\n /**\r\n * Get a User's URI.\r\n *\r\n * @param context\r\n * {@link IOperationContext} context for this operation\r\n * @param userId\r\n * The id of the user for which to retrieve a URI.\r\n * @param output\r\n * {@link java.io.Writer} onto which output is written\r\n * @param resultFormat\r\n * format of result data\r\n * @throws AnzoException\r\n */\r\n public void getUserPrincipal(IOperationContext context,String userId, java.io.Writer output, String resultFormat) throws AnzoException;\r\n}", "public interface UserService {\n User findUserById(int id);\n User selectByName(String username);\n User selectByEmail(String email);\n int insrtUser(User user);\n int insertStatus(int id,int status);\n int insertHeader(int id,String headerUrl);\n int insertPassword(int id,String password);\n}", "public interface UserService {\n ResultVo register(UserClassAddVo userClassAddVo);\n\n ResultVo login(LoginClassVo loginClassVo, HttpServletResponse response);\n\n ResultVo inputInvitationCode(String inputInvitationCode, HttpServletRequest request,HttpServletResponse response);\n}", "public interface UserService extends AbstractService<User>{\n\n /**\n * 根据用户名和密码查询,校验用户\n * @param userName\n * @param password\n * @return\n */\n User checkUser(String userName, String password);\n}", "public interface ShiroUserService {\r\n ShiroUser getByUsername(String username);\r\n\r\n //注册账号\r\n void insertUser(ShiroUserDTO shiroUserDTO);\r\n\r\n Set<String> getRoles(String username);\r\n\r\n Set<String> getPermissions(String username);\r\n\r\n}", "public interface UserService {\n\n public User getOneByAccount(String account);\n\n public boolean existsById(String account);\n\n public List<User> findAll();\n\n String getNickname(String account);\n\n Map<String, String> getNicknames(List<String> accounts);\n\n PageInfo getUserByPage();\n\n PageInfo getUserByConditionWithPage(User condition);\n\n List<String> getAccount(String nickname);\n\n public List<User> findAllById(String id);\n\n boolean changeState(String state, List<String> accounts);\n\n public long count();\n\n public boolean deleteByAccount(String account);\n\n public boolean delete(User user);\n\n public boolean deleteAll();\n\n public boolean deleteInBatch(List<User> users);\n\n public boolean save(User user);\n\n public List<UserDrop> getUserDrop();\n\n public List<User4Org> getUnassignedUsers(List<User4Org> exclude);\n\n public int login(User user);\n}", "public UserManagementImpl() {\r\n this.login = new LoginImpl();\r\n this.signUp = new SignUpImpl();\r\n }", "public UserService() {\n }", "public interface Users {\n\n public static final String BASE_PATH = \"/users\";\n\n /**\n * Creates a list of users.When creating new users, the password property of each user should be their\n * plain text password. The returned user information will not contain any password information.\n *\n * @param usersToCreate A list of users to create.\n * @return Information about created users.\n */\n public UserList createUsers(Set<User> usersToCreate);\n\n /**\n * Returns a list of the user names configured in the system.\n *\n * @return A list of users.\n */\n public UserList list();\n\n /**\n * Deletes a user from the system.\n *\n * @param user User to delete.\n * @return The deleted user's information.\n */\n public User delete(String user);\n\n /**\n * Deletes a user from the system.\n *\n * @param user User to delete.\n * @return The deleted user's information.\n */\n public User delete(User user);\n\n /**\n * Returns detailed information about a user.\n *\n * @param user The user's name.\n * @return\n */\n public User details(String user);\n\n /**\n * Updates the given user's information. Note that the user's name cannot be changed.\n *\n * @param updatedInfo The user information.\n * @return updated user info;\n */\n public User update(User updatedInfo);\n\n}", "public interface UserService\n{\n}", "public interface UserService {\n /**\n * 登陆验证\n * @param email\n * @param password\n * @return\n */\n UserInfo findByEmailAndPassword(String email, String password);\n\n /**\n * 通过Id查找用户\n * @param id\n * @return\n */\n UserInfoVO findUserInfo(Long id);\n\n /**\n * 通过邮箱查找用户\n * @param email\n * @return\n */\n\n UserInfo IsExist(String email);\n\n\n /**\n * 注册\n * @param email\n * @param password\n * @return\n */\n UserInfo register(UserInfo user);\n\n /**\n * 用于更新用户信息\n * @param user\n * @return\n */\n UserInfo update(UserInfoVO user);\n /**\n * 注销VO\n * @param email\n */\n void writeOff(String email);\n}", "public interface IUserService {\r\n\r\n /**\r\n * 用户注册,成功返回用户信息\r\n */\r\n User register(String mobile);\r\n\r\n /**\r\n * 用户注册,成功返回用户信息\r\n */\r\n User register(User user);\r\n\r\n /**\r\n * 用户注册,成功返回用户信息(三方登录)\r\n */\r\n User register(String loginId, Byte loginType, String imgUrl, String nickName);\r\n\r\n /**\r\n * 根据用户id返回用户信息\r\n */\r\n User detail(int id,Integer curUserId);\r\n\r\n /**\r\n * 检查旧密码是否正确\r\n */\r\n boolean checkPassword(int userId, String oldPassword);\r\n /**\r\n * 修改个人密码\r\n */\r\n int changePassword(Integer userId, String newPassword);\r\n\r\n /**\r\n * 根据条件查询用户列表\r\n */\r\n List<User> queryList(UserCondition cond,Integer curUserId);\r\n\r\n /**\r\n * 更新某用户的个别信息字段\r\n */\r\n int updateValue(String itemName, String itemValue,Integer userId);\r\n\r\n /**\r\n * 修改用户手机号\r\n */\r\n int updateMobile(String mobile, Integer userId);\r\n\r\n /**\r\n * 提交用户认证申请\r\n */\r\n int certify(int userId, int userGroup, String videoUrl);\r\n\r\n /**\r\n * 查询用户认证申请的状态\r\n * 如多次申请则返回最近一次的状态\r\n */\r\n Integer getCertifyStatus(int userId);\r\n\r\n /**\r\n * 根据昵称查询用户\r\n */\r\n List<User> findByNickName(String nickName);\r\n\r\n /**\r\n * 根据手机号查询用户\r\n */\r\n\r\n int findByMobile(String mobile);\r\n\r\n /**\r\n * 根据唯一标识和登录类型查询用户\r\n */\r\n User findByLoginId(String LoginId, Byte type);\r\n\r\n /**\r\n * 根据passportId从缓存中获取用户对象\r\n */\r\n User loadUserFromCache(String passportId);\r\n\r\n /**\r\n * 根据passportId,将用户对象添加/更新到缓存\r\n */\r\n void syncUserToCache(String passportId, User user);\r\n\r\n /**\r\n * 从缓存中删除用户对象\r\n */\r\n void removeUserFromCache(String passportId);\r\n\r\n /**\r\n * 根据手机号和类型从缓存中获取验证码+时间戳对象\r\n */\r\n String loadSecureCodeFromCache(String mobile, int type);\r\n\r\n /**\r\n * 根据手机号和类型,将验证码+时间戳对象对象添加/更新到缓存\r\n */\r\n void syncSecureCodeToCache(String mobile, int type, String secureCode);\r\n\r\n /**\r\n * 从缓存中删除手机的某类型验证码对象\r\n */\r\n void removeSecureCodeFromCache(String mobile, int type);\r\n\r\n /**\r\n * 从缓存中删除手机对应的所有验证码对象\r\n */\r\n void removeAllSecureCodeFromCache(String mobile);\r\n\r\n /**\r\n * 查询用户是否对女神点赞\r\n */\r\n GodViewLikeVO selectIsLikeGod(GodViewLikeVO likeVO);\r\n\r\n /**\r\n * 查询用户是否点赞\r\n */\r\n boolean isLikedByCurUser(Integer likeId,Integer likeType,Integer likeById);\r\n\r\n /**\r\n * 查询用户是否关注\r\n */\r\n boolean selectIsFocus(Integer focusId,Integer focusType,Integer focusById);\r\n\r\n\r\n boolean selectIsCollection(Integer collectionId,Integer collectionType,Integer focusById);\r\n\r\n /**\r\n * 点赞\r\n */\r\n void giveUpGod(GodViewLikeVO likeVO);\r\n\r\n /**\r\n * 取消点赞\r\n */\r\n void giveDownGod(GodViewLikeVO likeVO);\r\n\r\n /**\r\n * 查询女神的点赞数\r\n */\r\n Integer selectGodLikeCount(Integer godUserId);\r\n\r\n Integer getFocusCount(Integer curUserId, Integer focusUserId);\r\n\r\n int saveFocusUser(Integer curUserId, Integer focusUserId);\r\n\r\n int saveUnfocusUser(Integer curUserId, Integer focusUserId);\r\n\r\n int updateReceiver(User user);\r\n\r\n List<ActivitySupporter> querySupporterTotalRank(Integer curUserId, Integer curUserGroup, Integer start, Integer pageSize);\r\n\r\n int updateAtLogin(User user);\r\n \r\n /**\r\n * 修改用户封面\r\n */\r\n int updateCover(User user);\r\n\r\n UserAccount selectUserAccount(User user);\r\n\r\n void addQingdou(Integer id, Integer qingdouAmount);\r\n\r\n public List<UsersCollection> getPhotoCollectionByUserId(Integer userId,Integer pageNo,Integer pageSize)throws Exception;\r\n /**\r\n * @date 2017-08-07\r\n * 用户信息\r\n */\r\n\t\r\n\tList<User> queryUserAllList(UserCondition cond);\r\n \r\n //修改用户vip\r\n int updateUserVip(User user);\r\n \r\n /**\r\n * @date 2017-08-16\r\n * 用户信息\r\n */\r\n int updateAtLoginTimes(User user);\r\n \r\n User selectUser(User user);\r\n \r\n int updateCacheCount(BigDecimal itemValue,Integer userId);\r\n\r\n \r\n}", "public interface UserinfoService {\n public Userinfo findByUname(String uname);\n}", "public interface UserService {\n String getViewUserName(User user);\n}", "public interface UserService {\n\n public User get(String username);\n\n public User save(User user);\n\n public void saveHost(String host, String name);\n\n public String getName(String host);\n}", "private void getUserInfo() {\n\t}", "public void setupUser() {\n }", "public interface UserService {\n\n boolean authenticate(String name, String password); // Authenticates user login\n\n boolean addUser(UserModel user); // Adds a new user to the database\n\n UserModel findByName(String name); // Finds a user by name\n\n}", "public interface UserService {\n\n /**\n * 获取用户信息列表\n *\n * @return\n */\n List<User> findAllUser();\n\n /**\n * 根据 ID,查询信息\n *\n * @param user\n * @return\n */\n ResponseBean login(User user);\n\n /**\n * 新增信息\n *\n * @param user\n * @return\n */\n ResponseBean saveUser(User user);\n\n /**\n * 更新信息\n *\n * @param user\n * @return\n */\n ResponseBean updateUser(User user);\n\n /**\n * 获取用户信息\n * @param phone\n * @return\n */\n ResponseBean getUserInfo(String phone);\n\n /**\n * 根据 ID,删除信息\n *\n * @param id\n * @return\n */\n ResponseBean deleteUser(Long id);\n\n /**\n * 验证用户的登录情况,Token是否合法\n * @param phoneNum\n * @param token\n * @return\n */\n boolean isUserTokenLegal(String phoneNum, String token);\n\n ResponseBean getAllUserList(String params);\n\n ResponseBean getAllInfo(User user);\n}", "public interface IUserService {\n\n String SERVICE_NAME = \"com.water.db.service.impl.UserServiceImpl\";\n\n /**\n * @author Zhang Miaojie\n * @description 登录授权\n * @time 2016-08-15\n */\n Map<String,Object> findUserByNameAndPwd(String username, String pwd);\n\n /**\n * @author Meng Sheng\n * @description 根据用户的ID查询用户\n * @time 2016-08-25\n * @param userId;\n */\n Map<String,Object> findUserByUserId(int userId);\n\n /**\n * @author Zhang Miaojie\n * @description 根据用户的手机号码查找用户\n * @time 2016-08-16\n */\n boolean findUserByTelphone(String tel_phone);\n\n Map<String,Object> findUserByTel(String tel_phone);\n\n /**\n * @author Zhang Miaojie\n * @description 用户注册\n * @time 2016-08-16\n */\n boolean saveUser(Map<String, Object> userMap);\n\n /**\n * @author Zhang Miaojie\n * @description 记录用户登录信息\n * @time 2016-08-17\n */\n void recordLoginLog(int userId);\n\n /**\n * @author Zhang Miaojie\n * @description 更新用户的密码\n * @time 2016-08-16\n * @return\n */\n boolean updatePwdByTelphone(String tel_phone, String pwd);\n\n /**\n * @author Zhang Miaojie\n * @descrition 根据账号和密码查找是否存在用户\n * @time 2016/09/06\n */\n Map<String,Object> findEmpInfoByUserNameAndPwd(String username,String password);\n\n /**\n * @author Zhang Miaojie\n * @descrition 添加后台管理员的信息\n * @time 2016/09/08\n */\n boolean addEmpInfo(EmpInfo empInfo);\n\n /**\n * @author Zhang Miaojie\n * @descrition 查询员工列表信息\n * @time 2016/09/09\n */\n List<Map<String,Object>> findEmpInfoList();\n\n /**\n * @author Zhang Miaojie\n * @descrition 删除员工信息\n * @time 2016/09/09\n */\n boolean deleteEmpInfoById(int itemId);\n\n /**\n * @author Zhang Miaojie\n * @descrition 添加权限信息\n * @time 2016/09/12\n */\n boolean addPopem(String role_name, String role_flag);\n\n /**根据条件来查询*/\n List<Map<String,Object>> findTelphoneByCondition(String telPhone);\n\n /**添加投标记录*/\n boolean addRebate(User2BidInfo user2BidInfo);\n\n /**修改账号总额*/\n Map<String,Object> findUserLogByUid(int userId);\n\n /**添加用户邀请码*/\n boolean updateUserInviteCodeByUid(String inviteCode, int userId);\n}", "public interface SysUserService {\n void save (UserParam param);\n void update (UserParam param);\n SysUser findByKeyword(String keyword);\n PageResult<SysUser> getPageByDeptId(int deptId, PageQuery pageQuery);\n List<SysUser> getAll();\n}", "public interface UserService {\n public Map<String, List<User>> getRespUsers();\n\n public boolean checkLogin(String login);\n\n public User loginUser(String login, String password);\n\n public void saveNewUser(User user, String pass);\n}", "public interface IUserManagement {\n\n\t/**\n\t * Search users related to a realm It\n\t *\n\t * @param realm realm name\n\t * @return Returns a List<UserRepresentation>\n\t */\n\tList<UserRepresentation> getUsers(final String realm);\n\n\t/**\n\t * Search of an created user account. It will search with overgiven username in\n\t * the related user management system.\n\t *\n\t * @param username user name\n\t * @return Returns a List<UserRepresentation> with 1 item, if the user is found,\n\t * otherwise 0\n\t */\n\tList<UserRepresentation> searchUserAccount(final String username);\n\n\t/**\n\t * Returns all groups for the given keycloak user\n\t *\n\t * @param userId user id\n\t * @return Returns a List<GroupRepresentation>\n\t */\n\tList<GroupRepresentation> getUserGroups(final String userId);\n\n\t/**\n\t * Returns user representation object from keycloak\n\t *\n\t * @param userId keycloak user id\n\t * @return UserRepresentation instance\n\t */\n\tUserRepresentation getUserRepresentation(final String userId);\n\n\t/**\n\t * Creates an user account with all parameters in the user account management\n\t * system. The user account needs to be activated after creation before login.\n\t *\n\t * @param username user name\n\t * @param firstname first name\n\t * @param lastname last name\n\t * @param email email\n\t * @param password password\n\t * @return HttpStatus CREATED, if creation was successful. In all other cases\n\t * the response of the original response.\n\t */\n\tHttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);\n\n\t/**\n\t * Creates a group account with all parameters in the user account management\n\t * system.\n\t *\n\t * @param groupName group name\n\t * @return HttpStatus CREATED, if creation was successful. In all other cases\n\t * the response of the original response.\n\t */\n\tHttpStatus createGroup(final String groupName);\n\n\t/**\n\t * Get a group representation data by groupName\n\t *\n\t * @param groupName group name\n\t * @return GroupRepresentation instance\n\t */\n\tGroupRepresentation getGroup(final String groupName);\n\n\t/**\n\t * Add a user to a groupId\n\t *\n\t * @param user user\n\t * @param groupId groupId\n\t */\n\tvoid addUserToGroup(final String userId, final String groupId);\n\n\t/**\n\t * Add a realm to a user\n\t *\n\t * @param user username\n\t * @param realm realm\n\t */\n\tvoid addRealmToUser(final String username, final String realm);\n\n\t/**\n\t * Add a realm to a user\n\t *\n\t * @param user username\n\t * @param realm realm\n\t */\n\tvoid addRealmToUserAccount(final String userId, final String realm);\n\n\t/**\n\t * Activation of an created user account. It will search with overgiven username\n\t * in the related user management system. If it finds the user account, it will\n\t * activate that account. After this step the user can login.\n\t *\n\t * @param username user name\n\t * @return HttpStatus OK, if activation was successful, NOT_FOUND if username\n\t * was not found in the system.\n\t */\n\tHttpStatus activateUserAccount(final String username);\n\n\t/**\n\t * Reset the password of an created user account. If it finds the user account,\n\t * it will reset the password. After this step the user can login with the new\n\t * password.\n\t *\n\t * @param userRepresentation UserRepresentation instance\n\t * @param password password\n\t */\n\tHttpStatus resetPassword(final UserRepresentation userRepresentation, final String password);\n\n\tvoid updateEmailUserAccount(final String userId, final String email);\n\n\tvoid updateNameUserAccount(final String userId, final String name);\n\n\tvoid updateSurnameUserAccount(final String userId, final String surname);\n\n\tvoid disableUserAccount(final String userId);\n\n\tpublic RealmResource createRealmIfNotExists(final String realmName, final String displayName, final String... clients);\n\n\tpublic List<RealmInfo> getRealmsForUser(final String username);\n\n\tpublic void addClientToRealm(final String realm, final String client, final String... redirectUrls);\n\n\tvoid addRolesToRealm(final String realm, final String client, final List<RoleInfo> roles);\n\n\tList<String> getUsersForRealm(final String realm);\n\n\tList<String> getRolesForUser(final String user, final String realm, final String client);\n\n\tList<RoleInfo> getRolesForClient(final String realm, final String client);\n\n\tvoid setRolesForUser(final String realm, final String client, final List<UserRoles> userRoles);\n\n\tvoid setApplicationRolesForUser(final String realm, final String user, final List<ApplicationRoles> appRoles);\n}", "public interface UserService {\n /**\n * 后台用户登陆\n * @param loginName\n * @param password\n * @return\n * @throws UserNotFoundException\n * @throws UserRoleException\n * @throws UserStatusException\n */\n public User backLogin(String loginName, String password) throws UserNotFoundException, UserRoleException, UserStatusException;\n\n public User frontLogin(String loginName, String password) throws UserNotFoundException, UserRoleException, UserStatusException;\n\n public PageInfo<User> findAllUserByAjax(int pageNo, User user) throws UserNotFoundException;\n\n public User findByUserId(Integer userId) throws UserNotFoundException;\n\n\n public void findByUsername(String username) throws UserExistException;\n\n public void addUser(User user) throws UserExistException;\n\n public void modifyUser(User user) throws UserExistException;\n\n public void modifyUserStatus(User user);\n\n\n\n}", "public interface UserService {\n\n /**\n * Добавление нового пользователя в БД\n * @param user User\n * @return User\n */\n User add(User user);\n\n /**\n * Поиск пользователя по email\n * @param email String\n * @return User\n */\n User find(String email);\n\n /**\n * Изменения данных пользователя\n * @param user User\n */\n void update(User user);\n}", "protected OpUserServiceImpl createServiceImpl() {\r\n return new OpUserServiceImpl();\r\n }", "private void addHocSinh() {\n\t\thocsinh user = new hocsinh();\n\n\t\tuser.setMa(txtMa.getText());\n\t\tuser.setTen(txtTen.getText());\n\t\tuser.setTuoi(txtTuoi.getText());\n\t\tuser.setSdt(txtSdt.getText());\n\t\tuser.setDiaChi(txtDiaChi.getText());\n\t\tuser.setEmail(txtEmail.getText());\n\t\t\n\t\thocsinhdao.addUser(user);\n\t}", "public interface UserService {\n\n void signUp(String login, String password) throws ServiceSQLException, DataSourceException;\n\n User signIn(String login, String password) throws DataSourceException, ServiceSQLException;\n\n int getID(String login) throws DataSourceException, ServiceSQLException;\n\n String getPassword(String login) throws DataSourceException, ServiceSQLException;\n\n int getBalance(String login) throws DataSourceException, ServiceSQLException;\n\n void setBalance(Connection connection, String userID, int balance) throws DataSourceException, ServiceSQLException;\n\n float setDiscount(Connection connection, String userID) throws DataSourceException, ServiceSQLException;\n}", "public interface UserService {\n Result register(RegisterUser registerUser);\n Result login(LogInUser logInUser);\n Result logout(LogOutUser logOutUser);\n Result updatejpushIDByToken(UpdateJpush updateJpush);\n}", "user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }", "public User getUser (String userName);", "public interface UserService {\n\n\t/**\n\t * This method is used to create a worker into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param createEmployeeDTO\n\t * worker related information to create the worker\n\t * @return createEmployeeDTO worker information after creating the worker\n\t * into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic EmployeeDTO createEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to update a worker into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param createEmployeeDTO\n\t * worker related information to create the worker\n\t * @return createEmployeeDTO worker information after creating the worker\n\t * into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic EmployeeDTO updateEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to get the user from system.\n\t * \n\t * @author umamaheswarar\n\t * @param username\n\t * username of the logged in user.\n\t * @return UserDTO user details.\n\t */\n\tpublic UserDTO getUserDetails(final String username);\n\n\t/**\n\t * This method is used to create a position into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param positionDTO\n\t * position related information to create the position\n\t * @return positionDTO position information after creating into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic PositionDTO createJobPosition(final PositionDTO positionDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to update a position into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param positionDTO\n\t * position related information to update the position\n\t * @return positionDTO position information after updating into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic PositionDTO updateJobPosition(final PositionDTO positionDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to manage the time off of the employees\n\t * \n\t * @author umamaheswarar\n\t * @param timeOffDTO\n\t * time off DTO object\n\t * @return TimeOffDTO time off details after saving the details\n\t */\n\tpublic TimeOffDTO manageTimeOff(final TimeOffDTO timeOffDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to change the employee job details\n\t * \n\t * @author umamaheswarar\n\t * @param jobChangeDTO\n\t * job change details\n\t * @return jobChangeDTO job change details after completion\n\t * @throws ApplicationCustomException\n\t * custom application message in case of any exception\n\t */\n\tpublic JobChangeDTO jobChange(final JobChangeDTO jobChangeDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to change the address details of the employee\n\t * \n\t * @author umamaheswarar\n\t * @param employeeAddressDTO\n\t * @return addressChangeEventId address change event id\n\t * @throws ApplicationCustomException\n\t * custom application exception message\n\t */\n\tpublic String changeContactDetails(final EmployeeAddressDTO employeeAddressDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to manage the payroll of the employees\n\t * \n\t * @author umamaheswarar\n\t * @param payrollDTO\n\t * payrollDTO object\n\t * @return payrollDTO payroll details after saving the details\n\t */\n\tpublic PayrollDTO managePayroll(final PayrollDTO payrollDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to manage the payroll of the employees\n\t * \n\t * @author umamaheswarar\n\t * @param registerDTO\n\t */\n\tpublic boolean register(final RegisterDTO registerDTO)\n\t\t\tthrows ApplicationCustomException, HibernateException, SQLException;\n\n}", "@Component\npublic interface DemoService {\n\n int getSystemUserCount();\n\n boolean checkSystemUser(String loginName);\n\n void testTrans();\n\n int createUserService();\n int updateUserService();\n int deleteUserService();\n SystemUser getUserService(Long id);\n List getUserPageService();\n}", "public interface UserService {\n boolean checkCredentials(String login, String password);\n User add(String login, String password);\n}", "public interface UserService {\n\n\tpublic User create(User user);\n\t\n\tpublic Boolean findUser(String username, String password);\n\n\tpublic User findByID(String userId);\n\n}", "public interface UserService {\n List<User> findAll();\n\n LoginUser findByUserId(Long userId);\n\n User findDepartLeader(Long departId);\n\n User getById(Long id);\n\n List<UserVo> findVoAll();\n\n void bindUserPro(Long userId, String proCode);\n\n List<UserProVo> findUserProList();\n\n void delUserPro(Long id);\n}", "public interface UserInfoService {\n\n /**\n * 查询用户信息\n * @param id\n * @return\n */\n public User queryUserInfo(String id);\n}", "public interface UserService {\n\n User getById(int id);\n\n User login(User user);\n\n List<User> getByParam(String param,Object value);\n\n List<User> getPageByMap(Map<String,Object> map, int pageIndex, int pageSize);\n\n List<User> getListByMap(Map<String,Object> map);\n\n void addUser(User user);\n\n boolean isExsit(User user);\n\n void logout(User user);\n\n void update (User user);\n\n void delete(int id);\n}", "public interface UserService {\n\n APIResult oaLogin(User user, APIResult res);\n\n Pageable<User> getList(Pageable<User> pageable, String type, String keyword);\n\n User findById(String id);\n\n APIResult saveWorker(User user, APIResult res);\n\n int delete(User user);\n\n /**\n * 获取用户详情\n *\n * @param user\n * @return\n */\n User getDetail(User user);\n\n /**\n * 获取所有的工人列表\n *\n * @return\n */\n List<User> getWorkerList();\n}", "public interface UserInfoService extends IService {\n String getUserId();\n String getUserToken();\n}", "public interface UserManagerService {\r\n public Staff_info getStaffInfo(Map<String,Object> params);\r\n\r\n public Page<Staff_info> getUserPageList(Map<String,Object> params);\r\n\r\n public void addUserInfo(Map<String,Object> params);\r\n public void updUserInfo(Map<String,Object> params);\r\n\r\n public void delUser(Map<String,Object> params);\r\n\r\n public List<Staff_info> moblieSelect();\r\n\r\n}", "UmType getUserManager();", "public interface UserService {\n\n ResponseEntity<?> login(String username, String password, HttpSession session); //用户登录\n\n ResponseEntity<?> auth(String username,String password); //获取token\n\n ResponseEntity<?> register(String username,String password); //用户注册\n\n ResponseEntity<?> getOne(long userId);\n\n ResponseEntity<?> getUserNumber(); //获取用户数量\n\n ResponseEntity<?> saveAndFlush(User user);\n\n ResponseEntity<?> getUsers();\n\n ResponseEntity<?> changeStatus(long userId, int status);\n\n Page<User> list(Pageable pageable);\n\n ResponseEntity<?> search(String name);\n}", "public interface IUserService {\n /**\n * 返回所有的users\n *\n * @return\n */\n List<User> getAllUsers();\n\n /**\n * 通过id寻找User\n *\n * @param id\n * @return\n */\n User getUserByID(Long id);\n\n /**\n * 更新用户\n *\n * @param user\n * @return\n */\n int updateUserByID(User user);\n\n /**\n * 通过id删除用户\n *\n * @param id\n * @return\n */\n int deleteUserByID(Long id);\n\n /**\n * 创建用户\n *\n * @param user\n * @return\n */\n int insertUser(User user);\n}", "public interface UserService {\n /**\n * description: 用户登录\n * version: 1.0\n * date: 2021/1/11 22:38\n * author: LIBEL\n *\n * @param param\n * @return com.adp.FTXSecurity.model.vo.UserVo\n */\n UserVo login(LoginParam param);\n\n /**\n * description: 更新用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void update(UserParam param);\n\n /**\n * description: 新增用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void createUser(UserEntity param);\n}", "public interface UserService {\n\n User getUserById(String u_id);\n /**\n * 功能说明 :根据id查找\n * @param u_id\n * @return\n */\n}", "public interface UserService{\n /**\n * Method to add user to the repository\n * @param userModel {@link AddUserModel} Details of the user to be added\n * @return {@link UserModel}\n * @throws BadRequestException Thrown when userName is null or empty\n */\n\tpublic UserModel addUser(AddUserModel userModel) throws BadRequestException;\n\t\n /**\n * Method to delete user from the repository\n * @param id Id of the user to be deleted\n * @throws BadRequestException Thrown when id is null or non-integer value\n */\n\tpublic void deleteUser(Integer id) throws BadRequestException;\n\t\n /**\n * Method to view details of a particular user\n * @param id of the user to be viewed\n * @return {@link UserModel} contains all the details of user \n * @throws BadRequestException Thrown when id is null or non-integer value\n */\n\tpublic UserModel viewUser(Integer id) throws BadRequestException;\n\t\n /**\n * Method to retrieve all the users from the repository\n * @return List of {@link UserModel}\n */\n\tpublic List<UserModel> viewAll();\n\t\n /**\n * Method to update the details of the user\n * @param userId Id of the user to be updated\n * @param user {@link UserModel} Details to be updated\n * @return {@link UserModel}\n * @throws BadRequestException Thrown when id is null or non-integer value\n */\n\tpublic UserModel updateUser(Integer userId,UserModel user) throws BadRequestException;\n\t\n\t/**\n\t * Method to add new user and update existing user\n\t * @param user Details of the user fetched from session\n\t * @return Id of the user who is added/updated\n\t */\n\tpublic Integer addOrUpdate(LoginResponse user);\n}", "public interface UserService {\n\n /**\n * <p>\n * This Method is used to add a new User.\n * </p>\n *\n * @param user a User object with the email and password to be added.\n *\n * @return boolean a boolean value indicating the successful addition of\n * a new User.\n *\n * @throws ApplicationException A Custom Exception created for catching\n * exceptions that occur while retrieving an\n * user.\n */\n public Boolean addUser(User user) throws ApplicationException;\n\n /**\n * <p>\n * This Method is used to search a User Entry and return the User\n * object. It returns null if no match is found.\n * </p>\n *\n * @param email a String indicating the email of the user that is\n * to be searched an returned.\n *\n * @return user an User object is returned if a valid match is\n * found, else returns null.\n *\n * @throws ApplicationException A Custom Exception created for catching\n * exceptions that occur while retrieving an\n * user.\n */\n public User retrieveUserByEmail(String email) throws ApplicationException;\n\n}", "public interface UserService {\r\n\t\r\n\tint batchInsert(List<User> list);\r\n\t\r\n\t/**根据主键查询*/\r\n\tpublic User queryById(Integer id);\r\n\r\n\t/**resultHandler写法测试*/\r\n\tpublic void resultHandlerTest();\r\n\r\n\t/**导出*/\r\n\tpublic void export();\r\n\r\n}", "public interface UserService{\r\n \r\n\t/**\r\n\t * Creates the user\r\n\t * \r\n\t * @param dto\r\n\t * UserModel\r\n\t * @return User If user account exists\r\n\t * @throws UserExistsException\r\n\t * if user account doesn't exists\r\n\t */\r\n\tUser createUser(UserModel dto) throws UserExistsException;\r\n\r\n\t/**\r\n\t * Returns the User by user name.\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t */\r\n\tUser getUserByUsername(String username);\r\n\r\n\t/**\r\n\t * Changes the password.\r\n\t * \r\n\t * @param user\r\n\t * ChangePasswordModel\r\n\t * @param token\r\n\t * String\r\n\t * @return Returns true if the password change succeeded otherwise false\r\n\t * @throws InvalidTokenException\r\n\t */\r\n\tBoolean changePassword(ChangePasswordModel user, String token) throws InvalidTokenException;\r\n\r\n\t/**\r\n\t * Saves the login info to the repository.\r\n\t * \r\n\t * @param login\r\n\t * UserLogin\r\n\t * @return UserLogin\r\n\t */\r\n\tUserLogin recordLogin(UserLogin login);\r\n\r\n\t/**\r\n\t * Verifies the account is locked or not.\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t * @return Boolean\r\n\t */\r\n\tBoolean isAccountLocked(String username);\r\n\r\n\t/**\r\n\t * Saves the user, password and ContactOptIn.\r\n\t * \r\n\t * @param user User\r\n\t * @return User\r\n\t */\r\n\tUser saveUser(User user);\r\n\r\n\t/**\r\n\t * Creates the password reset token\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t * @return String Password reset token\r\n\t * @throws UserNotFoundException\r\n\t */\r\n\tString createPasswordResetToken(String username) throws UserNotFoundException;\r\n\r\n\t/**\r\n\t * Returns the Authorities based on user.\r\n\t * \r\n\t * @param user User\r\n\t * @return Authority information\r\n\t */\r\n\tSet<Authority> getAuthorities(User user);\r\n\r\n\t/**\r\n\t * Changes the password.\r\n\t * \r\n\t * @param user\r\n\t * UserModel\r\n\t * @return Boolean\r\n\t * \r\n\t * @throws UserNotFoundException\r\n\t */\r\n\tBoolean changePassword(UserModel user) throws UserNotFoundException;\r\n\r\n}", "public interface UserService {\n\n User getUserByPassword(User user);\n\n User getByUserName(String user_name);\n\n void save(User user);\n\n User getUserById(int user_id);\n\n int getCount();\n\n User getByEmail(String email);\n\n void update(User user);\n}", "public interface UserService extends UserDetailsService{\n\n\t/**\n\t * save method is used save record in user table\n\t * \n\t * @param userEntity.\n\t * @return UserEntity\n\t */\n public UserEntity save(UserEntity userEntity); \n\t\n /**\n * getByName method is used to retrieve userId from userName. \n * \n * @param userName\n * @return UUID\n */\n public UserQueryEntity getByName(String userName);\n \n}", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "public interface UserMgr {\n\n public List<User> queryAll();\n\n public void addUser(User user);\n\n public void updateUser(User user);\n\n}", "public interface UserDriver extends UosEventDriver {\n\n\tpublic static final String USER_DRIVER = UserDriverNativeSupport.class.getCanonicalName();\n\n\t// possible events\n\tpublic static final String NEW_USER_EVENT_KEY = \"NEW_USER_EVENT_KEY\";\n\tpublic static final String CHANGE_INFORMATION_TO_USER_KEY = \"CHANGE_INFORMATION_TO_USER_KEY\";\n\tpublic static final String LOST_USER_EVENT_KEY = \"LOST_USER_EVENT_KEY\";\n\n\tpublic static final String NAME_PARAM = \"name\";\n\tpublic static final String EMAIL_PARAM = \"email\";\n\tpublic static final String LAST_LABEL_NAME = \"lastlabelname\";\n\tpublic static final String LAST_LABEL_EMAIL = \"lastlabelemail\";\n\tpublic static final String CONFIDENCE_PARAM = \"confidence\";\n\tpublic static final String POSITION_X_PARAM = \"positionX\";\n\tpublic static final String POSITION_Z_PARAM = \"positionZ\";\n\tpublic static final String POSITION_Y_PARAM = \"positionY\";\n\n\tpublic static final String SPECIFIC_FIELD_PARAM = \"specificField\";\n\tpublic static final String EVENT_KEY_PARAM = \"eventKey\";\n\tpublic static final String USER_PARAM = \"user\";\n\n\tpublic static final String BYTES_IMAGE_PARAM = \"bytesImage\";\n\tpublic static final String INDEX_IMAGE_PARAM = \"indexImage\";\n\tpublic static final String LENGTH_IMAGE_PARAM = \"lengthImage\";\n\n\tpublic static final String RETURN_PARAM = \"return\";\n\n\tpublic static final String SPECIAL_CHARACTER_SEPARATOR = \":\";\n\n\t/* ******************\n\t * Services \n\t * ******************/\n\n\t/**\n\t * Retrieve information of the user with email\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void retrieveUserInfo(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * Save image for the user with email in parameter\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void saveUserImage(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * Remove images of user\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void removeUserImages(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * List all known users\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void listKnownUsers(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * Retrain the recognition algorithm\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void retrain(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n}", "public interface RegistService {\n /**\n * 是否已有用户\n * @return\n */\n User findUserByEmail(String userEmail);\n /**\n * 插入用户\n * @return\n */\n void insertUser(User user);\n /**\n * 更新用户信息\n * @return\n */\n void updateUser(User user1);\n}", "String getUser();", "String getUser();", "public interface UserProvider {\n\n /**\n * Loads the specified user by username.\n *\n * @param username the username\n * @return the User.\n * @throws UserNotFoundException if the User could not be loaded.\n */\n User loadUser( String username ) throws UserNotFoundException;\n\n /**\n * Creates a new user. This method should throw an\n * UnsupportedOperationException if this operation is not\n * supporte by the backend user store.\n *\n * @param username the username.\n * @param password the plain-text password.\n * @param name the user's name, which can be {@code null}, unless isNameRequired is set to true.\n * @param email the user's email address, which can be {@code null}, unless isEmailRequired is set to true.\n * @return a new User.\n * @throws UserAlreadyExistsException if the username is already in use.\n */\n User createUser( String username, String password, String name, String email )\n throws UserAlreadyExistsException;\n\n /**\n * Delets a user. This method should throw an\n * UnsupportedOperationException if this operation is not\n * supported by the backend user store.\n *\n * @param username the username to delete.\n */\n void deleteUser( String username );\n\n /**\n * Returns the number of users in the system.\n *\n * @return the total number of users.\n */\n int getUserCount();\n\n /**\n * Returns an unmodifiable Collections of all users in the system. The\n * {@link UserCollection} class can be used to assist in the implementation\n * of this method. It takes a String [] of usernames and presents it as a\n * Collection of User objects (obtained with calls to\n * {@link UserManager#getUser(String)}.\n *\n * @return an unmodifiable Collection of all users.\n */\n Collection<User> getUsers();\n\n /**\n * Returns an unmodifiable Collection of usernames of all users in the system.\n *\n * @return an unmodifiable Collection of all usernames in the system.\n */\n Collection<String> getUsernames();\n\n /**\n * Returns an unmodifiable Collections of users in the system within the\n * specified range. The {@link UserCollection} class can be used to assist\n * in the implementation of this method. It takes a String [] of usernames\n * and presents it as a Collection of User objects (obtained with calls to\n * {@link UserManager#getUser(String)}.<p>\n *\n * It is possible that the number of results returned will be less than that\n * specified by {@code numResults} if {@code numResults} is greater than the\n * number of records left to display.\n *\n * @param startIndex the beginning index to start the results at.\n * @param numResults the total number of results to return.\n * @return an unmodifiable Collection of users within the specified range.\n */\n Collection<User> getUsers( int startIndex, int numResults );\n\n /**\n * Sets the user's name. This method should throw an UnsupportedOperationException\n * if this operation is not supported by the backend user store.\n *\n * @param username the username.\n * @param name the name.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setName( String username, String name ) throws UserNotFoundException;\n\n /**\n * Sets the user's email address. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param email the email address.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setEmail( String username, String email ) throws UserNotFoundException;\n\n /**\n * Sets the date the user was created. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param creationDate the date the user was created.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;\n\n /**\n * Sets the date the user was last modified. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param modificationDate the date the user was last modified.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setModificationDate( String username, Date modificationDate )\n throws UserNotFoundException;\n\n /**\n * Returns the set of fields that can be used for searching for users. Each field\n * returned must support wild-card and keyword searching. For example, an\n * implementation might send back the set {\"Username\", \"Name\", \"Email\"}. Any of\n * those three fields can then be used in a search with the\n * {@link #findUsers(Set,String)} method.<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store.\n *\n * @return the valid search fields.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Set<String> getSearchFields() throws UnsupportedOperationException;\n\n /**\n * Searches for users based on a set of fields and a query string. The fields must\n * be taken from the values returned by {@link #getSearchFields()}. The query can\n * include wildcards. For example, a search on the field \"Name\" with a query of \"Ma*\"\n * might return user's with the name \"Matt\", \"Martha\" and \"Madeline\".<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store. \n *\n * @param fields the fields to search on.\n * @param query the query string.\n * @return a Collection of users that match the search.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Collection<User> findUsers( Set<String> fields, String query )\n throws UnsupportedOperationException;\n\n /**\n * Searches for users based on a set of fields and a query string. The fields must\n * be taken from the values returned by {@link #getSearchFields()}. The query can\n * include wildcards. For example, a search on the field \"Name\" with a query of \"Ma*\"\n * might return user's with the name \"Matt\", \"Martha\" and \"Madeline\".<p>\n *\n * The startIndex and numResults parameters are used to page through search\n * results. For example, if the startIndex is 0 and numResults is 10, the first\n * 10 search results will be returned. Note that numResults is a request for the\n * number of results to return and that the actual number of results returned\n * may be fewer.<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store.\n *\n * @param fields the fields to search on.\n * @param query the query string.\n * @param startIndex the starting index in the search result to return.\n * @param numResults the number of users to return in the search result.\n * @return a Collection of users that match the search.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Collection<User> findUsers( Set<String> fields, String query, int startIndex,\n int numResults ) throws UnsupportedOperationException;\n\n /**\n * Returns true if this UserProvider is read-only. When read-only,\n * users can not be created, deleted, or modified.\n *\n * @return true if the user provider is read-only.\n */\n boolean isReadOnly();\n\n /**\n * Returns true if this UserProvider requires a name to be set on User objects.\n *\n * @return true if an name is required with this provider.\n */\n boolean isNameRequired();\n\n /**\n * Returns true if this UserProvider requires an email address to be set on User objects.\n *\n * @return true if an email address is required with this provider.\n */\n boolean isEmailRequired();\n\n}", "public interface IUserService {\r\n /**\r\n * 判断用户名是否存在\r\n * @param username\r\n * @return\r\n */\r\n public boolean queryUsernameIsExist(String username);\r\n\r\n /**\r\n * 查询用户是否存在\r\n * @param username\r\n * @param pwd\r\n * @return\r\n */\r\n public Users queryUserForLogin(String username,String pwd);\r\n\r\n /**\r\n * 存储用户\r\n * @param usersDto\r\n * @return\r\n */\r\n public Users saveUser(UsersDTO usersDto);\r\n\r\n /**\r\n * 修改用户\r\n * @param infoDTO\r\n */\r\n public UsersVO updateUserInfo(PersonInfoDTO infoDTO);\r\n\r\n /**\r\n * 根据ID查询用户\r\n * @param userId\r\n * @return\r\n */\r\n public Users queryUserById(String userId);\r\n\r\n /**\r\n * 根据用户名查询用户\r\n * @param username\r\n * @return\r\n */\r\n public UsersVO queryUserInfoByUserName(String username);\r\n}", "java.lang.String getUser();", "public interface UserService {\n\n /**\n * login user\n *\n * @param login user login\n * @param password user password\n * @return optional value of user if login is successful\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> login(String login, String password) throws ServiceException;\n\n /**\n * register user\n *\n * @param login user login\n * @param password user password\n * @param passwordConfirmed password confirm\n * @return true if register successful, false, otherwise\n * @throws ServiceException if an error occurs while processing.\n */\n boolean register(String login, String password, String passwordConfirmed) throws ServiceException;\n\n /**\n * Finds user by id\n *\n * @param id user id\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> findUser(int id) throws ServiceException;\n\n /**\n * Finds user with cookies\n *\n * @param login user login\n * @param userHash user hash\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> findUserWithCookies(String login, String userHash) throws ServiceException;\n\n /**\n * update user\n *\n * @param user user entity\n * @return true if register successful, false, otherwise\n * @throws ServiceException if an error occurs while processing.\n */\n boolean updateUser(User user) throws ServiceException;\n\n /**\n * confirm email\n *\n * @param userId id of user\n * @param token for confirmation\n * @return optional value of user.\n * @throws ServiceException if an error occurs while processing.\n */\n Optional<User> confirmEmail(int userId, String token) throws ServiceException;\n\n /**\n * Finds all users\n *\n * @return list of users.\n * @throws ServiceException if an error occurs while processing.\n */\n List<User> findALlUsers() throws ServiceException;\n\n}" ]
[ "0.70570344", "0.674942", "0.66916734", "0.6643636", "0.65644455", "0.653522", "0.6471436", "0.6459438", "0.6438223", "0.64083636", "0.64076835", "0.6388506", "0.63848644", "0.6328219", "0.63041437", "0.6275473", "0.6261791", "0.6261471", "0.6235911", "0.6229722", "0.6223866", "0.6217103", "0.62106407", "0.6194016", "0.6192321", "0.6186175", "0.6179961", "0.6179961", "0.617894", "0.61631244", "0.6160128", "0.6159093", "0.61576277", "0.6150399", "0.6149904", "0.6143928", "0.61411005", "0.61243737", "0.61207706", "0.6120399", "0.61086947", "0.61042047", "0.6097527", "0.60744756", "0.6060549", "0.6058783", "0.6052723", "0.6044218", "0.60402846", "0.60372615", "0.603543", "0.603104", "0.60307103", "0.60266525", "0.6024523", "0.6022442", "0.6016821", "0.6009968", "0.60008353", "0.5999776", "0.59826136", "0.59776664", "0.5973615", "0.59641373", "0.5962134", "0.59616476", "0.59506834", "0.595017", "0.5945507", "0.59421", "0.5941149", "0.59405524", "0.59403247", "0.5935723", "0.5934003", "0.5931784", "0.5930088", "0.5926828", "0.5925097", "0.5922668", "0.5915612", "0.5913968", "0.59127", "0.5912277", "0.59108496", "0.590352", "0.5901931", "0.59017056", "0.58965325", "0.5891404", "0.5891332", "0.58845", "0.5882601", "0.5877085", "0.58625144", "0.58625144", "0.5861276", "0.58595365", "0.5857718", "0.5848241" ]
0.6502771
6
Finds a user by email
User find(String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User findUserByEmail(final String email);", "User findUserByEmail(String email) throws Exception;", "User getUserByEmail(final String email);", "User getUserByEmail(String email);", "public User getUserByEmail(String email);", "public User getUserByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "public static UserEntity search(String email) {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\t\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t \n\t\t\tif (entity.getProperty(\"email\").toString().equals(email)) {\n\t\t\t\tUserEntity returnedUser = new UserEntity(entity.getProperty(\n\t\t\t\t\t\t\"name\").toString(), entity.getProperty(\"email\")\n\t\t\t\t\t\t.toString());\n\t\t\t\treturnedUser.setId(entity.getKey().getId());\n\t\t\t\treturn returnedUser;\n\t\t\t }\nelse{\n\t\t\t\t\n }\n\t\t}\n\n\t\treturn null;\n\t}", "public User findByEmail(String email);", "public User findByEmail(String email);", "public User findByEmail(String email);", "public Users findBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n Users registeredUser = (Users) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }", "User findUserByEmail(String userEmail);", "@Override\n public OpenScienceFrameworkUser findOneUserByEmail(final String email) {\n final OpenScienceFrameworkUser user = findOneUserByUsername(email);\n if (user != null) {\n return user;\n }\n\n // check emails\n try {\n // JPA Hibernate does not support postgres query array operations, use postgres native queries\n // `query.setParameter()` does not work, use string concatenation instead\n final Query query= entityManager.createNativeQuery(\n \"select u.* from osf_osfuser u where u.emails @> '{\" + email + \"}'\\\\:\\\\:varchar[]\",\n OpenScienceFrameworkUser.class\n );\n return (OpenScienceFrameworkUser) query.getSingleResult();\n } catch (final PersistenceException e) {\n LOGGER.error(e.toString());\n return null;\n }\n }", "public static User findUserByEmail(String email) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByEmail = \"SELECT * FROM public.member \"\n + \"WHERE email = '\" + email + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByEmail);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }", "@Override\n\tpublic Users findUserByEmail(String email) {\n\t\treturn iUserDao.findUserByEmail(email);\n\t}", "public User retrieveUserByEmail(String email) throws ApplicationException;", "public User readByEmail(String email) throws DaoException;", "UserEntity findByEmail(String email);", "@Override\n\tpublic ERSUser getUserByEmail(String email) {\n\t\treturn userDao.selectUserByEmail(email);\n\t}", "public User getUser(String email) {\n for (User user : list) {\n if (user.getEmail().equals(email))\n return user; // user found. Return this user.\n }\n return null; // user not found. Return null.\n }", "public AppUser findByEmail(String email);", "@Override\n public User getUserByEmail(final String email){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where email = :email\");\n query.setParameter(\"email\", email);\n return (User) query.uniqueResult();\n }", "public User getUser(String emailId);", "@Override\n\tpublic UserVO searchEmail(String email) throws Exception {\n\t\treturn dao.searchEmail(email);\n\t}", "@Override\n public TechGalleryUser getUserByEmail(final String email) throws NotFoundException {\n TechGalleryUser tgUser = userDao.findByEmail(email);\n// TechGalleryUser tgUser = userDao.findByEmail(\"[email protected]\");\n if (tgUser == null) {\n throw new NotFoundException(ValidationMessageEnums.USER_NOT_EXIST.message());\n } else {\n return tgUser;\n }\n }", "public User getUser(String email);", "Optional<User> findByEmail(String email);", "Optional<User> findByEmail(String email);", "public User getUserByEmail(final String email) {\n return em.find(User.class, email.toLowerCase());\n }", "public User findByEmail(String email){\n return userRepository.findByEmail(email);\n }", "@Override\n\tpublic User findByEmail(String email)\n\t{\n\t\tif (email == null) return null;\n\t\n\t\tString property = User.PROP_EMAIL;\n\t\tLabel label = RoostNodeType.USER;\n\t\tUser user = findByUniqueProperty(label, property, email);\n\t\t\n\t\treturn user;\n\t}", "public static Utente findByEmail(String email) {\n \t\n\t\tSession session = DatabaseManager.getSession();\n Transaction tx = null;\n Utente user = null;\n \n \n try {\n tx = session.getTransaction();\n tx.begin();\n \n CriteriaBuilder builder = session.getCriteriaBuilder();\n CriteriaQuery<Utente> criteria = builder.createQuery(Utente.class);\n Root<Utente> root = criteria.from(Utente.class);\n \n criteria.select(root).where(builder.equal(root.get(Utente_.email), email));\n\n user = session.createQuery(criteria).getSingleResult();\n \n tx.commit();\n \n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n \n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n \n return user;\n \n \n }", "UserDTO findUserByEmail(String email);", "ServiceUserEntity getUserByEmail(String email);", "User findOneByMail(String mail);", "public User getUserByEmail(String email)throws EntityNotFoundException\n\t{\n\t\treturn userDao.getById(email);\n\t}", "public User get(String emailID);", "public User getUser(String email) {\r\n\t\tOptional<User> optionalUser = null;\r\n\t\tUser user = null;\r\n\t\ttry {\r\n\t\t\toptionalUser = userList().stream().filter(u -> u.getUserEmail().equals(email)).findFirst();\r\n\t\t\tif (optionalUser.isPresent()) {\r\n\t\t\t\tuser = optionalUser.get();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"error find user : \" + email + \" \" + e);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn user;\r\n\t}", "@Override\n public User getByEmail(String email) {\n List<JdbcUser> jdbcUserList = jdbcTemplate.query(\"SELECT * FROM users WHERE email=?\", ROW_MAPPER, email);\n JdbcUser jdbcUser = DataAccessUtils.singleResult(jdbcUserList);\n if (jdbcUser == null) {\n return null;\n }\n return convertToUser(jdbcUser);\n }", "@Override\n\tpublic User getUser(String email){\n\t\tif (userExists(email) == true)\n\t\t\treturn users[searchIndex(email)];\n\t\telse\n\t\t\treturn null;\n\t}", "public User_info search_User_info(String email) {\n\t\t\t\tSystem.out.println(user_loginDao.searchId(email));\r\n\t\t\t\treturn user_infoDao.search_User(user_loginDao.findUserByEmail(email).getId());\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic User getUserByEmail(String email, User user) {\n\t\tSession session = sessionFactory.openSession();\n\t\tList<User> userList = new ArrayList<>();\n\t\tuserList = (List<User>) session.createQuery(\"from User\");\n\t\tfor (User tempUser : userList) {\n\t\t\tif (tempUser.getEmail().equalsIgnoreCase(email)) {\n\t\t\t\tuser = tempUser;\n\t\t\t\tSystem.out.println(\"get uswer by email: \" + user);\n\t\t\t\treturn user;\n\t\t\t}\n\t\t}\n\t\treturn user;\n\t}", "@Override\n public final CustomerUser getCustomerUserByEmail(final String email) {\n\treturn (CustomerUser) getEntityManager()\t\n\t\t.createQuery(\"select customer from \"\n\t\t\t+ CustomerUser.class.getName()\n\t\t\t+ \" as customer where customer.email =:email\")\n\t\t.setParameter(\"email\", email)\n\t\t.getSingleResult();\n }", "public User getUser(String email) {\n\n Query query = new Query(\"User\")\n .setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if(userEntity == null) {return null; }\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n //ArrayList<String> advisees = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisees\")).split(\" \")));\n //ArrayList<String> advisors = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisors\")).split(\" \")));\n String fn = (String) userEntity.getProperty(\"firstName\");\n String ln = (String) userEntity.getProperty(\"lastName\");\n User user = new User(email, fn, ln, aboutMe);\n return user;\n\n }", "@Override\r\n\tpublic User getByMail(String eMail) {\n\r\n\t\treturn userDao.get(eMail);\r\n\t}", "public VendorUser findVuserBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n VendorUser registeredUser = (VendorUser) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }", "public User getUser(String email) {\n\t\tLog.i(TAG, \"return a specific user with email.\");\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getcurrentUser = \"select * from \" + TABLE_USER\n\t\t\t\t+ \" where email='\" + email + \"'\";\n\t\tCursor cursor = db.rawQuery(getcurrentUser, null);\n\t\tcursor.moveToFirst();\n\t\tif (cursor.isAfterLast()) return null;\n\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\treturn user;\n\t}", "Optional<JUser> readByEmail(String email);", "public User existsProfile(String email) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n SuperBooleanBuilder query = new SuperBooleanBuilder();\n query.put(\"email\", email);\n Search search = new Search.Builder(query.toString())\n .addIndex(INDEX_NAME)\n .addType(User.class.toString())\n .build();\n\n User result = null;\n try {\n result = client.execute(search).getSourceAsObject(User.class);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return result;\n }", "public User getUserByEmail(String email) {\r\n\t\treturn usersPersistence.getUserByEmail(email);\r\n\t}", "public Utente retriveByEmail(String email) {\n\t\t\n\t\tTypedQuery<Utente> query = em.createNamedQuery(Utente.FIND_BY_Email, Utente.class);\n query.setParameter(\"email\", email); //parameters by name \n return query.getSingleResult();\n\t}", "public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }", "public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }", "@Override\n\tpublic User getUser(String email) {\n\t\treturn userDatabase.get(email);\n\t}", "public UsersModel getUserById(String userEmail);", "public User findEmail(String email){\n\t\t\n boolean found = false;\t\t\t\t\t\t\t\t\t\t/* ====> Boolean controls while loop */\n User correct = new User();\t\t\t\t\t\t\t\t\t/* ====> Create instance of the correct user*/\n User marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n marker = this.head;\t\t\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n \n // Loop keeps on going until the correct User is not found or until the next User is null\n while(!found){ \n \tif (marker.getEmail().equals(email)){\t\t\t\t\t/* ====> If the marker found the right user based on its email */ \n \t\tfound = true;\t\t\t\t\t\t\t\t\t\t/* ====> Set found true, end loop */\n \t\tcorrect = marker;\t\t\t\t\t\t\t\t\t/* ====> Make correct point to the same User as marker */\n \t}\n \n else if (marker.getNext() == null){\t\t\t\t\t\t/* ====> If the marker reaches end of the list */ \n \tfound = true;\t\t\t\t\t\t\t\t\t\t/* ====> Set found true, end loop */\n \tcorrect = head;\t\t\t\t\t\t\t\t\t\t/* ====> Make correct point to the head */\n }\n \n else {\n \tmarker = marker.getNext();\t\t\t\t\t\t\t/* ====> Move marker to the next element of the list */\n }\n }\n \n return correct;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Return correct User */ \n \n\t}", "public User getUserByEmail(String email){\n\t\tif(email == null)\n\t\t\treturn null;\n\t\tSessionFactory sf = HibernateUtil.getSessionFactory();\n\t\tSession session = sf.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry{\n\t\t\tCriteria criteria = session.createCriteria(User.class);\n\t\t\tObject obj = criteria.add(Restrictions.eq(\"email\", email)).uniqueResult();\n\t\t\tif(obj == null)\n\t\t\t\treturn null;\n\t\t\tUser user = (User)obj;\n\t\t\ttx.commit();\n\t\t\treturn user;\t\t\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "public static User getUser(String email){\n Connection connect = null;\n ResultSet set = null;\n String getUserSQL = \"SELECT * FROM users WHERE email =?\";\n User user = null;\n\n // Get User Details Try Block:\n try {\n // Set Connection:\n connect = DBConfig.getConnection();\n // Prepare SQL Statement:\n PreparedStatement statement = connect.prepareStatement(getUserSQL);\n // Set Attributes / Parameters:\n statement.setString(1, email);\n // Execute Statement:\n set = statement.executeQuery();\n // Check For Results:\n while (set.next()){\n user = new User();\n // Set User Details / Information\n user.setFirst_name(set.getString(\"first_name\"));\n user.setLast_name(set.getString(\"last_name\"));\n user.setEmail(set.getString(\"email\"));\n user.setUser_type(set.getString(\"user_type\"));\n user.setCreated_at(set.getDate(\"created_at\"));\n }\n // End Of Check For Results:.\n }catch (Exception e){\n e.printStackTrace();\n }\n return user;\n }", "public User getUser(String email) {\n\n Query query = new Query(\"User\").setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if (userEntity == null) {\n return null;\n }\n\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n User user = new User(email, aboutMe);\n\n return user;\n }", "public UserDTO findByEmail(String email) throws ApplicationException {\n\n\t\tlog.debug(\"Model findByLogin Started\");\n\t\tConnection conn = null;\n\t\tUserDTO dto = null;\n\n\t\tStringBuffer sql = new StringBuffer(\"Select * from st_user where email=?\");\n\n\t\ttry {\n\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sql.toString());\n\t\t\tstmt.setString(1, email);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tdto = new UserDTO();\n\t\t\t\tdto.setId(rs.getLong(1));\n\t\t\t\tdto.setFirstName(rs.getString(2));\n\t\t\t\tdto.setLastName(rs.getString(3));\n\t\t\t\tdto.setEmail(rs.getString(4));\n\t\t\t\tdto.setPassword(rs.getString(5));\n\t\t\t\tdto.setDob(rs.getDate(6));\n\t\t\t\tdto.setMobileNo(rs.getString(7));\n\t\t\t\tdto.setRoleId(rs.getLong(8));\n\t\t\t\tdto.setGender(rs.getString(9));\n\t\t\t\tdto.setCreatedBy(rs.getString(10));\n\t\t\t\tdto.setModifiedBy(rs.getString(11));\n\t\t\t\tdto.setCreatedDatetime(rs.getTimestamp(12));\n\t\t\t\tdto.setModifiedDatetime(rs.getTimestamp(13));\n\n\t\t\t}\n\t\t\trs.close();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlog.error(\"Database Exception\", e);\n\t\t\tthrow new ApplicationException(\"Exception:Exception in getting User by login\");\n\n\t\t} finally {\n\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t}\n\t\tlog.debug(\"Model findByLogin End\");\n\t\treturn dto;\n\t}", "private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }", "public UserTO getByEmail(String email) {\n\t\treturn getDao().getByEmail(email);\n\t}", "public static User getUserByEmail(String email) {\n\t\t// getting user by email\n\t\treturn dao.getUserByEmail(email);\n\t}", "public boolean findEmail(String email);", "Optional<User> findOneByEmail(String email);", "public User findByEmail(String email) {\n\t\treturn repo.findByEmail(email);\r\n\t}", "Account findByEmail(String email);", "public User getUserFromDetails(String email, String username) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"email\", email);\r\n query.append(\"username\", username);\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }", "Coach findByEmail(String email);", "public User findByEmail(String email) {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.add(Restrictions.eq(\"email\", email));\r\n\t\tUser user = (User) crit.uniqueResult();\r\n\t\tif(user != null) {\r\n\t\t\tHibernate.initialize(user.getUserProfiles());\r\n\t\t}\r\n\t\treturn user;\r\n\t}", "@Query(\"select u from User u where u.email = :email\")\n User getUserByEmail(@Param(\"email\") String email);", "public User getUserFromEmail(final String email) {\n LOG.info(\"Getting user with email {}\", email);\n return userRepo.getUserByEmail(email);\n }", "@Query(value = \"SELECT user FROM User user WHERE user.active = 1 AND user.email = :email\")\n User findByEmailId(@Param(\"email\") String email);", "public User getUserByEmail(String email, String apikey) throws UserNotFoundException, APIKeyNotFoundException{\n if (authenticateApiKey(apikey)){\n return userMapper.getUserByEmail(email);\n }else throw new UserNotFoundException(\"User not found\");\n }", "public String findEmail(String email) {\n\t\tString sql=\"select email from SCOTT.USERS where USERNAME='\"+email+\"'\";\n\t\t\n\t\t Dbobj dj=new Dbobj();\n\t\t JdbcUtils jdbcu=new JdbcUtils();\n\t\t dj=jdbcu.executeQuery(sql);\n\t\t ResultSet rs=dj.getRs(); \n\t\t System.out.println(\"\"+sql);\t\n\t\t String t=\"\";\n\t\t try {\n\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tt=rs.getString(1);\n\t\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\t\n\t\t\n\t\t \n\t\t\n\t\treturn t;\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n\t\tUserDetails user = null;\n\t\ttry {\n\t\t\t\n\t\t\tuser = searchUser(email);\n\t\t\treturn user;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\n\t\t}\n\t}", "public synchronized User getUser(String email) {\r\n return (email == null) ? null : email2user.get(email);\r\n }", "public Optional<User> findByEmail(final String email) {\n return null;\n }", "public User getUserByEmail(String email) throws SQLException {\n\t\ttry {\n\n\t\t\tthis.TryConnect();\n\n\t\t\tthis.m_objData.SetStoreName(\"sys_user_getByEmail(?)\");\n\t\t\tthis.m_objData.Parameters.setString(1, email);\n\n\t\t\tResultSetMapper util = new ResultSetMapper<User>();\n\n\t\t\tResultSet lstResult = this.m_objData.ExecToResultSet();\n\n\t\t\tList<User> lstUser = util.mapRersultSetToObject(lstResult,\n\t\t\t\t\tUser.class);\n\n\t\t\tif (lstUser == null)\n\t\t\t\treturn null;\n\n\t\t\tif (lstUser.size() > 0)\n\t\t\t\treturn lstUser.get(0);\n\t\t\treturn null;\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\tthis.TryDisconnect();\n\t\t}\n\n\t\treturn null;\n\t}", "public User getUserByEmail(String email) throws Exception {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\tsession = getSessionFactory().openSession();\n\t\t\tif(session != null) {\n\t\t\t\ttx = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"FROM User u where u.email =:email\");\n\t\t\t\tquery.setParameter(\"email\", email);\n\t\t\t\tList list = query.list();\n\t\t\t\tif(list != null && list.size() >0) {\n\t\t\t\t\treturn (User)list.get(0);\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t} finally{\n\t\t\tif(tx != null) {\n\t\t\t\ttx.commit();\n\t\t\t}\n\t\t\tif(session != null) {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}", "@Transactional\r\n\tpublic User getUserByEmail(String email) {\n\t\treturn cuser.getUserByEmail(email);\r\n\t}", "CustomerEntity findByEmail( final String email );", "public String searchEmail(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, email from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query,null);\n\n String uname, email;\n email = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n email = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n return email;\n }", "public User findByEmail(String email) {\n\t\ttry {\n\t\t\treturn entityManager\n\t\t\t\t\t.createNamedQuery(User.FIND_BY_EMAIL, User.class)\n\t\t\t\t\t.setParameter(\"email\", email).getSingleResult();\n\t\t} catch (PersistenceException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public User getUser(String email) {\n\t\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t\t\n\t\t\tCursor cursor = db.query(TABLE_USERS, new String[] { KEY_USER_ID, \n\t\t\t\t\tKEY_PASSWORD, KEY_EMAIL }, KEY_EMAIL + \" = ?\",\n\t\t\t\t\tnew String[] { String.valueOf(email) }, null, null, null, null);\n\t\t\tif (cursor != null)\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\n\t\t\tUser user = new User(\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_PASSWORD)),\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_EMAIL)),\n\t\t\t\t\tInteger.parseInt(cursor.getString(0)) );\n\t\t\t// return user\n\t\t\treturn user;\n\t\t\t}", "List<Member> findByEmail(String email);", "public Student findByEmail(String email);", "public boolean isThereSuchAUser(String username, String email) ;", "Optional<User> findByLoginOrEmail(String login, String email);", "Customer findByEmail(String email);", "public static User findByEmail(String email) {\n return new User(email, \"\");\n // TODO: find a way to check email against the UBB users database\n //return find(\"email\", email).first();\n }", "public Customer retrieveCustomerByEmail(String email) throws CustomerNotFoundException;", "@Nullable\n public User getUserFromDatabase(String email) {\n User userAccount = null;\n try {\n SQLiteDatabase db = getReadableDatabase();\n\n Cursor userAccountCursor = db.query(\n TABLE_USERS,\n new String[]{KEY_USER_NAME, KEY_USER_EMAIL, KEY_USER_PASS, KEY_USER_PROFILE_PICTURE_URL, KEY_USER_HAS_POST_TABLE},\n KEY_USER_EMAIL + \" = ?\",\n new String[]{email},\n null,\n null,\n null\n );\n\n if (userAccountCursor != null && userAccountCursor.getCount() > 0 && userAccountCursor.moveToFirst()) {\n userAccount = new User(\n userAccountCursor.getString(0),\n userAccountCursor.getString(1),\n userAccountCursor.getString(2),\n userAccountCursor.getInt(3),\n userAccountCursor.getInt(4)\n );\n }\n\n if (userAccountCursor != null) {\n userAccountCursor.close();\n }\n\n } catch (SQLiteException e) {\n Log.d(TAG, \"Can get user account\");\n }\n\n return userAccount;\n }", "public User getUserByEmail(String email_) {\n User user = new User();\n \n return user;\n }" ]
[ "0.8477124", "0.83937997", "0.83234334", "0.8264818", "0.81234455", "0.81234455", "0.8112775", "0.8112775", "0.8112775", "0.8112775", "0.8112775", "0.8112775", "0.8085361", "0.80656564", "0.80656564", "0.80656564", "0.8034479", "0.80055445", "0.7969872", "0.7922836", "0.7897156", "0.78919584", "0.7872975", "0.78613096", "0.7851912", "0.7793414", "0.77870834", "0.77756304", "0.7766228", "0.7765207", "0.77579945", "0.77524084", "0.7743248", "0.7743248", "0.7741245", "0.7740587", "0.77373695", "0.7674935", "0.7663469", "0.76532155", "0.76463103", "0.76355284", "0.7630558", "0.76100194", "0.75940067", "0.75778335", "0.7554128", "0.75473005", "0.75157666", "0.750386", "0.7471436", "0.7470587", "0.7448311", "0.74199504", "0.73962146", "0.7389933", "0.7380195", "0.73691356", "0.73691356", "0.73279274", "0.7322936", "0.73223895", "0.7303725", "0.72793144", "0.72749776", "0.72646046", "0.7262004", "0.72357816", "0.72308475", "0.72261846", "0.72256684", "0.7224164", "0.7216153", "0.72133946", "0.72129506", "0.7187688", "0.7185451", "0.7179589", "0.71730006", "0.71650606", "0.7159617", "0.7126293", "0.7100541", "0.7092287", "0.7084953", "0.70812154", "0.70797706", "0.7075224", "0.70744956", "0.70516676", "0.70301884", "0.70298886", "0.70053315", "0.70006096", "0.69699454", "0.6950759", "0.69495374", "0.6937425", "0.6924227", "0.68824977" ]
0.85162073
0
Finds a user by email
List<User> addUsersToShowableList(UserListRequest userListRequest);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User find(String email);", "public User findUserByEmail(final String email);", "User findUserByEmail(String email) throws Exception;", "User getUserByEmail(final String email);", "User getUserByEmail(String email);", "public User getUserByEmail(String email);", "public User getUserByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "public static UserEntity search(String email) {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\t\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t \n\t\t\tif (entity.getProperty(\"email\").toString().equals(email)) {\n\t\t\t\tUserEntity returnedUser = new UserEntity(entity.getProperty(\n\t\t\t\t\t\t\"name\").toString(), entity.getProperty(\"email\")\n\t\t\t\t\t\t.toString());\n\t\t\t\treturnedUser.setId(entity.getKey().getId());\n\t\t\t\treturn returnedUser;\n\t\t\t }\nelse{\n\t\t\t\t\n }\n\t\t}\n\n\t\treturn null;\n\t}", "public User findByEmail(String email);", "public User findByEmail(String email);", "public User findByEmail(String email);", "public Users findBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n Users registeredUser = (Users) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }", "User findUserByEmail(String userEmail);", "@Override\n public OpenScienceFrameworkUser findOneUserByEmail(final String email) {\n final OpenScienceFrameworkUser user = findOneUserByUsername(email);\n if (user != null) {\n return user;\n }\n\n // check emails\n try {\n // JPA Hibernate does not support postgres query array operations, use postgres native queries\n // `query.setParameter()` does not work, use string concatenation instead\n final Query query= entityManager.createNativeQuery(\n \"select u.* from osf_osfuser u where u.emails @> '{\" + email + \"}'\\\\:\\\\:varchar[]\",\n OpenScienceFrameworkUser.class\n );\n return (OpenScienceFrameworkUser) query.getSingleResult();\n } catch (final PersistenceException e) {\n LOGGER.error(e.toString());\n return null;\n }\n }", "public static User findUserByEmail(String email) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByEmail = \"SELECT * FROM public.member \"\n + \"WHERE email = '\" + email + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByEmail);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }", "@Override\n\tpublic Users findUserByEmail(String email) {\n\t\treturn iUserDao.findUserByEmail(email);\n\t}", "public User retrieveUserByEmail(String email) throws ApplicationException;", "public User readByEmail(String email) throws DaoException;", "UserEntity findByEmail(String email);", "@Override\n\tpublic ERSUser getUserByEmail(String email) {\n\t\treturn userDao.selectUserByEmail(email);\n\t}", "public User getUser(String email) {\n for (User user : list) {\n if (user.getEmail().equals(email))\n return user; // user found. Return this user.\n }\n return null; // user not found. Return null.\n }", "public AppUser findByEmail(String email);", "@Override\n public User getUserByEmail(final String email){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where email = :email\");\n query.setParameter(\"email\", email);\n return (User) query.uniqueResult();\n }", "public User getUser(String emailId);", "@Override\n\tpublic UserVO searchEmail(String email) throws Exception {\n\t\treturn dao.searchEmail(email);\n\t}", "@Override\n public TechGalleryUser getUserByEmail(final String email) throws NotFoundException {\n TechGalleryUser tgUser = userDao.findByEmail(email);\n// TechGalleryUser tgUser = userDao.findByEmail(\"[email protected]\");\n if (tgUser == null) {\n throw new NotFoundException(ValidationMessageEnums.USER_NOT_EXIST.message());\n } else {\n return tgUser;\n }\n }", "public User getUser(String email);", "Optional<User> findByEmail(String email);", "Optional<User> findByEmail(String email);", "public User getUserByEmail(final String email) {\n return em.find(User.class, email.toLowerCase());\n }", "public User findByEmail(String email){\n return userRepository.findByEmail(email);\n }", "@Override\n\tpublic User findByEmail(String email)\n\t{\n\t\tif (email == null) return null;\n\t\n\t\tString property = User.PROP_EMAIL;\n\t\tLabel label = RoostNodeType.USER;\n\t\tUser user = findByUniqueProperty(label, property, email);\n\t\t\n\t\treturn user;\n\t}", "public static Utente findByEmail(String email) {\n \t\n\t\tSession session = DatabaseManager.getSession();\n Transaction tx = null;\n Utente user = null;\n \n \n try {\n tx = session.getTransaction();\n tx.begin();\n \n CriteriaBuilder builder = session.getCriteriaBuilder();\n CriteriaQuery<Utente> criteria = builder.createQuery(Utente.class);\n Root<Utente> root = criteria.from(Utente.class);\n \n criteria.select(root).where(builder.equal(root.get(Utente_.email), email));\n\n user = session.createQuery(criteria).getSingleResult();\n \n tx.commit();\n \n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n \n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n \n return user;\n \n \n }", "UserDTO findUserByEmail(String email);", "ServiceUserEntity getUserByEmail(String email);", "User findOneByMail(String mail);", "public User getUserByEmail(String email)throws EntityNotFoundException\n\t{\n\t\treturn userDao.getById(email);\n\t}", "public User get(String emailID);", "public User getUser(String email) {\r\n\t\tOptional<User> optionalUser = null;\r\n\t\tUser user = null;\r\n\t\ttry {\r\n\t\t\toptionalUser = userList().stream().filter(u -> u.getUserEmail().equals(email)).findFirst();\r\n\t\t\tif (optionalUser.isPresent()) {\r\n\t\t\t\tuser = optionalUser.get();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"error find user : \" + email + \" \" + e);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn user;\r\n\t}", "@Override\n public User getByEmail(String email) {\n List<JdbcUser> jdbcUserList = jdbcTemplate.query(\"SELECT * FROM users WHERE email=?\", ROW_MAPPER, email);\n JdbcUser jdbcUser = DataAccessUtils.singleResult(jdbcUserList);\n if (jdbcUser == null) {\n return null;\n }\n return convertToUser(jdbcUser);\n }", "@Override\n\tpublic User getUser(String email){\n\t\tif (userExists(email) == true)\n\t\t\treturn users[searchIndex(email)];\n\t\telse\n\t\t\treturn null;\n\t}", "public User_info search_User_info(String email) {\n\t\t\t\tSystem.out.println(user_loginDao.searchId(email));\r\n\t\t\t\treturn user_infoDao.search_User(user_loginDao.findUserByEmail(email).getId());\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic User getUserByEmail(String email, User user) {\n\t\tSession session = sessionFactory.openSession();\n\t\tList<User> userList = new ArrayList<>();\n\t\tuserList = (List<User>) session.createQuery(\"from User\");\n\t\tfor (User tempUser : userList) {\n\t\t\tif (tempUser.getEmail().equalsIgnoreCase(email)) {\n\t\t\t\tuser = tempUser;\n\t\t\t\tSystem.out.println(\"get uswer by email: \" + user);\n\t\t\t\treturn user;\n\t\t\t}\n\t\t}\n\t\treturn user;\n\t}", "@Override\n public final CustomerUser getCustomerUserByEmail(final String email) {\n\treturn (CustomerUser) getEntityManager()\t\n\t\t.createQuery(\"select customer from \"\n\t\t\t+ CustomerUser.class.getName()\n\t\t\t+ \" as customer where customer.email =:email\")\n\t\t.setParameter(\"email\", email)\n\t\t.getSingleResult();\n }", "public User getUser(String email) {\n\n Query query = new Query(\"User\")\n .setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if(userEntity == null) {return null; }\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n //ArrayList<String> advisees = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisees\")).split(\" \")));\n //ArrayList<String> advisors = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisors\")).split(\" \")));\n String fn = (String) userEntity.getProperty(\"firstName\");\n String ln = (String) userEntity.getProperty(\"lastName\");\n User user = new User(email, fn, ln, aboutMe);\n return user;\n\n }", "@Override\r\n\tpublic User getByMail(String eMail) {\n\r\n\t\treturn userDao.get(eMail);\r\n\t}", "public VendorUser findVuserBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n VendorUser registeredUser = (VendorUser) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }", "public User getUser(String email) {\n\t\tLog.i(TAG, \"return a specific user with email.\");\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getcurrentUser = \"select * from \" + TABLE_USER\n\t\t\t\t+ \" where email='\" + email + \"'\";\n\t\tCursor cursor = db.rawQuery(getcurrentUser, null);\n\t\tcursor.moveToFirst();\n\t\tif (cursor.isAfterLast()) return null;\n\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\treturn user;\n\t}", "Optional<JUser> readByEmail(String email);", "public User existsProfile(String email) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n SuperBooleanBuilder query = new SuperBooleanBuilder();\n query.put(\"email\", email);\n Search search = new Search.Builder(query.toString())\n .addIndex(INDEX_NAME)\n .addType(User.class.toString())\n .build();\n\n User result = null;\n try {\n result = client.execute(search).getSourceAsObject(User.class);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return result;\n }", "public User getUserByEmail(String email) {\r\n\t\treturn usersPersistence.getUserByEmail(email);\r\n\t}", "public Utente retriveByEmail(String email) {\n\t\t\n\t\tTypedQuery<Utente> query = em.createNamedQuery(Utente.FIND_BY_Email, Utente.class);\n query.setParameter(\"email\", email); //parameters by name \n return query.getSingleResult();\n\t}", "public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }", "public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }", "@Override\n\tpublic User getUser(String email) {\n\t\treturn userDatabase.get(email);\n\t}", "public UsersModel getUserById(String userEmail);", "public User findEmail(String email){\n\t\t\n boolean found = false;\t\t\t\t\t\t\t\t\t\t/* ====> Boolean controls while loop */\n User correct = new User();\t\t\t\t\t\t\t\t\t/* ====> Create instance of the correct user*/\n User marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n marker = this.head;\t\t\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n \n // Loop keeps on going until the correct User is not found or until the next User is null\n while(!found){ \n \tif (marker.getEmail().equals(email)){\t\t\t\t\t/* ====> If the marker found the right user based on its email */ \n \t\tfound = true;\t\t\t\t\t\t\t\t\t\t/* ====> Set found true, end loop */\n \t\tcorrect = marker;\t\t\t\t\t\t\t\t\t/* ====> Make correct point to the same User as marker */\n \t}\n \n else if (marker.getNext() == null){\t\t\t\t\t\t/* ====> If the marker reaches end of the list */ \n \tfound = true;\t\t\t\t\t\t\t\t\t\t/* ====> Set found true, end loop */\n \tcorrect = head;\t\t\t\t\t\t\t\t\t\t/* ====> Make correct point to the head */\n }\n \n else {\n \tmarker = marker.getNext();\t\t\t\t\t\t\t/* ====> Move marker to the next element of the list */\n }\n }\n \n return correct;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Return correct User */ \n \n\t}", "public User getUserByEmail(String email){\n\t\tif(email == null)\n\t\t\treturn null;\n\t\tSessionFactory sf = HibernateUtil.getSessionFactory();\n\t\tSession session = sf.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry{\n\t\t\tCriteria criteria = session.createCriteria(User.class);\n\t\t\tObject obj = criteria.add(Restrictions.eq(\"email\", email)).uniqueResult();\n\t\t\tif(obj == null)\n\t\t\t\treturn null;\n\t\t\tUser user = (User)obj;\n\t\t\ttx.commit();\n\t\t\treturn user;\t\t\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "public static User getUser(String email){\n Connection connect = null;\n ResultSet set = null;\n String getUserSQL = \"SELECT * FROM users WHERE email =?\";\n User user = null;\n\n // Get User Details Try Block:\n try {\n // Set Connection:\n connect = DBConfig.getConnection();\n // Prepare SQL Statement:\n PreparedStatement statement = connect.prepareStatement(getUserSQL);\n // Set Attributes / Parameters:\n statement.setString(1, email);\n // Execute Statement:\n set = statement.executeQuery();\n // Check For Results:\n while (set.next()){\n user = new User();\n // Set User Details / Information\n user.setFirst_name(set.getString(\"first_name\"));\n user.setLast_name(set.getString(\"last_name\"));\n user.setEmail(set.getString(\"email\"));\n user.setUser_type(set.getString(\"user_type\"));\n user.setCreated_at(set.getDate(\"created_at\"));\n }\n // End Of Check For Results:.\n }catch (Exception e){\n e.printStackTrace();\n }\n return user;\n }", "public User getUser(String email) {\n\n Query query = new Query(\"User\").setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if (userEntity == null) {\n return null;\n }\n\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n User user = new User(email, aboutMe);\n\n return user;\n }", "public UserDTO findByEmail(String email) throws ApplicationException {\n\n\t\tlog.debug(\"Model findByLogin Started\");\n\t\tConnection conn = null;\n\t\tUserDTO dto = null;\n\n\t\tStringBuffer sql = new StringBuffer(\"Select * from st_user where email=?\");\n\n\t\ttry {\n\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sql.toString());\n\t\t\tstmt.setString(1, email);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tdto = new UserDTO();\n\t\t\t\tdto.setId(rs.getLong(1));\n\t\t\t\tdto.setFirstName(rs.getString(2));\n\t\t\t\tdto.setLastName(rs.getString(3));\n\t\t\t\tdto.setEmail(rs.getString(4));\n\t\t\t\tdto.setPassword(rs.getString(5));\n\t\t\t\tdto.setDob(rs.getDate(6));\n\t\t\t\tdto.setMobileNo(rs.getString(7));\n\t\t\t\tdto.setRoleId(rs.getLong(8));\n\t\t\t\tdto.setGender(rs.getString(9));\n\t\t\t\tdto.setCreatedBy(rs.getString(10));\n\t\t\t\tdto.setModifiedBy(rs.getString(11));\n\t\t\t\tdto.setCreatedDatetime(rs.getTimestamp(12));\n\t\t\t\tdto.setModifiedDatetime(rs.getTimestamp(13));\n\n\t\t\t}\n\t\t\trs.close();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlog.error(\"Database Exception\", e);\n\t\t\tthrow new ApplicationException(\"Exception:Exception in getting User by login\");\n\n\t\t} finally {\n\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t}\n\t\tlog.debug(\"Model findByLogin End\");\n\t\treturn dto;\n\t}", "private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }", "public UserTO getByEmail(String email) {\n\t\treturn getDao().getByEmail(email);\n\t}", "public static User getUserByEmail(String email) {\n\t\t// getting user by email\n\t\treturn dao.getUserByEmail(email);\n\t}", "public boolean findEmail(String email);", "Optional<User> findOneByEmail(String email);", "public User findByEmail(String email) {\n\t\treturn repo.findByEmail(email);\r\n\t}", "Account findByEmail(String email);", "Coach findByEmail(String email);", "public User getUserFromDetails(String email, String username) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"email\", email);\r\n query.append(\"username\", username);\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }", "@Query(\"select u from User u where u.email = :email\")\n User getUserByEmail(@Param(\"email\") String email);", "public User findByEmail(String email) {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.add(Restrictions.eq(\"email\", email));\r\n\t\tUser user = (User) crit.uniqueResult();\r\n\t\tif(user != null) {\r\n\t\t\tHibernate.initialize(user.getUserProfiles());\r\n\t\t}\r\n\t\treturn user;\r\n\t}", "public User getUserFromEmail(final String email) {\n LOG.info(\"Getting user with email {}\", email);\n return userRepo.getUserByEmail(email);\n }", "@Query(value = \"SELECT user FROM User user WHERE user.active = 1 AND user.email = :email\")\n User findByEmailId(@Param(\"email\") String email);", "public User getUserByEmail(String email, String apikey) throws UserNotFoundException, APIKeyNotFoundException{\n if (authenticateApiKey(apikey)){\n return userMapper.getUserByEmail(email);\n }else throw new UserNotFoundException(\"User not found\");\n }", "public String findEmail(String email) {\n\t\tString sql=\"select email from SCOTT.USERS where USERNAME='\"+email+\"'\";\n\t\t\n\t\t Dbobj dj=new Dbobj();\n\t\t JdbcUtils jdbcu=new JdbcUtils();\n\t\t dj=jdbcu.executeQuery(sql);\n\t\t ResultSet rs=dj.getRs(); \n\t\t System.out.println(\"\"+sql);\t\n\t\t String t=\"\";\n\t\t try {\n\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tt=rs.getString(1);\n\t\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\t\n\t\t\n\t\t \n\t\t\n\t\treturn t;\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n\t\tUserDetails user = null;\n\t\ttry {\n\t\t\t\n\t\t\tuser = searchUser(email);\n\t\t\treturn user;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\n\t\t}\n\t}", "public synchronized User getUser(String email) {\r\n return (email == null) ? null : email2user.get(email);\r\n }", "public Optional<User> findByEmail(final String email) {\n return null;\n }", "public User getUserByEmail(String email) throws SQLException {\n\t\ttry {\n\n\t\t\tthis.TryConnect();\n\n\t\t\tthis.m_objData.SetStoreName(\"sys_user_getByEmail(?)\");\n\t\t\tthis.m_objData.Parameters.setString(1, email);\n\n\t\t\tResultSetMapper util = new ResultSetMapper<User>();\n\n\t\t\tResultSet lstResult = this.m_objData.ExecToResultSet();\n\n\t\t\tList<User> lstUser = util.mapRersultSetToObject(lstResult,\n\t\t\t\t\tUser.class);\n\n\t\t\tif (lstUser == null)\n\t\t\t\treturn null;\n\n\t\t\tif (lstUser.size() > 0)\n\t\t\t\treturn lstUser.get(0);\n\t\t\treturn null;\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\tthis.TryDisconnect();\n\t\t}\n\n\t\treturn null;\n\t}", "public User getUserByEmail(String email) throws Exception {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\tsession = getSessionFactory().openSession();\n\t\t\tif(session != null) {\n\t\t\t\ttx = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"FROM User u where u.email =:email\");\n\t\t\t\tquery.setParameter(\"email\", email);\n\t\t\t\tList list = query.list();\n\t\t\t\tif(list != null && list.size() >0) {\n\t\t\t\t\treturn (User)list.get(0);\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t} finally{\n\t\t\tif(tx != null) {\n\t\t\t\ttx.commit();\n\t\t\t}\n\t\t\tif(session != null) {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}", "@Transactional\r\n\tpublic User getUserByEmail(String email) {\n\t\treturn cuser.getUserByEmail(email);\r\n\t}", "CustomerEntity findByEmail( final String email );", "public String searchEmail(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, email from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query,null);\n\n String uname, email;\n email = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n email = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n return email;\n }", "public User findByEmail(String email) {\n\t\ttry {\n\t\t\treturn entityManager\n\t\t\t\t\t.createNamedQuery(User.FIND_BY_EMAIL, User.class)\n\t\t\t\t\t.setParameter(\"email\", email).getSingleResult();\n\t\t} catch (PersistenceException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "List<Member> findByEmail(String email);", "public User getUser(String email) {\n\t\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t\t\n\t\t\tCursor cursor = db.query(TABLE_USERS, new String[] { KEY_USER_ID, \n\t\t\t\t\tKEY_PASSWORD, KEY_EMAIL }, KEY_EMAIL + \" = ?\",\n\t\t\t\t\tnew String[] { String.valueOf(email) }, null, null, null, null);\n\t\t\tif (cursor != null)\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\n\t\t\tUser user = new User(\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_PASSWORD)),\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_EMAIL)),\n\t\t\t\t\tInteger.parseInt(cursor.getString(0)) );\n\t\t\t// return user\n\t\t\treturn user;\n\t\t\t}", "public Student findByEmail(String email);", "public boolean isThereSuchAUser(String username, String email) ;", "Optional<User> findByLoginOrEmail(String login, String email);", "Customer findByEmail(String email);", "public static User findByEmail(String email) {\n return new User(email, \"\");\n // TODO: find a way to check email against the UBB users database\n //return find(\"email\", email).first();\n }", "public Customer retrieveCustomerByEmail(String email) throws CustomerNotFoundException;", "@Nullable\n public User getUserFromDatabase(String email) {\n User userAccount = null;\n try {\n SQLiteDatabase db = getReadableDatabase();\n\n Cursor userAccountCursor = db.query(\n TABLE_USERS,\n new String[]{KEY_USER_NAME, KEY_USER_EMAIL, KEY_USER_PASS, KEY_USER_PROFILE_PICTURE_URL, KEY_USER_HAS_POST_TABLE},\n KEY_USER_EMAIL + \" = ?\",\n new String[]{email},\n null,\n null,\n null\n );\n\n if (userAccountCursor != null && userAccountCursor.getCount() > 0 && userAccountCursor.moveToFirst()) {\n userAccount = new User(\n userAccountCursor.getString(0),\n userAccountCursor.getString(1),\n userAccountCursor.getString(2),\n userAccountCursor.getInt(3),\n userAccountCursor.getInt(4)\n );\n }\n\n if (userAccountCursor != null) {\n userAccountCursor.close();\n }\n\n } catch (SQLiteException e) {\n Log.d(TAG, \"Can get user account\");\n }\n\n return userAccount;\n }", "public User getUserByEmail(String email_) {\n User user = new User();\n \n return user;\n }" ]
[ "0.85155135", "0.84757453", "0.8392882", "0.83224416", "0.8264173", "0.8122889", "0.8122889", "0.81119055", "0.81119055", "0.81119055", "0.81119055", "0.81119055", "0.81119055", "0.808409", "0.80650705", "0.80650705", "0.80650705", "0.8032158", "0.8005241", "0.79676634", "0.7920534", "0.7895196", "0.7890608", "0.7871572", "0.7860564", "0.7850009", "0.77914083", "0.7786093", "0.7774238", "0.77658826", "0.77644455", "0.77563435", "0.77521026", "0.7742061", "0.7742061", "0.7739123", "0.7739007", "0.77348924", "0.76725376", "0.7663086", "0.7652918", "0.76460123", "0.76331633", "0.76299936", "0.76078117", "0.7591408", "0.7575529", "0.75525296", "0.7547107", "0.7513958", "0.7502378", "0.74711883", "0.7468624", "0.7446337", "0.741781", "0.7394493", "0.73872244", "0.7377954", "0.7367119", "0.7367119", "0.73262006", "0.7322234", "0.7320552", "0.73010284", "0.7276857", "0.7273151", "0.72624004", "0.7260558", "0.72334254", "0.7228452", "0.72250366", "0.72242105", "0.7221727", "0.7215341", "0.72124934", "0.72122985", "0.71851254", "0.71848565", "0.7177713", "0.71720505", "0.71638244", "0.7157296", "0.71247894", "0.7098001", "0.7089196", "0.7081992", "0.70789033", "0.7077259", "0.7074839", "0.70746994", "0.70487607", "0.70288604", "0.70281184", "0.7005125", "0.7000429", "0.6968912", "0.6950319", "0.6946512", "0.69368035", "0.6921862", "0.68796587" ]
0.0
-1
Finds a user by its id
User find(long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}", "public User findUser(int id) {\n for (int i = 0; i < allUsers.size(); i++) {\n if (allUsers.get(i).getId() == id) {\n return allUsers.get(i);\n }\n }\n return null;\n }", "@Override\n\tpublic User findUser(int id) {\n\n\t\tUser user = em.find(User.class, id);\n\n\t\treturn user;\n\t}", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "public User findUser(int id)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (id == (users.get(i).getId()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public User findById ( int id) {\n\t\t return users.stream().filter( user -> user.getId().equals(id)).findAny().orElse(null);\n\t}", "@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}", "public static User findUser(int id) {\r\n return null;\r\n }", "private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }", "User findUserById(Long id) throws Exception;", "public User findUser(int id) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where id = ?\");\n\t\t\tps.setInt(1, id);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(id, rs.getString(2), rs.getString(3), rs.getString(5),\n\t\t\t\t\t\trs.getDate(6));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "public User findById(Long id) {\n return genericRepository.find(User.class, id);\n }", "@Override\n\tpublic User findUserById(int id) {\n\t\treturn userDao.findUserById(id);\n\t}", "public User findUserById(int id);", "User findUserById(int id);", "@RequestMapping(value = \"/find/{id}\", method = RequestMethod.GET)\n @ResponseBody\n public ResponseEntity findUser(@PathVariable long id) {\n User user = userService.findById(id);\n if (user == null) {\n return new ResponseEntity(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity(user, HttpStatus.OK);\n }", "public User findById(Long id){\n return userRepository.findOne(id);\n }", "public static User findById(final String id) {\n return find.byId(id);\n\n }", "@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}", "@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }", "public User findById(int id) {\n\t\treturn userRepository.findOne(id);\n\t}", "@Override\n\tpublic User findById(String id) {\n\t\tUser u= em.find(User.class, id);\n\t\tSystem.out.println(u);\n\t\treturn u;\n\t}", "@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }", "@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }", "User getUserById(int id);", "public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }", "public User findById(Long id);", "public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}", "User findUser(String userId);", "User findById(Long id);", "@Override\n public User findById(long id) {\n return dao.findById(id);\n }", "User getUserById(Long id);", "User getUserById(Long id);", "@Override\n public User findById(Integer id) {\n try {\n return runner.query(con.getThreadConnection(),\"select *from user where id=?\",new BeanHandler<User>(User.class),id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "public User findById(String id) {\n\t\treturn userDao.findById(id);\n\t}", "public User findUserById(Long id) {\n \tOptional<User> u = userRepository.findById(id);\n \t\n \tif(u.isPresent()) {\n return u.get();\n \t} else {\n \t return null;\n \t}\n }", "public User findUserById (long id){\n if(userRepository.existsById(id)){\n return this.userRepository.findById(id);\n }else{\n throw new UnknownUserException(\"This user doesn't exist in our database\");\n }\n }", "@Override\r\n\tpublic TbUser findUserById(Long id) {\n\t\tTbUser tbUser = tbUserMapper.selectByPrimaryKey(id);\r\n\t\treturn tbUser;\r\n\t}", "@Override\n\tpublic User findByUserid(Serializable id) {\n\t\treturn this.userDao.findById(id);\n\t}", "Optional<User> findUser(int id) throws ServiceException;", "User findById(long id);", "@Override\n\tpublic User findUserByUserId(long id) {\n\t\treturn userDao.getUserByUserId(id);\n\t}", "public User getUserFromID(String id) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"_id\", new ObjectId(id));\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }", "User findOne(Long id);", "public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }", "User getUser(Long id);", "public Users findByUserid(String id) {\n\tthis.createConnection();\n\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(\"select * from user where id=?;\");\n stmnt.setString(1, id);\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQLException: \");\n return new Users();\n }\n }", "public User findById(int id) {\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORES.USERS WHERE ID=\" +id;\n\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\treturn new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\"));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public User findOneUser(int id) {\n\t\treturn userMapper.findOneUser(id);\r\n\t}", "public User findById(long id) {\n return store.findById(id);\n }", "public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }", "@Override\r\n\tpublic SpUser findById(String id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic User findById(int id) {\n\t\treturn null;\r\n\t}", "public User findById(int id) {\n\t\treturn this.getHibernateTemplate().load(User.class, id);// session.load()\r\n\t}", "@RequestMapping(method=RequestMethod.GET, value=\"{id}\")\n\tpublic User getUser(@PathVariable Long id) {\n\t\treturn RestPreconditions.checkFound(repo.findByUserId(id));\n\t}", "public User findUserByName(String id) {\n return em.find(User.class, id);\n }", "public User getUserById(Long id) throws Exception;", "public User getUser(Integer id)\n\t{\n\t\t// Create an user -1 for when it isn't in the list\n\t\tUser searchUser = new User();\n\t\t// Index: User's position in the list\n\t\tint index = this.getUserById(id.intValue());\n\t\t// If the user is in the list execute the action\n\t\tif(index != -1)\n\t\t{\n\t\t\tsearchUser = this.usersList.get(index);\n\t\t}\n\t\t\n\t\treturn searchUser;\n\t}", "User findOneById(long id);", "@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}", "@Override\n\tpublic Users findByID(int id) {\n\t\treturn usersDAO.findByID(id);\n\t}", "public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }", "@Override\n\tpublic User getUser(int id) {\n\t\treturn userRepository.findById(id);\n\t}", "public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }", "@Override\n\tpublic User findById(String id) {\n\t\treturn null;\n\t}", "User getOne(long id) throws NotFoundException;", "public User read(String id);", "public User findById(int userId);", "public User getUser(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n User user = null;\n try {\n tx = session.beginTransaction();\n\n // Add restriction to get user with username\n Criterion emailCr = Restrictions.idEq(id);\n Criteria cr = session.createCriteria(User.class);\n cr.add(emailCr);\n user = (User)cr.uniqueResult();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return user;\n }", "public User findUserById(Long id) throws DBException {\n\t\tUser user = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = DBManager.getInstance().getConnection();\n\t\t\tpstmt = con.prepareStatement(SQL_FIND_USER_BY_ID);\n\t\t\tpstmt.setLong(1, id);\n\t\t\trs = pstmt.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tuser = extractUser(rs);\n\t\t\t}\n\t\t\tcon.commit();\n\t\t} catch (SQLException ex) {\n\t\t\tDBManager.getInstance().rollback(con);\n\t\t\tLOG.error(Messages.ERR_CANNOT_FIND_USER_BY_ID, ex);\n\t\t\tthrow new DBException(Messages.ERR_CANNOT_FIND_USER_BY_ID, ex);\n\t\t} finally {\n\t\t\tDBManager.getInstance().close(con, pstmt, rs);\n\t\t}\n\t\treturn user;\n\n\t}", "public Person findUserById(Integer id) {\n\t\treturn null;\n\t}", "public Usuario findUserById(Integer id){\n\t\treturn usuarios.findById(id);\n\t}", "@GET\n\t@Path(\"/id\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response findById(@QueryParam(\"id\") Long id) throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tUser userById = userDao.getUserById(id);\n\t\t\n\t\tif (userById != null) {\n\t\t\treturn Response\n\t\t\t\t\t.status(200)\n\t\t\t\t\t.entity(userById)\n\t\t\t\t\t.header(\"Access-Control-Allow-Headers\", \"X-extra-header\")\n\t\t\t\t\t.allow(\"OPTIONS\")\n\t\t\t\t\t.build();\n\t\t} else {\n\t\t\treturn Response\n\t\t\t\t\t.status(404)\n\t\t\t\t\t.entity(\"The user with the id \" + id + \" does not exist\")\t\t\t\t\t\n\t\t\t\t\t.build();\n\t\t}\n\t}", "@Override\n\tpublic SmbmsUser findById(int id) {\n\t\treturn sud.findById(id);\n\t}", "public User getUserById(int id) {\n\t\treturn em.find(User.class, id);\n\t}", "@Override\r\n\tpublic User getUserByID(int id) {\n\t\treturn userMapper.getUserByID(id);\r\n\t}", "public Optional<User> findById(Integer id);", "@Override\n public TechGalleryUser getUser(final Long id) throws NotFoundException {\n TechGalleryUser userEntity = userDao.findById(id);\n // if user is null, return a not found exception\n if (userEntity == null) {\n throw new NotFoundException(i18n.t(\"No user was found.\"));\n } else {\n return userEntity;\n }\n }", "public Users findById(int id) {\r\n return em.find(Users.class, id);\r\n }", "public UserDTO getUserById(long id) {\n return Optional.of(ObjectMapperUtility.map(dao.findById(id), UserDTO.class))\n .orElseThrow(() -> new UserNotFoundException(\"No users with matching id \" + id));\n // return Optional.of(dao.findById(id)).get().orElseThrow(()-> new UserNotFoundException(\"No users with\n // match\"));\n }", "public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}", "@Override\n\tpublic User findNeedById(int id) {\n\t\treturn userdao.findNeedById(id);\n\t}", "@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public User getUser(Long id) {\n\t\treturn userRepo.findByUserId(id);\n\t}", "private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}", "@Override\n public ResponseEntity<User> findById(Long id) {\n User res_data = userRepository.findById(id).get();\n if (res_data != null) {\n return new ResponseEntity<>(res_data, HttpStatus.OK);\n }\n return new ResponseEntity<>((User) res_data, HttpStatus.NOT_FOUND);\n }", "public User getSingleUser(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where user.userId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }", "@Override\n\tpublic User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\n\t}", "public PrototypeUser getUserById(Long id) {\n\t\treturn userDao.findById(id);\r\n\t}", "@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }", "public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}", "@Override\n\tpublic User find(int id) {\n\t\tSystem.out.println(\"OracleDao is find\");\n\t\treturn null;\n\t}", "@Override\n\tpublic User findOne(long id) {\n\t\treturn null;\n\t}", "@Transactional\n\tpublic User findUserById(long id) {\n\t\treturn userDao.findUserById(id);\n\t}", "Optional<User> findUserById(Long id);", "@Override\n\tpublic User selectUserById(int id) {\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = (User) client.queryForObject(\"selectUserById\", id);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\n\t}", "@GetMapping(\"/findbyid\")\n\tpublic Optional<User> findUserById (@RequestParam int userId) {\n\t\treturn userRepo.findById(userId);\n\t}", "@Override\n\tpublic User getOne(Integer id) {\n\t\treturn userDao.getOne(id);\n\t}" ]
[ "0.8179434", "0.8095565", "0.8040939", "0.80328614", "0.80216634", "0.80183166", "0.7989188", "0.79778117", "0.7974008", "0.7965335", "0.7914189", "0.78907156", "0.7864647", "0.7864245", "0.7857464", "0.78566486", "0.7856141", "0.7854151", "0.7846027", "0.78380495", "0.7835246", "0.78278106", "0.78126204", "0.7810758", "0.7774849", "0.7768986", "0.7764852", "0.77460694", "0.7741353", "0.77408653", "0.7738536", "0.7724786", "0.7724786", "0.77232885", "0.77175385", "0.7716228", "0.7709907", "0.7707561", "0.7701185", "0.76996607", "0.76976657", "0.76918113", "0.7687557", "0.76771724", "0.7670398", "0.76436895", "0.76389664", "0.7637793", "0.7632064", "0.76036125", "0.75941175", "0.75806177", "0.7575926", "0.7537283", "0.7535983", "0.7527854", "0.7517155", "0.7499035", "0.7496625", "0.74447346", "0.7442813", "0.7438943", "0.74345535", "0.7411831", "0.7408848", "0.7407365", "0.7398497", "0.7393898", "0.7380405", "0.7367656", "0.7362893", "0.73627794", "0.73401004", "0.7337564", "0.7334116", "0.7331147", "0.73265237", "0.7325379", "0.7321106", "0.7314135", "0.73044354", "0.72967863", "0.72793186", "0.72722054", "0.72696006", "0.7262206", "0.7261753", "0.72396755", "0.7234039", "0.72334725", "0.7232335", "0.7232191", "0.72250164", "0.72154504", "0.71858895", "0.7181865", "0.7179464", "0.71709716", "0.71703327", "0.716941" ]
0.81854504
0
Load the number of user offering services
Integer loadUserCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getServicesCount();", "int getServicesCount();", "int getUsersCount();", "int getUsersCount();", "int getUsersCount();", "public long getUserCount() throws UserManagementException;", "int getServiceAccountsCount();", "@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}", "int getUserCount();", "int getUserCount();", "public int getServicesCount() {\n return services_.size();\n }", "public int getServicesCount() {\n return services_.size();\n }", "public int getNumberOfIncludedServices(){\n \n return listOfIncludedServices.size();\n }", "public String fetchCountMyData(User loginUser);", "int getPurchasableOffersCount();", "private int getNumberOfCustomers(){\n FileServices fs = new FileServices();\n return fs.loadCustomers().size();\n }", "public int getUserCount() {\n return instance.getUserCount();\n }", "public int getAvailableCount();", "public int getServicesCount() {\n if (servicesBuilder_ == null) {\n return services_.size();\n } else {\n return servicesBuilder_.getCount();\n }\n }", "public int getServicesCount() {\n if (servicesBuilder_ == null) {\n return services_.size();\n } else {\n return servicesBuilder_.getCount();\n }\n }", "@Override\r\n\tpublic int selectUserCount() {\n\t\treturn userMapper.selectUserCount();\r\n\t}", "public int getUserCount() {\n return user_.size();\n }", "public int numberOfUsers() {\r\n \tint anzahlUser=userDAO.getUserList().size();\r\n \treturn anzahlUser;\r\n }", "int getUserQuestJobsCount();", "int getProfilesCount();", "public long getUsersCount() {\r\n return usersCount;\r\n }", "public int numberUsers() \n\t{\n\t\treturn this.userList.size();\n\t}", "public final int getServiceCount() {\r\n return this.m_service_count;\r\n }", "public int countUsers()\n {\n int nbUser = 0;\n pw.println(12);\n try\n {\n nbUser = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbUser ;\n }", "public int getUsersCount() {\n return users_.size();\n }", "public int getUsersCount() {\n return users_.size();\n }", "int getRequestsCount();", "int getRequestsCount();", "int getAchieveInfoCount();", "int getNumberOfGuests();", "long getRequestsCount();", "public int getUserCount() {\n\t\t\treturn 7;\n\t\t}", "int getVirtualUsers();", "@Override\n\tpublic int selectListCnt(User vo) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int selectCount() {\n\t\treturn userdao.selectCount();\r\n\t}", "long getTotalProductsCount();", "Counter getDeskMembersCounts(String userID) throws GAException;", "@Override\n public int findTotal(){\n try {\n return runner.query(con.getThreadConnection(),\"select count(*) from user\",new BeanHandler<Integer>(Integer.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public int getActiveUserCount() {\n return activeUserCount;\n }", "int getPickupsCount();", "Long getAllCount();", "int getPersonInfoCount();", "public int getProductCount();", "int getApplicationsCount();", "@Override\n\tpublic int countOfTask(int userId) {\n\t\treturn publicDomService.getPersonTaskCount(DomType.GATHER, MenuType.GA_READ, userId);\n\t}", "int getDeliveriesCount();", "@Override\r\n\tpublic int getMonitoredSupermarketsNumber(int userId) throws SQLException {\r\n\t\tcon = ConnectionPoolManager.getPoolManagerInstance().getConnectionFromPool();\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\tString query = \"select count(*) \"\r\n\t\t\t\t+ \"from monitored_supermarket \"\r\n\t\t\t\t+ \"where id_user = ?\";\r\n\t\ttry {\r\n\t\t\tps = con.prepareStatement(query);\r\n\t\t\tps.setInt(1, userId);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\trs.next();\r\n\t\t\treturn rs.getInt(1);\r\n\t\t}finally{\r\n\t\t\tConnectionPoolManager.getPoolManagerInstance().returnConnectionToPool(con);\r\n\t\t}\r\n\t}", "@Override\n\tpublic int getItemCount()\n\t{\n\t\treturn (userList != null) ? userList.size() + (doneLoading ? 0 : 1) : 0;\n\t}", "long countNumberOfProductsInDatabase();", "int getTotalCount();", "public int getAdvisorCount();", "@Override\n public int getIntraUsersWaitingYourAcceptanceCount() {\n //TODO: falta que este metodo que devuelva la cantidad de request de conexion que tenes\n try {\n\n if (getActiveIntraUserIdentity() != null){\n return getIntraUsersWaitingYourAcceptance(getActiveIntraUserIdentity().getPublicKey(), 100, 0).size();\n }\n\n } catch (CantGetIntraUsersListException e) {\n e.printStackTrace();\n } catch (CantGetActiveLoginIdentityException e) {\n e.printStackTrace();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }", "@Override\n\tpublic int selectReserveCount() {\n\t\treturn dgCallServiceMapper.selectReserveCount();\n\t}", "public int selectCountByUserId(Integer userId);", "int getReqCount();", "int getEducationsCount();", "int getSystemCount();", "int getNumOfRetrievelRequest();", "int getNumOfRetrievelRequest();", "public Integer getAllShelfCount(String filter, String username);", "@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}", "@Query\n\tpublic int countFreeUin();", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "private int getFromSellableInventoryService() {\n Map<String, String> pathVars = Maps.newHashMap();\n pathVars.put(\"location\", LOCATION);\n pathVars.put(\"sku\", SKU);\n try {\n InventoryDto inventory = restTemplate.getForObject(\n \"http://localhost:9093/inventory/locations/{location}/skus/{sku}\", InventoryDto.class, pathVars);\n\n return inventory.getCount();\n } catch (RestClientException e) {\n return 0;\n }\n }", "@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}", "int getUserTypesCount();", "public int getUserCount(UserParams params) throws Exception {\n\t\treturn 0;\n\t}", "int getReservePokemonCount();", "public int get_count();", "public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }", "int getCustomersCount();", "int getListSnIdCount();", "int numSeatsAvailable();", "int getUserFunctionsCount();", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn userapp.size() + systemapp.size();\n\t\t}", "int getSessionCount();", "public static int getUserInfosCount()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getUserInfosCount();\n }", "@SuppressWarnings(\"deprecation\")\r\n\tprivate int countEntities(){\r\n\t\tQuery query = new Query(\"UserProfile\");\r\n\t\treturn datastore.prepare(query).countEntities();\r\n\t}", "int getInfoCount();", "int getInfoCount();", "int getInfoCount();", "int getItemsCount();", "int getItemsCount();", "int getTaskDetailsCount();", "int getTotalDepositCount();", "public int getUsersCount()\n\t{\n\t\tint usersCount=(int) userDao.count();\n\t\treturn usersCount;\n\t}", "int getStatsCount();", "int getStatsCount();" ]
[ "0.72243303", "0.72243303", "0.6473703", "0.6473703", "0.6473703", "0.64185417", "0.6355258", "0.62761426", "0.6270311", "0.6270311", "0.6265569", "0.6265569", "0.62596494", "0.6232148", "0.62240493", "0.6162554", "0.61606", "0.6120527", "0.60353196", "0.60353196", "0.59682643", "0.592096", "0.591475", "0.5910468", "0.58117205", "0.57895166", "0.5777863", "0.57776475", "0.57760483", "0.57737505", "0.5773396", "0.57646275", "0.57646275", "0.5756655", "0.5754762", "0.5753552", "0.57522166", "0.57409817", "0.57390344", "0.57312894", "0.5724121", "0.57179236", "0.5707406", "0.5697845", "0.56920785", "0.5679669", "0.56740016", "0.56608856", "0.56585616", "0.56504226", "0.5642587", "0.5641548", "0.5638666", "0.5635454", "0.5625771", "0.56170344", "0.5601246", "0.55881554", "0.558292", "0.55736065", "0.5573544", "0.5566607", "0.5563018", "0.5563018", "0.5561872", "0.5557534", "0.5554885", "0.55468035", "0.5542053", "0.5542053", "0.5542053", "0.55415106", "0.55415106", "0.55415106", "0.5538183", "0.5533314", "0.5532303", "0.5515986", "0.5511316", "0.55105066", "0.55065155", "0.5505108", "0.5492969", "0.5486146", "0.5482975", "0.5482741", "0.54789996", "0.5469954", "0.5464948", "0.5458507", "0.54551166", "0.54551166", "0.54551166", "0.54475224", "0.54475224", "0.54471624", "0.54438967", "0.543549", "0.54344857", "0.54344857" ]
0.73455596
0
Validate if email already exists
void validate(String email);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean checkEmailAlready(String email);", "boolean isEmailExist(String email);", "private void emailExistCheck() {\n usernameFromEmail(email.getText().toString());\n }", "private boolean checkEmail() throws IOException {\n String email = getEmail.getText();\n \n if(email.contains(\"@\")) { \n UserDatabase db = new UserDatabase();\n \n if(db.emailExists(email)) {\n errorMessage.setText(\"This email address has already been registered.\");\n return false;\n }\n \n return true;\n }\n else {\n errorMessage.setText(\"Please enter a valid email. This email will be \"+\n \"used for verification and account retrieval.\");\n return false;\n }\n }", "@Override\n\tpublic void checkDuplicateEmail(String email){\n\t\tif(userRepository.getUserByEmail(email) != null)\n\t\t\tthrow new BookException(HttpStatus.NOT_ACCEPTABLE,\"Email already exist\");\n\t}", "public static boolean emailAlreadyExists(String email) throws ParseException {\n ParseQuery<TipperUser> query = ParseQuery.getQuery(\"TipperUser\");\n query.whereEqualTo(\"email\", email);\n List<TipperUser> result = query.find();\n if (result.isEmpty()) {\n return false;\n } else return true;\n }", "@Override\n public boolean isUserEmailExists(String email) {\n User user = getUserByEmail(email);\n return user != null && user.getEmail() != null && !user.getEmail().equals(\"\");\n }", "public boolean checkThisEmailAlreadyExist(String email) {\n\t\tquery = \"select id from guru where email=?\";\n\t\tList<GuruModel> list = this.jdbcTemplate.query(query,new Object[]{email},BeanPropertyRowMapper.newInstance(GuruModel.class));\n\t\t\n\t\tif(list.size() == 0)\n\t\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public Boolean checkEmail(String email){\n return databaseManager.CheckIsDataAlreadyInDBorNot(email);\n }", "public boolean checkIfEmailExist(String email){\n // create query to get user with asked email\n TypedQuery<UsersEntity> findUser = entityManager.createQuery(\n \"SELECT user FROM UsersEntity user WHERE user.email=:email\",\n UsersEntity.class);\n\n // set query email parameter\n findUser.setParameter(\"email\", email);\n\n try {\n findUser.getSingleResult();\n FacesMessage msg = new FacesMessage(\"User: \" + email + \" - already exist\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n return true;\n } catch (NoResultException e) {\n return false;\n }\n }", "boolean existsByEmail(String email);", "public boolean existsByEmail(String email);", "public boolean existsByEmail(String email);", "boolean checkEmailExistsForClient(String email) throws RuntimeException;", "public boolean isEmailValid(String email) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tQuery query=session.createQuery(\"from Customer where email=?\");\n\t\tquery.setString(0, email);\t\n\t\tCustomer customer=(Customer)query.uniqueResult();\n\t\tif(customer!=null)//duplicate email address, invalid\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t\t\n\t}", "private boolean isEmailValid(String email) {\n return true;\r\n }", "@RequestMapping(value = \"/signup/validateEmail\", method = RequestMethod.POST)\n @ResponseBody\n public SPResponse validateEmail(@RequestParam String email) {\n SPResponse spResponse = new SPResponse();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"The email to validate :\" + email);\n }\n // validate the email\n User user = userRepository.findByEmail(email); // signupForm.getEmail()\n if (user != null) {\n spResponse.addError(\"Duplicate_Email\",\n MessagesHelper.getMessage(\"exception.duplicateEmail.signup\"));\n } else {\n spResponse.isSuccess();\n }\n return spResponse;\n }", "public boolean validateEmail() {\n\t\tString emailString = emailValidity.getText();\n\t\tString errorMsg = \"Email in use.\";\n\t\tboolean result = emailString.contains(errorMsg);\n\t\tif (result) {\n\t\t\tstoreVerificationResults(true, \"Email in use\");\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tstoreVerificationResults(false, \"User able to reuse email id\");\n\t\t}\n\t\treturn result;\n\t}", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean check_email_available(String email) {\n // Search the database for this email address\n User test = UserDB.search(email);\n // If the email doesn't exist user will be null so return true\n return test == null;\n }", "boolean isValidEmail(String email){\n boolean ValidEmail = !email.isEmpty() && Patterns.EMAIL_ADDRESS.matcher(email).matches();\n if(!ValidEmail){\n userEmail.setError(\"please fill this field correctly\");\n return false;\n }\n return true;\n }", "boolean isEmailRequired();", "public boolean isRegisteredEmail(String email);", "public Boolean existsByEmail(String email);", "@Override\n public boolean isUserAlreadyExist(String email) throws UserException {\n User user;\n\n if (email == null || email.equals(\"\")) {\n logger.error(\"invalid user id: \" + email);\n return false;\n }\n try {\n user = userDAO.getUserById(email);\n return user != null;\n } catch (UserException e) {\n e.printStackTrace();\n logger.error(\"failed to delete a user with id: \" + email);\n return false;\n }\n }", "public boolean checaExisteEmail(String email){\r\n\t\tfor (Usuario UsuarioTemp : listaDeUsuarios) {\r\n\t\t\tif(UsuarioTemp.getEmail().equals(email)){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn false;\r\n\t}", "public boolean checkUser(String email) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"email\", email);\r\n\r\n // Returns whether at least one user with the given email exists\r\n return users.countDocuments(query) > 0;\r\n }", "boolean validateEmail(String email) {\n\t\treturn true;\n\n\t}", "boolean emailExistant(String email, int id) throws BusinessException;", "public boolean checkEmail(TextField email) {\n String emailSQL = \"SELECT * FROM user WHERE email = ?\";\n ResultSet rsEmail;\n boolean email_exists = false;\n\n\n try {\n\n PreparedStatement emailPST = connection.prepareStatement(emailSQL);\n emailPST.setString(1, email.getText());\n rsEmail = emailPST.executeQuery();\n\n if (rsEmail.next()) {\n email_exists = true;\n outputText.setStyle(\"-fx-text-fill: #d33232\");\n outputText.setText(\"Email Already Used\");\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n return email_exists;\n\n }", "public boolean checkEmail() {\n return !this.emailAddress.isEmpty() && validEmail(this.emailAddress);\n }", "@Override\r\n\tpublic int emailcheck(String email) {\n\t\treturn dao.idcheck(email);\r\n\t}", "public static boolean email(String email) throws UserRegistrationException {\n\t\tboolean resultEmail = validateEmail.validator(email);\n\t\tif(true) {\n\t\t\treturn Pattern.matches(patternEmail, email);\n\t\t}else\n\t\t\tthrow new UserRegistrationException(\"Enter correct Email\");\n\t}", "public String checkEmail() {\n String email = \"\"; // Create email\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n email = checkEmpty(\"Email\"); // Call method to check input of email\n // Pattern for email\n String emailRegex = \"^[a-zA-Z0-9_+&*-]+(?:\\\\.\" + \"[a-zA-Z0-9_+&*-]+)*@\"\n + \"(?:[a-zA-Z0-9-]+\\\\.)+[a-z\" + \"A-Z]{2,7}$\";\n boolean isContinue = true; // Condition loop\n\n while (isContinue) {\n // If pattern not match, the print out error\n if (!Pattern.matches(emailRegex, email)) {\n System.out.println(\"Your email invalid!\");\n System.out.print(\"Try another email: \");\n email = checkEmpty(\"Email\");\n } else {\n isContinue = false;\n }\n }\n\n boolean isExist = false; // Check exist email\n for (Account acc : accounts) {\n if (email.equals(acc.getEmail())) {\n // Check email if exist print out error\n System.out.println(\"This email has already existed!\");\n System.out.print(\"Try another email: \");\n isExist = true;\n }\n }\n\n // If email not exist then return email\n if (!isExist) {\n return email;\n }\n }\n return email; // Return email\n }", "public boolean isValidExistingEmail(TextInputLayout tiEmail, EditText etEmail) {\n return (validExistingEmail(tiEmail, etEmail) != null);\n }", "@Override\n\tpublic boolean userExists(String email) {\n\t\treturn (searchIndex(email) >= 0);\n\t}", "public boolean isEmailValid(String email) {\n return true;\n }", "private boolean validateEmail(String email) {\n return Constants.VALID_EMAIL_PATTERN.matcher(email).find();\n }", "private void validateEmail() {\n mEmailValidator.processResult(\n mEmailValidator.apply(binding.registerEmail.getText().toString().trim()),\n this::validatePasswordsMatch,\n result -> binding.registerEmail.setError(\"Please enter a valid Email address.\"));\n }", "@Override\r\n\tpublic int checkEmailDup(String email) {\n\t\treturn mDAO.checkEmailDup(sqlSession, email);\r\n\t}", "public boolean confirmEmail(String email) {\n return database.emailExists(email);\n }", "private boolean isEmailValid(String email) {\n return email.equals(\"[email protected]\");\n }", "public boolean validateRegister(String email) {\n\t\tLog.i(TAG, \"validate current user whether exisits in db\");\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString val = \"select * from \" + TABLE_USER\n\t\t\t\t+ \" where email='\" + email + \"'\";\n\t\tCursor cursor = db.rawQuery(val, null);\n\t\tcursor.moveToFirst();\n\t\tif (cursor.isAfterLast()) return true;\n\t\treturn false;\n\t}", "public boolean emailAlreadyUsed(String email){\n \n StringBuilder query = new StringBuilder();\n \n query.append(\"SELECT id FROM userr WHERE email ='\");\n query.append(email);\n query.append(\"';\");\n \n try{\n PreparedStatement sql = conn.prepareStatement(query.toString());\n ResultSet results = sql.executeQuery();\n\n while (results.next()){\n return true;\n } \n\n\n } catch (SQLException e){\n e.printStackTrace();\n }\n \n return false;\n \n }", "public boolean isExistingUser(String email){\n Long count = userRepository.countByEmail(email);\n\n return count > 0;\n }", "private boolean isEmailValid(String email) {\n if(Patterns.EMAIL_ADDRESS.matcher(email).matches()){\n\n return true;\n }else {\n return false;\n }\n// return email.contains(\"@\");\n }", "public String checkEmail(String email) {\n\t\t//TODO check passed in email and return it if correct, or an error message if no email exists\n\t\treturn email;\n\t}", "boolean checkEmailExist(String email){\n boolean isEmailExists = false;\n dbConnection();\n try{\n stmt = con.prepareStatement(\"SELECT * FROM users ORDER BY email\");\n rs = stmt.executeQuery();\n while(rs.next()){\n String checkEmail = rs.getString(\"email\");\n if(checkEmail.equals(email)){\n isEmailExists = true;\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n return isEmailExists;\n }", "@Test(priority=1)\n\tpublic void testEmailValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"123@abc\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Please enter a valid email address in the format [email protected].\"));\n\t}", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "public boolean isValidNewEmail(TextInputLayout tiEmail, EditText etEmail) {\n boolean result = isValidEmail(tiEmail, etEmail);\n\n if (result) {\n String email = etEmail.getText().toString().trim();\n UserRepository userRepository = new UserRepository(c.getApplicationContext());\n if (userRepository.getUserByEmail(email) != null) {\n tiEmail.setError(c.getString(R.string.emailExist));\n result = false;\n } else {\n tiEmail.setError(null);\n result = true;\n }\n }\n\n return result;\n }", "@Override\n\tpublic boolean emailisValid(String email) \n\t{\n\t\treturn false;\n\t}", "public boolean checkEmail(String email) {\n\t\t return EMAIL_ADDRESS_PATTERN.matcher(email).matches();\n\t\t}", "@Override\n public boolean isUserEmailExists(String email, String exludeUserName) {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_EMAIL_EXCLUDE_USERNAME);\n params.put(User.PARAM_EMAIL, email);\n params.put(User.PARAM_USERNAME, exludeUserName);\n User user = getRepository().getEntity(User.class, params);\n\n return user != null && user.getEmail() != null && !user.getEmail().equals(\"\");\n }", "private boolean isEmailValid(String email) {\n //TODO: Replace this with your own logic\n return email.length() > 0;\n }", "static void emailValidation(String email) throws Exception {\n Pattern pattern_email = Pattern.compile(\"^[a-z0-9._-]+@[a-z0-9._-]{2,}\\\\.[a-z]{2,4}$\");\n if (email != null) {\n if (!pattern_email.matcher(email).find()) {\n throw new Exception(\"The value is not a valid email address\");\n }\n } else {\n throw new Exception(\"The email is required\");\n }\n }", "private void validationEmail(String email) throws FormValidationException {\n\t\tif (email != null) {\n\t\t\tif (!email.matches(\"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\")) {\n\t\t\t\tSystem.out.println(\"Merci de saisir une adresse mail valide.\");\n\n\t\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\t\"Merci de saisir une adresse mail valide.\");\n\t\t\t\t// } else if ( groupDao.trouver( email ) != null ) {\n\t\t\t\t// System.out.println(\"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\");\n\t\t\t\t// throw new FormValidationException(\n\t\t\t\t// \"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\"\n\t\t\t\t// );\n\t\t\t}\n\t\t}\n\t}", "private boolean isEmailValid(String email) {\r\n //TODO: Replace this with your own logic\r\n return email.contains(\"@\");\r\n }", "@Test\n\tpublic void emailExistsAuth() {\n\t\tassertTrue(service.emailExists(\"[email protected]\"));\n\t}", "private boolean isEmailValid(String email) {\n return Patterns.EMAIL_ADDRESS.matcher(email).matches();\n }", "private boolean isEmailValid(String email) {\n return Patterns.EMAIL_ADDRESS.matcher(email).matches();\n }", "boolean hasUserEmail();", "public boolean emailValidate(final String email) {\n\n\t\tmatcher = pattern.matcher(email);\n\t\treturn matcher.matches();\n\n\t}", "private boolean isEmailValid(String email){\n return email.contains(\"@\");\n }", "public boolean existeEmail(String email) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.email = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, email);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "public boolean checkEmail(String email){\r\n boolean check = true;\r\n if(!email.matches(\"^[a-zA-Z0-9]+@[a-zA-Z0-9]+(.[a-zA-Z]{2,})$\")){\r\n check = false;\r\n }\r\n return check;\r\n }", "public static boolean checkEmail(String email) {\r\n\t\tboolean result = false;\r\n\t\tif (check(email) && email.matches(CommandParameter.REG_EXP_EMAIL)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private boolean isExistUserEmail(String email, String userId) {\n User user = userService.findByEmailAndStatus(email, Constant.Status.ACTIVE.getValue());\n if (user != null && !user.getUserId().equals(userId)) {\n return true;\n }\n return false;\n }", "private void checkValidEmail(String email) throws ValidationException {\n String emailRegex = \"^[\\\\w-_\\\\.+]*[\\\\w-_\\\\.]\\\\@([\\\\w]+\\\\.)+[\\\\w]+[\\\\w]$\";\n if (!email.matches(emailRegex)) {\n throw new ValidationException(\"Incorrect email format\");\n }\n }", "private boolean isEmailValid(String email) {\n //TODO: Replace this with your own logic\n return email.contains(\"@\");\n }", "@Test\r\n\tpublic void TC_08_verify_Existing_Email_Address() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with valid email address already taken\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding already registered\r\n\t\t//email address is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Username already taken.\");\r\n\r\n\t}" ]
[ "0.8230258", "0.786987", "0.77786076", "0.7756605", "0.75286037", "0.7517753", "0.7439025", "0.74064237", "0.7355788", "0.73499066", "0.7234906", "0.71731144", "0.71731144", "0.7171998", "0.7147193", "0.7129155", "0.71109337", "0.71010405", "0.7054076", "0.7054076", "0.7054076", "0.7054076", "0.7054076", "0.70245624", "0.70245624", "0.70245624", "0.70245624", "0.702003", "0.70194227", "0.7014696", "0.7002589", "0.69900715", "0.6971725", "0.6949357", "0.6929496", "0.6922243", "0.69122976", "0.68915427", "0.68866575", "0.6886421", "0.687592", "0.68584025", "0.68412554", "0.68279254", "0.6821069", "0.68004686", "0.6792911", "0.676723", "0.6764522", "0.6760243", "0.6753635", "0.67534316", "0.67384464", "0.6731334", "0.6716785", "0.67119014", "0.6711431", "0.6708112", "0.6708112", "0.6708112", "0.6708112", "0.6689054", "0.66819906", "0.667418", "0.6665798", "0.66624546", "0.66495544", "0.6645353", "0.664089", "0.6637788", "0.6630481", "0.6630481", "0.66288763", "0.66198254", "0.6616766", "0.6615145", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.6601919", "0.65963066", "0.6592633", "0.658956", "0.6580938", "0.65796", "0.6567501" ]
0.7065444
18
Activate an user that comes from email activation link
void activateUser(String email, String activationToken);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RegisterConfirmedPage activateAccount(String email) {\r\n\t\tactiveRailwayAccount(email);\r\n\r\n\t\t/*\r\n\t\t * this.clickLinkEmail(_activateSubject, email); \r\n\t\t * // Switch tab chrome ---------\r\n\t\t * ArrayList<String> arr = new\r\n\t\t * ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\t * Constant.WEBDRIVER.switchTo().window(arr.get(1)); // End Switch tab chrome\r\n\t\t * --------- //closeWindow(); //switchWindow();\r\n\t\t */\r\n\r\n\t\tArrayList<String> tabs = new ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\tConstant.WEBDRIVER.switchTo().window(tabs.get(0));\r\n\t\treturn new RegisterConfirmedPage();\r\n\t}", "@Override\n\tpublic void activeAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"Y\");\n\t\tsaveDtls(userModel);\n\n\t}", "public ModelAndView activateAccount(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\r\n\t\tInstAdminRegistrationInfo input = new InstAdminRegistrationInfo();\r\n HttpSession session = request.getSession(true);\r\n\t\t\r\n input.setUserId(request.getParameter(\"userId\"));\r\n input.setInstituteName(request.getParameter(\"instituteName\"));\r\n input.setInstituteNickName(request.getParameter(\"instituteNickName\"));\r\n input.setCity(request.getParameter(\"city\"));\r\n input.setState(request.getParameter(\"state\"));\r\n input.setCountry(request.getParameter(\"country\"));\r\n input.setPrimaryEmailId(request.getParameter(\"adminEmail\"));\r\n int i = instAdminRegistrationDAO.updateRequestStatus(input);\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ModelAndView(\"sendpassword/accountInfo\", \"info\",\r\n\t\t\t\t\t\"Account request confirmed successfully.\");\r\n\t\t} else {\r\n\t\t\treturn new ModelAndView(\"sendpassword/accountInfo\", \"info\",\r\n\t\t\t\t\t\"Page Expired.\");\r\n\t\t}\r\n\t}", "boolean activateAccount(Integer userId);", "HttpStatus activateUserAccount(final String username);", "public void activateUser(User user) {\n activeUsers.putIfAbsent(user.getUsername(), user);\n }", "@Override\n\t\tpublic void onLoginNeedEmailActive(String email, String mailHostUrl) {\n\t\t\tmLoginPending = false;\n\t\t\tcloseLoginDialog();\n\t\t\tif(TextUtils.isEmpty(mailHostUrl)){\n\t\t\t\tString mailUrl=mAccountEdit.getText().toString();\n\t\t\t\tint seperatorPosition = mailUrl.indexOf(\"@\");\n\t\t\t\tmailHostUrl=AddAccountsUtils.MAIL_HEAD+mailUrl.substring(seperatorPosition+1,mailUrl.length());\n\t\t\t}\n\t\t\tAddAccountsUtils.setEmailUrl(mContext, mailHostUrl);// 打开激活邮箱页面\n\t\t\tAddAccountsUtils.setEmailName(mContext, email);\n\t\t\tmLoginErrorDialog=AddAccountsUtils.showErrorDialog(mContext,LoginView.this,AddAccountsUtils.VALUE_DIALOG_LOGIN,ErrorCode.ERR_TYPE_APP_ERROR,ErrorCode.ERR_CODE_EAMIL_NEED_ACTIVE, \"\");\n\t\t}", "@And(\"^I goto Activation Page$\")\r\n\t\r\n\tpublic void I_goto_Activation_Page() throws Exception {\r\n\t\t\r\n\t\tenduser.click_activationTab();\r\n\t\t\r\n\t}", "public Optional<User> activateRegistration(String key) {\n\t\tlog.debug(\"Activating user for activation key {}\", key);\n\t\tuserRepository.findOneByActivationKey(key).map(user -> {\n\t\t\t// activate given user for the registration key.\n\t\t\t\tuser.setActivated(true);\n\t\t\t\tuser.setActivationKey(null);\n\t\t\t\tuserRepository.save(user);\n\t\t\t\tlog.debug(\"Activated user: {}\", user);\n\t\t\t\treturn user;\n\t\t\t});\n\t\treturn Optional.empty();\n\t}", "@Override\n public boolean isUserActiveByEmail(String email) {\n User user = getUserByEmail(email);\n if (user != null) {\n return user.isActive();\n }\n return false;\n }", "@RequestMapping(\"activate/{id}\")\n\tpublic String activate(@PathVariable(\"id\") String id) {\n\t\tCustomer user = customerService.get(id);\n\t\tuser.setActivated(true);\n\t\tcustomerService.update(user);\n\t\treturn \"redirect:/account/login.php\";\n\t}", "public void setActiveUser(String email, boolean active) {\n\t\tUser user = repo.getUserByEmail(email, true);\n\t\t\n\t\tif(user == null) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.NOT_FOUND, \"El mail ingresado no corresponde con ningún usuario resgistrado.\");\n\t\t}\n\t\t\n\t\tuser.setActive(active);\n\t\trepo.updateUser(user);\n\t}", "@RequestMapping(value = \"account/activate/{activationCode}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<UserResponseDto> userActivation(@PathVariable String activationCode) {\n\t\tUserResponseDto actiavtionResponse = new UserResponseDto();\n\t\tCoreUser user = null;\n\t\ttry {\n\t\t\tif (activationCode == null) {\n\t\t\t\tactiavtionResponse.setMessage(ApiConstants.INVALID_ACTIVATION_CODE);\n\t\t\t}\n\t\t\tuser = coreUserService.findByActivationCode(activationCode);\n\t\t\tif (user == null) {\n\t\t\t\tactiavtionResponse.setMessage(ApiConstants.NO_ACCOUNT_TO_ACTIVATE);\n\t\t\t}\n\t\t\tif (user.getActivationStatus().equals(ApiConstants.ADMIN_APPROVED)) {\n\t\t\t\tactiavtionResponse.setMessage(ApiConstants.ALREADY_ACTIVATED_ACCOUNT);\n\t\t\t} else {\n\t\t\t\tuser.setActivatedDate(new Date());\n\t\t\t\tuser.setActivationStatus(ApiConstants.ADMIN_APPROVED);\n\t\t\t\tcoreUserService.update(user);\n\t\t\t actiavtionResponse.setMessage(ApiConstants.ACCOUNT_ACTIAVAED);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tactiavtionResponse.setMessage(ApiConstants.ACTIVATION_FAILED);\n\t\t}\n\n\t\treturn new ResponseEntity<UserResponseDto>(actiavtionResponse, HttpStatus.OK);\n\t}", "public void activation(String activationId) throws Exception {\n\t\tcollection = mongoTemplate.getCollection(ACCOUNT);\n\t\tBasicDBObject activateAccount = new BasicDBObject();\n\t\tactivateAccount.append(\"$set\",\n\t\t\t\tnew BasicDBObject().append(\"status\", true));\n\t\tBasicDBObject searchQuery = new BasicDBObject().append(\"activationId\",\n\t\t\t\tactivationId);\n\t\tcollection.update(searchQuery, activateAccount);\n\t}", "private void sendEmailVerification() {\n final FirebaseUser user = mAuth.getCurrentUser();\n user.sendEmailVerification()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // [START_EXCLUDE]\n // Re-enable button\n\n if (task.isSuccessful()) {\n Toast.makeText(LoginCombActivity.this,\n \"Verification email sent to \" + user.getEmail(),\n Toast.LENGTH_SHORT).show();\n } else {\n Log.e(TAG, \"sendEmailVerification\", task.getException());\n Toast.makeText(LoginCombActivity.this,\n \"Failed to send verification email.\",\n Toast.LENGTH_SHORT).show();\n }\n // [END_EXCLUDE]\n }\n });\n // [END send_email_verification]\n }", "@Override\r\n\tpublic RemoteResult activateIMUser(String userName) {\n\t\treturn null;\r\n\t}", "@Action(value = \"user_active\", results = {@Result(name = \"active\", location = \"/WEB-INF/jsp/msg.jsp\")})\n public String active() {\n\n User exsitUser = userService.active(user.getCode());\n\n if (exsitUser == null) {\n\n this.addActionMessage(\"激活失败,验证码无效!\");\n\n } else {\n\n exsitUser.setState(1);\n exsitUser.setCode(null);\n userService.updateState(exsitUser);\n this.addActionMessage(\"激活成功,请登录!\");\n }\n\n return \"active\";\n }", "@RequestMapping(value = \"/activate/{key}\", method = RequestMethod.GET)\n public final String activate(@PathVariable(\"key\") final String key,\n final ModelMap modelMap) {\n\n final boolean status = userDetailsService.activateUser(key);\n\n if (!status) {\n modelMap.put(\"error\", true);\n }\n\n return \"activate\";\n }", "@Override\r\n\tpublic void processActivate(String username, String validateCode) throws ParseException, ServiceException {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tUser user=userDao.findUserByLoginName(username); \r\n //验证用户是否存在 \r\n if(user!=null) { \r\n //验证用户激活状态 \r\n if(user.getStatus()==0) { \r\n ///没激活 \r\n Date currentTime = new Date();//获取当前时间 \r\n Date registerTime = user.getRegisterTime();\r\n Date d1 =dateFormat.parse(dateFormat.format(currentTime));\r\n Date d2 =dateFormat.parse(dateFormat.format(registerTime));\r\n long diff = d1.getTime() - d2.getTime();\r\n long days = diff / (1000 * 60 * 60 * 24); \r\n long hours = (diff-days*(1000 * 60 * 60 * 24))/(1000* 60 * 60); \r\n long minutes = (diff-days*(1000 * 60 * 60 * 24)-hours*(1000* 60 * 60))/(1000* 60); \r\n //验证链接是否过期 \r\n if(minutes < 15) { \r\n //验证激活码是否正确 \r\n if(validateCode.equals(user.getValidateCode())) { \r\n //激活成功, //并更新用户的激活状态,为已激活 \r\n \tlogger.info(\"==sq===\"+user.getStatus()); \r\n user.setStatus(1);//把状态改为激活 \r\n logger.info(\"==sh===\"+user.getStatus()); \r\n userDao.updateByPrimaryKey(user);\r\n } else { \r\n throw new ServiceException(\"激活码不正确\"); \r\n } \r\n } else { throw new ServiceException(\"激活码已过期!\"); \r\n } \r\n } else { \r\n throw new ServiceException(\"邮箱已激活,请登录!\"); \r\n } \r\n } else { \r\n throw new ServiceException(\"该邮箱未注册(邮箱地址不存在)!\"); \r\n } \r\n\t}", "@Override\r\n public void onClick(View v) {\n String email = editTextEmail.getText().toString().trim();\r\n String password = editTextPassword.getText().toString().trim();\r\n //predefined users\r\n User admin = new User(\"admin2\",\"admin2\",\"admin2\");\r\n User testuser1 = new User(\"testuser1\",\"testuser1\",\"testuser1\");\r\n db.insert(admin);\r\n db.insert(testuser1);\r\n //getting user from login\r\n User user = db.getUser(email, password);\r\n\r\n //checking if there is a user\r\n if (user != null) {\r\n Intent i = new Intent(MainActivity.this, HomeActivity.class);\r\n i.putExtra(ACTIVE_USER_KEY, user);\r\n startActivity(i);\r\n //finish();\r\n }else{\r\n Toast.makeText(MainActivity.this, \"Unregistered user, or incorrect password\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "private void showHome(String user){\n\n Intent home = new Intent(this, HomeActivity.class);\n home.putExtra(\"email\", user);\n startActivity(home);\n\n }", "void updateActivationCode(User user) ;", "public void enterAgentEmailAddressInYopmail(String aEmail) throws Exception {\n\t\twdriver.findElement(By.id(\"login\")).click();\n\t\twdriver.findElement(By.id(\"login\")).clear();\n\t\twdriver.findElement(By.id(\"login\")).sendKeys(aEmail);\n\t\twdriver.findElement(By.cssSelector(\"input.sbut\")).click();\n\n\t}", "@Override\n public void onAuthenticated(AuthData authData) {\n Intent intent = new Intent(getApplicationContext(), ActiveUserActivity.class);\n startActivity(intent);\n }", "public final void activateAccount() {\n\t\tthis.setIsAccountLocked(false);\n\t}", "public void activate() {\n\t\tactivated = true;\n\t}", "@Override\n public void onClick(View arg0) {\n Intent email = new Intent(getApplicationContext(), email.class);\n startActivity(email);\n }", "public void activate() { \r\n // Notify ActivationListeners\r\n \tSipApplicationSessionEvent event = null;\r\n Set<String> keySet = sipApplicationSessionAttributeMap.keySet();\r\n for (String key : keySet) {\r\n \tObject attribute = sipApplicationSessionAttributeMap.get(key);\r\n if (attribute instanceof SipApplicationSessionActivationListener) {\r\n if (event == null)\r\n event = new SipApplicationSessionEvent(this);\r\n try {\r\n ((SipApplicationSessionActivationListener)attribute)\r\n .sessionDidActivate(event);\r\n } catch (Throwable t) {\r\n logger.error(\"SipApplicationSessionActivationListener threw exception\", t);\r\n }\r\n }\r\n \t\t}\r\n }", "@Override\n public void onSuccess(AuthResult authResult) {\n if(!mAuth.getCurrentUser().isEmailVerified()){\n PopupEmailVerification popupEmailVerification = new PopupEmailVerification(StartPage.this);\n popupEmailVerification.show();\n }\n else{\n //User found & ready for next page\n Toast.makeText(StartPage.this, \"Sign in successful\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(StartPage.this, CenterPage.class));\n finish();\n }\n\n }", "void updateUserActivateStatus(User user, int newStatus);", "public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}", "Boolean accountIsActivated(Integer userId);", "private void sendEmailVerification() {\n showProgressDialog();\n\n // [START send_email_verification]\n final FirebaseUser user = mAuth.getCurrentUser();\n assert user != null;\n user.sendEmailVerification()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // [START_EXCLUDE]\n // Re-enable button\n if (task.isSuccessful()) {\n Toast.makeText(getApplicationContext(),\n \"Verification email sent to \" + user.getEmail(),\n Toast.LENGTH_SHORT).show();\n } else {\n Log.e(TAG, \"sendEmailVerification\", task.getException());\n Toast.makeText(getApplicationContext(),\n \"Failed to send verification email.\",\n Toast.LENGTH_SHORT).show();\n }\n hideProgressDialog();\n // [END_EXCLUDE]\n }\n });\n // [END send_email_verification]\n }", "public void userSignup(String email_addr, String user_pw){\n\n String uuid_str = UUID.randomUUID().toString().replaceAll(\"-\", \"\");\n uuid_str = uuid_str.substring(0, 5);\n int uuid = Integer.parseInt(uuid_str);\n UserProfile new_user = new UserProfile(uuid, email_addr, user_pw);\n userDataAccessService.storeUserInfo(new_user.getUser_id(), new_user.getEmail_addr(), new_user.getUser_pw());\n\n }", "private void c_Activate(String name, boolean activate) {\r\n if(m_active = activate) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Reacting to players who fly over safety tiles.\");\r\n } else {\r\n m_botAction.sendSmartPrivateMessage(name, \"NOT Reacting to players who fly over safety tiles.\");\r\n }\r\n }", "private void sendEmailVerification(){\n FirebaseUser firebaseUser = mfirebaseAuth.getCurrentUser();\n if(firebaseUser!=null){\n firebaseUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(SignUpActivity.this, \"Successfully Registered, Verification E-mail sent!\", Toast.LENGTH_SHORT).show();\n mfirebaseAuth.signOut();\n finish();\n startActivity(new Intent(SignUpActivity.this, LoginActivity.class));\n }else {\n Toast.makeText(SignUpActivity.this, \"Verification email could not be sent, please try again later\", Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n\n }", "public void clickOnContinueAsGuestUserLink()\n \t{\n \t\tproductRequirementsPageLocators.continueAsGuestUserLIink.click();\n\n \t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), SignupActivity.class);\n intent.putExtra(SignupActivity.EXTRA_TYPEUSER, Constants.flowSignupUser);\n User u = new User(); u.setEmail(text_email.getText().toString()); u.setPassword(text_password.getText().toString());\n intent.putExtra(SignupActivity.LOGIN_PARAMS,u );\n startActivityForResult(intent, Constants.REQUEST_SIGNUP);\n }", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "public void onClick_AGSU_signUp(View view) {\n AnimationTools.startLoadingAnimation(Constants.ANIMATION_CODE_AGSU_LOADING, this, signUpButton_rootLayout, R.style.AGSU_loading_progress_bar);\n\n FirestoreManager.saveUserData(SecondarySignUpManager.getDatabaseUser());\n\n //add a password-email auth method\n AuthCredential credential = EmailAuthProvider.getCredential(SecondarySignUpManager.getDatabaseUser().getEmail(), SecondarySignUpManager.getDatabaseUser().getPassword());\n AuthenticationManager.getCurrentUser().linkWithCredential(credential).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n System.out.println(\"[Neuron.SecondarySignUpActivity.onClick_AGSU_signUp]: link with email credential SUCCESSFUL! User uid = \" + task.getResult().getUser().getDisplayName());\n Constants.isSignUpInProcess = false; //sign up is now finished\n\n //in AGSU user is always new --> send verification email\n EmailVerification.sendVerificationEmail();\n\n Constants.isSecondarySignUpInProcess = false; //end of secondary sign up process\n\n ActivityTools.startNewActivity(activityContext, MainActivity.class);\n } else {\n System.err.println(\"[Neuron.SecondarySignUpActivity.onClick_AGSU_signUp]: ERROR: link with email credential FAILED! \" + task.getException().getMessage());\n }\n\n AnimationTools.stopLoadingAnimation(Constants.ANIMATION_CODE_AGSU_LOADING);\n }\n });\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n Intent intent = new Intent(this, HomePage.class);\n intent.putExtra(\"USER_EMAIL\", email);\n startActivity(intent);\n finish();\n return true;\n }\n return true;\n }", "public void authenticateemail(final String email, final String pass){\n\n mAuth2.createUserWithEmailAndPassword(email, pass)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(\"MAIN\", \"createUserWithEmail:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n linking(email,pass);\n //Log.d(\"MAIN\", \"yupyup\"+user.getUid());\n\n } else {\n // If sign in fails, display a message to the user.\n Log.w(\"MAIN\", \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(otherinfoActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n\n }", "@Override\n public void restoreUserPassword(String email) {\n User user = getUserByEmail(email);\n if (user == null || StringUtility.isEmpty(user.getEmail()) || !user.isActive()) {\n return;\n }\n\n String code = UUID.randomUUID().toString();\n\n user.setActivationCode(code);\n user.setEntityAction(EntityAction.UPDATE);\n getRepository().saveEntity(user);\n\n // Send email\n if (systemEJB.isEmailServiceEnabled() && !StringUtility.isEmpty(user.getEmail())) {\n String msgBody = systemEJB.getSetting(ConfigConstants.EMAIL_MSG_PASSWD_RESTORE_BODY, \"\");\n String msgSubject = systemEJB.getSetting(ConfigConstants.EMAIL_MSG_PASSWD_RESTORE_SUBJECT, \"\");\n String restoreUrl = StringUtility.empty(LocalInfo.getBaseUrl()) + \"/user/pwdrestore.xhtml?code=\" + code;\n\n msgBody = msgBody.replace(EmailVariables.FULL_USER_NAME, user.getFirstName());\n msgBody = msgBody.replace(EmailVariables.PASSWORD_RESTORE_LINK, restoreUrl);\n\n systemEJB.sendEmail(user.getFullName(), user.getEmail(), msgBody, msgSubject);\n }\n }", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public User getUserByActivationCode(String activationCode) throws UserManagementException;", "public void activate();", "public void enterAgentEmailAddress(String aEmail) throws Exception {\n\n\t\twdriver.findElement(By.xpath(locators.enterAgentEmail)).click();\n\t\twdriver.findElement(By.xpath(locators.enterAgentEmail)).clear();\n\t\twdriver.findElement(By.xpath(locators.enterAgentEmail)).sendKeys(aEmail);\n\t}", "public void activate(){\r\n\r\n\t}", "public void activate()\n {\n }", "@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }", "private void byPassLogin(String email) {\n User user = new User(123, email, Grade.A, 100, 9999991, 50f, 25f);\n Login(user);\n }", "public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}", "private void registerByEmail() {\n\n String username = editUsername.getText().toString();\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n AVUser person = new AVUser();\n person.setUsername(username);\n person.setEmail(email);\n person.setPassword(password);\n person.put(Person.NICK_NAME,username);\n\n person.signUpInBackground(new SignUpCallback() {\n @Override\n public void done(AVException e) {\n if (e == null) {\n ShowMessageUtil.tosatFast(\"register successful!\", EmailRegisterActivity.this);\n openValidateDialog();\n } else {\n ShowMessageUtil.tosatSlow(\"fail to register:\" + e.getMessage(), EmailRegisterActivity.this);\n }\n }\n });\n }", "public void openExplicitIntent(View view) {\n // start the email activity\n Intent intent = new Intent(this, OpenExplicitIntent.class);\n startActivityForResult(intent, EMAIL_ACTIVITY_RESULT_CODE);\n }", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "@Override\n public void onClick(View v) {\n if (isEmailValid(inputEmail.getText().toString())) {\n if(inputPass.getText().toString().equals(inputPassConfirm.getText().toString())) {\n // Open next page of registration\n try {\n Intent i = new Intent(mContext, RegisterFinalActivity.class);\n i.putExtra(\"email\", inputEmail.getText().toString());\n i.putExtra(\"pass\", inputPass.getText().toString());\n mContext.startActivity(i);\n } catch (Exception e) {\n Log.i(\"Not found\", Arrays.toString(e.getStackTrace()));\n }\n } else {\n runOnUiThread(() -> {\n Toast toast = Toast.makeText(getApplicationContext(), \"Parolele introduse nu coincid!\", Toast.LENGTH_LONG);\n toast.show();\n });\n }\n } else {\n runOnUiThread(() -> {\n Toast toast = Toast.makeText(getApplicationContext(), \"Email-ul introdus nu este corespunzător!\", Toast.LENGTH_LONG);\n toast.show();\n });\n }\n }", "private void startEmailActivity(String email, String subject, String text) {\n try {\n StringBuilder builder = new StringBuilder();\n builder.append(\"mailto:\");\n builder.append(email);\n\n Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse(builder.toString()));\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, text);\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n } catch (ActivityNotFoundException e) {\n // can't start activity\n }\n }", "@Transactional\n\t@RequestMapping(value = \"/verification/{hash}\", method = RequestMethod.GET)\n\tpublic RedirectView emailVerification(@PathVariable(value = \"hash\") String hashKey) {\n\t\tRedirectView redirectView = new RedirectView();\n\t\t// Stores in userId the hash's corresponding user's ID.\n\t\tOptional<Hash> hashOpt = hashRepository.findById(hashKey);\n\t\tHash hash = hashOpt.get();\n\t\t// Handles the case in which there's no user ID corresponding to the hash\n\t\tif (hash != null) {\n\t\t\t// Selects the user based on its ID \n\t\t\t// inserts it into the database and deletes its hash\n\t\t\tOptional<User> x = userRepository.findById(hash.getUserId());\n\t\t\tUser user = x.get();\n\t\t\tif (user != null) {\n\t\t\t\thashRepository.delete(hash);\n\t\t\t\tuser.setStatus(\"Approved\");\n\t\t\t\tuserRepository.save(user);\n\t\t\t}\n\t\t\t\n\t\t redirectView.setUrl(\"http://localhost:8082/login?activated\");\n\t\t return redirectView;\n\t\t} else {\n\t\t\tredirectView.setUrl(\"www.yahoo.com\");\n\t\t\treturn redirectView;\n\t\t}\n\t}", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (!task.isSuccessful()) {\n //Log.d(\"Memorization Game\", \"Problem signing in: \" + task.getException());\n showErrorDialog(\"There was a problem signing in\");\n } else {\n //SharedPreferences mpreference = getSharedPreferences(\"user_email\", Context.MODE_PRIVATE);\n //mpreference.edit().putString(\"email\",email).apply();\n Intent intent = new Intent(Activity_login.this, Home.class);\n finish();\n startActivity(intent);\n }\n\n }", "private void navigateToSuccess(final String email, final String jwt) {\n Navigation.findNavController(getView())\n .navigate(SignInFragmentDirections\n .actionSignInFragmentToMainActivity(email, jwt));\n }", "public void activate(){\n callback.action();\n }", "public static boolean isAccountActive(String email){\n Connection connect = null;\n ResultSet set = null;\n String isAccountActiveSQL = \"SELECT active FROM users WHERE email = ?\";\n\n // Check If Account is Active Try Block:\n try {\n // Set Connection:\n connect = DBConfig.getConnection();\n // Prepare Statement:\n PreparedStatement statement = connect.prepareStatement(isAccountActiveSQL);\n // Set Parameters:\n statement.setString(1, email);\n // Execute Statement:\n set = statement.executeQuery();\n // Check For Result Set:\n while (set.next()){\n // Check Value:\n if(set.getInt(\"active\") == 1) {\n return true;\n }\n // End Of Check Value.\n }\n // End Of Check For Result Set.\n\n }catch(SQLException e){\n e.printStackTrace();\n }\n // End Of Check If Account is Active Try Block:\n\n return false;\n }", "public void verifyUser() {\n\t\toutMessage.setAction(1);\n\t\toutMessage.setObject(this.getUser());\n\t\tmodelCtrl.sendServerMessage(outMessage);\n\t\tinMessage = modelCtrl.getServerResponse();\n\t\t//user is verified\n\t\tif (inMessage.getAction() == 1) {\n\t\t\taccept();\n\t\t}\n\t\t//user is not verified, return to start\n\t\telse {\n\t\t\tSystem.out.println(\"User is not verified\");\n\t\t\tdeny();\n\t\t\t\n\t\t}\n\t}", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n firebaseUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n // make the progressBar invisible\n pd.cancel();\n\n // store the user name\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(\"isNotVerified\",true);\n editor.putString(\"userName\",name_of_user);\n editor.putString(\"userEmail\",emailId);\n editor.putString(\"password\",userPin);\n editor.apply();\n\n // call an intent to the user verification activity\n startActivity(new Intent(LoginActivity.this,\n UserVerificationActivity.class));\n // finish this activity, so that user can't return\n LoginActivity.this.finish();\n }\n });\n\n }", "@PostMapping(\"/activate\")\n public String activate(String uid)\n {\n String returnVal;\n if()\n {\n returnVal = \"uid: \"+ uid + \"\\n\";\n } else\n {\n returnVal = \"uid not found\\n\";\n }\n return returnVal;\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser firebaseUser = firebaseOps.getCurrentFirebaseUser();\n if (firebaseUser.isEmailVerified()) {\n createUserObjectInDatabase(firebaseUser.getUid());\n\n } else {\n Toast.makeText(MainActivity.this, \"Please verify your email first\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "public void authenticateUserEmail(final String email) {\n RequestQueue queue = Volley.newRequestQueue(this);\n String url = \"http://\" + Config.getWebServerURL(this) + \"/exists?email=\"+email;\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n retrieveSecurityQuestions(email);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n txtValidEmail.requestFocus();\n txtValidEmail.setError(\"Email address not found, please try again\");\n }\n }) ;\n queue.add(stringRequest);\n }", "private void attemptLogin() {\n\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n if (email.isEmpty())\n if (email.equals(\"\") || password.equals(\"\")) return;\n Toast.makeText(this, \"Login in progress...\", Toast.LENGTH_SHORT).show();\n\n\n mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n //Log.d(\"Memorization Game\", \"signInWithEmail() onComplete: \" + task.isSuccessful());\n\n if (!task.isSuccessful()) {\n //Log.d(\"Memorization Game\", \"Problem signing in: \" + task.getException());\n showErrorDialog(\"There was a problem signing in\");\n } else {\n //SharedPreferences mpreference = getSharedPreferences(\"user_email\", Context.MODE_PRIVATE);\n //mpreference.edit().putString(\"email\",email).apply();\n Intent intent = new Intent(Activity_login.this, Home.class);\n finish();\n startActivity(intent);\n }\n\n }\n });\n\n\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n //startActivity(new Intent(MainActivity.this, VentanaInicio.class));\n Intent intent = new Intent(getApplicationContext(), VentanaInicio.class);\n\n intent.putExtra(\"string_usuario\", email);\n\n startActivity(intent);\n //finish es para que no pueda volver a la pantalla anterior\n finish();\n }\n //Si no\n else {\n Toast.makeText(MainActivity.this, \"No se pudo iniciar la sesión, compruebe los datos\", Toast.LENGTH_SHORT).show();\n }\n }", "private void verifyActiveUser(){\r\n\t\tif(request.getUserPrincipal() == null)\r\n\t\t{\t\t\r\n\t\t\trequest.getSession().removeAttribute(\"isActive\");\r\n\t\t\trequest.getSession().invalidate();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tresponse.sendRedirect(\"login.jsp\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private static void storeActivation(Context context) {\n\t\t//securely store in shared preference\n\t\tSharedPreferences secureSettings = new SecurePreferences(context);\n\t\tString account = UserEmailFetcher.getEmail(context);\n\n\t\t//update preference\n\t\tSharedPreferences.Editor secureEdit = secureSettings.edit();\n\t\tsecureEdit.putBoolean(account + \"_paid\", true);\n\t\tsecureEdit.apply();\n\t}", "private void sendVerificationEmail(FirebaseUser user) {\n if (user == null) {\n Toast.makeText(LoginActivity.this,\n \"Error occurred. Please try again later.\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n user.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(LoginActivity.this,\n \"Verification email sent!\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(LoginActivity.this,\n \"Email couldn't be sent at this time. Please try again later.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "protected void doActivate() throws FndException\n {\n }", "private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private String sendConfirmationEmail(UserEntity user) {\n try {\n Properties emailAccountProperties = new Properties();\n try {\n emailAccountProperties.load(getClass().getResourceAsStream(\"/registration.properties\"));\n } catch (IOException e) {\n logger.warn(\"Cannot open registration properties file to send email:\", e);\n return null;\n }\n\n final String username = emailAccountProperties.getProperty(\"username\");\n final String password = emailAccountProperties.getProperty(\"password\");\n\n Properties prop = new Properties();\n prop.put(\"mail.smtp.auth\", \"true\");\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(prop, new javax.mail.Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(user.getEmail()));\n message.setSubject(\"Welcome to CityCon!\");\n String reglink = RandomStringUtils.random(30, true, true);\n message.setContent(\"You received this email because you tried to register at <a href=http://citycon.ml>citycon.ml</a>.\" +\n \" Go <a href=http://citycon.ml/registration?reglink=\" + reglink + \">here</a>\" +\n //\" or <a href=http://localhost:8080/registration?reglink=\" + reglink + \"> here </a>\" +\n \" to complete your registration.\" +\n \"<br><br>If you didn't ask for registration, just ignore this message.\" +\n \"<br><br><hr>With love,<br>your CityCon team.\",\n \"text/html; charest=utf-8\");\n Transport.send(message);\n logger.trace(\"Sent reglink {}\", reglink);\n return reglink;\n } catch (MessagingException e) {\n logger.warn(\"Exception during sending email\", e);\n return null;\n }\n } catch (Exception e) {\n logger.warn(\"Unexpected exception\", e);\n return null;\n }\n }", "public boolean activateAccount(String accountNumber) {\r\n\t\treturn setAccountActive(accountNumber, true);\r\n\t}", "@Override\n public void onClick(View v) {\n\n mAuth.sendPasswordResetEmail(email)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(TAG, \"Email sent.\");\n messageDisplay.setText(\"Reset Email Sent Successfully!\");\n Toast.makeText(ForgotPasswordActivity.this, \"Reset Email Sent Successfully!\", Toast.LENGTH_SHORT).show();\n }\n\n else {\n //display some message here\n messageDisplay.setText(\"User Does Not Exist\");\n Toast.makeText(ForgotPasswordActivity.this, \"User Does Not Exist\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public String putNewRefCodeAndSendInvitations(ArrayList<String> validEmails, User user) throws MessagingException {\n\t\tString randomId = SessionIdentifierGenerator.nextSessionId();\n\t\tPreparedStatement pst;\n\t\tEmailHelper emailHelper = new EmailHelper();\n\t\ttry {\n\t\t\t\tfor(int index = 0;index < validEmails.size(); index++){\n\t\t\t\t\tpst = RegDataBaseManager.startDatabaseOperation(INSERT_USER);\n\t\t\t\t\tpst.setString(1, randomId+\"-\"+validEmails.get(index));\n\t\t\t\t\tpst.setString(2, randomId);\n\t\t\t\t\tpst.setString(3, validEmails.get(index));\n\t\t\t\t\tRegDataBaseManager.getDatabaseOprationResult(pst);\n\t\t\t\t\temailHelper.sendInvitationEmail(validEmails.get(index), randomId, user);\n\t\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn randomId;\n\t}", "@Override\n public boolean isEnabled() {\n return user.hasBeenActivated;\n }", "@Override\r\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tString resetUrl = \"#activateacc;uid=\" + user.getRefId();\r\n\t\t\t\tWindow.open(resetUrl, \"Password Reset\", \"\");\r\n\t\t\t}", "public abstract void activate();", "public abstract void activate();", "public void ClickOnUserAgreement() {\n\t\tUserAgreement.click();\n\t}", "public void onSignupSuccess(){\n Toast.makeText(this, \"YEPP\", Toast.LENGTH_SHORT).show();\r\n Intent changetomain = new Intent(RegisterActivity.this, MainAccount.class) ;\r\n startActivity(changetomain);\r\n }", "@OnClick\n public void swapToEmail() {\n RegistrationAnalytics.trackEmailPhoneToggleEvent(getNavigationTrackingTag(), \"email\");\n ((AccountIdentifierRegistrationFragment) getParentFragment()).swapToEmail();\n }", "void loginAttempt(String email, String password);", "boolean hasUserEmail();", "private void checkIfEmailVerified() {\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n\n if (user.isEmailVerified())\n {\n // user is verified, so you can finish this activity or send user to activity which you want.\n Toast.makeText(Login.this, \"Successfully logged in\", Toast.LENGTH_SHORT).show();\n updateDB();\n startActivity(new Intent(Login.this, Home.class));\n finish();\n }\n else\n {\n // email is not verified, so just prompt the message to the user and restart this activity.\n // NOTE: don't forget to log out the user.\n Toast.makeText(Login.this, \"Email Not Verified yet, check your email for verification or sign up\", Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.GONE);\n FirebaseAuth.getInstance().signOut();\n }\n }", "public boolean activate()\n {\n boolean result = super.activate();\n\n // if we cannot activate we want the participant which was registered on behalf of this\n // coordinator to produce a heuristic result for the transaction. it will do this if it\n // finds no entry for the coordinate in the subordinate coordinators list. in this case\n // the subordinate transaction record needs to left as is awaiting manual intervention.\n\n if (result) {\n // record that the activation worked\n setActivated();\n\n int status = status();\n\n if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {\n // we need to install this coordinator in a global table so that the participant which\n // was driving it will know that it has been recovered but not yet committed\n\n SubordinateBACoordinator.addRecoveredCoordinator(this);\n }\n }\n return result;\n }", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "@Test\n public void activateTicket() {\n Ticket ticket = givenTicketInOrderedBilled();\n\n // when\n boolean activateTicket = ticket.activateTicket();\n\n // then\n assertTrue(activateTicket);\n assertTicketInState(ticket, TicketStateType.TICKET_DELIVERED, TransactionStateType.TRANSACTION_BILLED, 6);\n }", "private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyNewUserDetailsactivation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Super User Overlay Yes Button Selection\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes(); \t \t \t \t \n\t}", "public void sendToHome(User user){\n /*If the user name is valid then send to homescreen */\n Intent nextIntent = new Intent(this, Home.class);\n //Send the username and password to the database and then next activity\n nextIntent.putExtra(\"user\", user);\n\n //Start the activity (aka go to the next screen)\n startActivity(nextIntent);\n }", "public void enterEmailInAboutMe(String email) throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.click(fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.clearTextBox(fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.enterValueInTextBox(email,fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.enterKey(Keys.TAB);\r\n\t\r\n\t}", "public JoinNowPage enterEmailID() {\n\t\temail.sendKeys(\"[email protected]\");\n\t\treturn this;\n\t}", "@Override\r\n\tpublic int inviteEmailCheck(String useremail, int projectno) {\n\t\treturn pDao.inviteEmailCheck(useremail, projectno);\r\n\t}", "@Override\n\tpublic void acceptRequest(String userEmail, String senderEmail) {\n\t\tconn = ConnectionFactory.getConnection();\n\n\t\ttry {\n\t\t\tString sql = \"update friendship set status=? where user_id_1=? and user_id_2=?\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\n\t\t\tpstmt.setString(1, Constants.COMPLETED);\n\t\t\tpstmt.setString(2, senderEmail);\n\t\t\tpstmt.setString(3, userEmail);\n\n\t\t\tpstmt.executeUpdate();\n\t\t\t\n\t\t\tsql = \"insert into friendship (user_id_1, user_id_2, status) values (?, ?, ?)\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\n\t\t\tpstmt.setString(1, userEmail);\n\t\t\tpstmt.setString(2, senderEmail);\n\t\t\tpstmt.setString(3, Constants.COMPLETED);\n\n\t\t\tpstmt.executeUpdate();\n\n\t\t} catch(SQLException sqlex) {\n\t\t\tsqlex.printStackTrace();\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionFactory.closeResources(set, pstmt, conn);\n\t\t}\n\t}" ]
[ "0.75631124", "0.68348473", "0.6747749", "0.661662", "0.6536292", "0.6486243", "0.64399445", "0.64288163", "0.63342667", "0.6288605", "0.62694377", "0.62440217", "0.61587113", "0.6131658", "0.6059153", "0.60587", "0.6054185", "0.6050395", "0.6020645", "0.59441996", "0.5937025", "0.59196454", "0.59093374", "0.5907088", "0.58845854", "0.5868511", "0.58042836", "0.57724327", "0.5767188", "0.5761503", "0.5753218", "0.5739925", "0.57392675", "0.57026285", "0.5691322", "0.5647869", "0.5628918", "0.5619765", "0.5603547", "0.55704385", "0.5565677", "0.5560582", "0.554588", "0.5528236", "0.55206424", "0.5510694", "0.5509075", "0.55088896", "0.55078715", "0.5493819", "0.5487305", "0.5474652", "0.5453145", "0.54426867", "0.54395723", "0.5429536", "0.5424175", "0.5420683", "0.54145277", "0.5405957", "0.5399005", "0.53976727", "0.5394915", "0.5392974", "0.53869796", "0.53840894", "0.53680146", "0.5366274", "0.53617513", "0.53562963", "0.5354124", "0.534606", "0.53335387", "0.53218985", "0.53183794", "0.5313375", "0.5305145", "0.5300245", "0.5297991", "0.5287071", "0.5283706", "0.5281912", "0.5277921", "0.5277921", "0.5272961", "0.5269698", "0.5268842", "0.5257502", "0.52550524", "0.52515423", "0.5249817", "0.5247139", "0.52426606", "0.5242379", "0.52359265", "0.5235789", "0.52339494", "0.5232956", "0.5218447", "0.52181363" ]
0.8842617
0
Ends the user session by deleting its security access token
void logout(String userTokenTokenContent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logout() {\n if (mAccessToken != null) {\n mSession.resetAccessToken();\n mAccessToken = null;\n }\n }", "@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLocalRequest().getSession().invalidate();\n\t\t\n\t}", "public void logout(){\r\n\t\tallUser.remove(this.sessionID);\r\n\t\tthis.sessionID = -1;\r\n\t}", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(getActivity(), LoginActivity.class);\n startActivity(intent);\n getActivity().finish();\n }", "public void logout() {\n getRequest().getSession().invalidate();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(Activity_Main.this, Activity_Login.class);\n startActivity(intent);\n finish();\n }", "public void endSession(){\n currentUser = null;\n ui.returnCard();\n }", "public void doLogout() {\r\n\t\tdestroy();\r\n\r\n\t\t/* ++++++ Kills the Http session ++++++ */\r\n\t\t// HttpSession s = (HttpSession)\r\n\t\t// Sessions.getCurrent().getNativeSession();\r\n\t\t// s.invalidate();\r\n\t\t/* ++++++ Kills the zk session +++++ */\r\n\t\t// Sessions.getCurrent().invalidate();\r\n\t\tExecutions.sendRedirect(\"/j_spring_logout\");\r\n\r\n\t}", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(EscolhaProjeto.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\t\tdb.deleteUsers();\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(MainActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public void logout() {\n updateToken(\"\");\n startActivity(new Intent(GarageListActivity.this, LoginScreenActivity.class));\n updateToken(\"\");\n finish();\n }", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "private void logout()\r\n {\r\n LogoutRequest request = new LogoutRequest();\r\n request.setUsername(username);\r\n this.sendRequest(request);\r\n }", "public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public static void logout(Context context) \r\n\t{\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\tcontext.sessionAttribute(\"currentUser\", null);\r\n\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t//context.json(new MyCustomResponseMessage(\"You've successfully logged out\", \"success\"));\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}", "private void logoutHandler(RoutingContext context) {\n context.clearUser();\n context.session().destroy();\n context.response().setStatusCode(204).end();\n }", "@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}", "protected void logout() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\t\tuserController.performLogout();\n\n\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t}", "public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {\r\n\r\n System.out.println(\"sessionDestroyed method has been called in \"\r\n + this.getClass().getName());\r\n currentUserCount--;\r\n ctx.setAttribute(\"currentusers\", currentUserCount);\r\n }", "private void cerrarSession() {\n FirebaseAuth.getInstance().signOut();\n LoginManager.getInstance().logOut();\n Auth.GoogleSignInApi.signOut(googleApiClient).setResultCallback( new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n logOut();\n } else {\n Toast.makeText(getApplicationContext(),\"Fallo al cerrar session\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@POST\n @Path(\"/\")\n public Response logout() {\n if (!FeatureFlags.API_SESSION_AUTH.enabled()) {\n return error(Response.Status.INTERNAL_SERVER_ERROR, \"This endpoint is only available when session authentication feature flag is enabled\");\n }\n if (!session.getUser().isAuthenticated()) {\n return error(Response.Status.BAD_REQUEST, \"No valid session cookie was sent in the request\");\n }\n session.setUser(null);\n session.setStatusDismissed(false);\n return ok(\"User logged out\");\n }", "@JavascriptInterface\n public void logout() {\n Login.logout();\n Intent intent = new Intent(mContext, LoginActivity.class);\n mContext.startActivity(intent);\n }", "public void deleteAccessToken(int id);", "public void logoutCurrentUser() {\n currentUser = null;\n }", "void removeAccessToken() {\n SharedPreferences prefs = // because rest also needs token\n context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n prefs.edit()\n .remove(KEY_ACCESS_TOKEN)\n .apply();\n // notification to all listeners\n state.onNext(new AuthState(false));\n\n }", "public final void logout(final String sessionToken) throws UserFailureException\r\n {\n }", "public void disconnectFromFacebook() {\n\n if (AccessToken.getCurrentAccessToken() == null) {\n return; // already logged out\n }\n\n new GraphRequest(AccessToken.getCurrentAccessToken(), \"/me/permissions/\", null, HttpMethod.DELETE,\n new GraphRequest.Callback() {\n @Override\n public void onCompleted(GraphResponse graphResponse) {\n\n LoginManager.getInstance().logOut();\n\n }\n }).executeAsync();\n }", "public void logoutCurrentUser() {\n mAuth.signOut();\n this.loggedInUser = null;\n }", "public void removeCurrentUser() {\n currentUser.logout();\n currentUser = null;\n indicateUserLoginStatusChanged();\n }", "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "@Override\n\tpublic void logout() throws ActivityNotFoundException{\n\t\tif(context == null)\tthrow new ActivityNotFoundException(\"It seems, you've forgotten to call setActivity(), dude.\");\n\t\n\t\tcom.facebook.Session fbs = com.facebook.Session.getActiveSession();\n\t\t if(fbs == null) {\n\t\t fbs = new com.facebook.Session(context);\n\t\t com.facebook.Session.setActiveSession(fbs);\n\t\t }\n\t\t fbs.closeAndClearTokenInformation();\n\t\t \n\t\tif(ParseFacebookUtils.isLinked(ParseUser.getCurrentUser())){\n\t\t\ttry {\n\t\t\t\tParseFacebookUtils.unlink(ParseUser.getCurrentUser());\n\t\t\t\tToast.makeText(context, R.string.facebook_logged_out, Toast.LENGTH_LONG).show();\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tToast.makeText(context, R.string.facebook_not_logged_out, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}\t\t\n\t}", "@Override\n public void doLogout() {\n // Toast.makeText(getApplicationContext(),\"Session Expired\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), activity_Login.class);\n startActivity(intent);\n }", "private void logout() {\n fbAuth.signOut();\n startActivity(new Intent(getApplicationContext(), LoginActivity.class));\n finish();\n }", "public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n mCtx.startActivity(new Intent(mCtx, LoginActivity.class));\n }", "@Override\n public String logout() throws DocumentServiceException {\n AuthenticationToken token = store.getUserToken();\n if (token != null) {\n try {\n \ttry {\n AuthSubUtil.revokeToken(token.getToken(), AuthenticationKey.getAuthSubKey());\n \t} catch (Exception x) {\n \t x.printStackTrace();\n \t}\n AuthenticationToken.clearUserToken(token.getEmail());\n UserService userService = UserServiceFactory.getUserService();\n URI url = new URI(this.getThreadLocalRequest().getRequestURL().toString());\n return userService.createLogoutURL(\"http://\" + url.getAuthority() + LOGOUT_RETURN_RELATIVE_PATH);\n } catch (Exception e) {\n e.printStackTrace();\n throw new DocumentServiceException(e.getMessage());\n }\n }\n return \"/\";\n }", "public void logout () {\n\t\tif (isLoggedIn()) {\n\t\t\tGPPSignIn.sharedInstance().signOut();\n\t\t\tGPGManager.sharedInstance().signOut();\n\t\t}\n\t}", "private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}", "public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }", "@Override\n public void logout() {\n if (SecurityContextHolder.getContext().getAuthentication() != null) {\n SecurityContextHolder.getContext().setAuthentication(null);\n }\n session.invalidate();\n }", "@Override\n public void doLogout() {\n // Toast.makeText(getApplicationContext(),\"Session Expired\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(getApplicationContext(), activity_Login.class);\n startActivity(intent);\n }", "public void logout() {\n \n }", "@PutMapping(\"/logout\")\n @CrossOrigin\n public ResponseEntity<String> logout(@RequestHeader String accessToken) {\n if (userAuthTokenService.isUserLoggedIn(accessToken) == null) {\n return new ResponseEntity<>(\"Please Login first to access this endpoint!\", HttpStatus.UNAUTHORIZED);\n } else if (userAuthTokenService.isUserLoggedIn(accessToken).getLogoutAt() != null) {\n return new ResponseEntity<>(\"Invalid Coupon!\", HttpStatus.UNAUTHORIZED);\n } else {\n userAuthTokenService.removeAccessToken(accessToken);\n return new ResponseEntity<>(\"You have logged out successfully!\", HttpStatus.OK);\n }\n }", "public void logout(int sessionId);", "private void logout() {\n //set offline flag\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\n new PostNoSqlDataBase(this).offline(uid);\n\n //logout\n // FirebaseAuth mAuth = FirebaseAuth.getInstance();\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mGoogleSignInClient.signOut();\n FirebaseAuth.getInstance().signOut();\n //go to the main activity\n startActivity(new Intent(this, SignUpActivity.class));\n finish();\n }", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "void stop(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "void logoutRequest() throws Exception;", "public void logout(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", 0);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.clear();\n preferencesEditor.commit();\n // take user back to login screen\n Intent logoutIntent = new Intent(mContext, LoginActivity.class);\n logoutIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(logoutIntent);\n }", "@Override\n\tpublic Boolean logout()\n\t\t\tthrows UnknownException {\n HttpSession sesion = this.getThreadLocalRequest().getSession();\n sesion.removeAttribute(\"beanusuario\");\n sesion.removeAttribute(\"idsession\"); \n sesion.invalidate(); \n return true;\n\t}", "private void logout() {\n\n\n GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(context);\n //start home activity, when account is not null (user already signed in)\n if (account != null) {\n Log.d(\"LOGOUT\", \"Google Accoutn is not null\");\n if (mGoogleSignInClient != null) {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(getActivity(), new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(\"LogoutButton\", \"You were Logged out succesfully\");\n //remove user id from preferences to indicate, that he is not logged in\n Preferences.saveUserId(context, null);\n\n //remove FCM token\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n FirebaseInstanceId.getInstance().deleteInstanceId();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }).start();\n\n Intent intent = new Intent(context, LoginActivity.class);\n startActivity(intent);\n //remove home activity from stack\n getActivity().finish();\n }\n });\n }\n }\n }", "private void signOut() {\n //logout of google\n GoogleSignIn.getClient(this, GoogleSignInOptions.DEFAULT_SIGN_IN).signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n\n //logout of facebook\n LoginManager.getInstance().logOut();\n\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n Intent myIntent = new Intent(mCtx, LoginActivity.class);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mCtx.startActivity(myIntent);\n }", "public void deleteSession(int uid);", "public void attemptLogout() {\n spEditor.clear();\n spEditor.putBoolean(LOGGEDIN_KEY, false);\n spEditor.commit();\n }", "@Override\r\n \t\t\tpublic void deleteSessions() {\n \t\t\t\t\r\n \t\t\t}", "protected final void closeSessionAndClearTokenInformation() {\n Session currentSession = sessionTracker.getOpenSession();\n if (currentSession != null) {\n currentSession.closeAndClearTokenInformation();\n }\n }", "@GET\n @Path(\"logout\")\n public Response processLogout() throws WdkModelException {\n User oldUser = getSessionUser();\n getSession().invalidate();\n \n // get a new session and add new guest user to it\n SessionProxy session = getSession();\n User newUser = getWdkModel().getUserFactory().createUnregistedUser(UnregisteredUserType.GUEST);\n session.setAttribute(Utilities.WDK_USER_KEY, newUser);\n\n // throw new user event\n Events.triggerAndWait(new NewUserEvent(newUser, oldUser, session), \n new WdkRuntimeException(\"Unable to complete WDK user assignement.\"));\n\n // create and append logout cookies to response\n Set<CookieBuilder> logoutCookies = new HashSet<>();\n logoutCookies.add(LoginCookieFactory.createLogoutCookie());\n for (CookieBuilder extraCookie : getWdkModel().getUiConfig().getExtraLogoutCookies()) {\n extraCookie.setValue(\"\");\n extraCookie.setMaxAge(-1);\n logoutCookies.add(extraCookie);\n }\n ResponseBuilder builder = createRedirectResponse(getContextUri());\n for (CookieBuilder logoutCookie : logoutCookies) {\n builder.cookie(logoutCookie.toJaxRsCookie());\n }\n return builder.build();\n }", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "private void signOut(){\n LoginSharedPreference.endLoginSession(this);\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n finish();\n }", "void deleteUser(User user, String token) throws AuthenticationException;", "@Override\n public void run() {\n LogoutHelper.logout(context, AppMessage.TOAST_MESSAGE_SESSION_EXPIRED);\n }", "@AfterGroups(groups = {\"SUPER_ADMIN\", \"REGION_ADMIN\", \"OFFICER\"})\n protected void logout() throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.logout();\n }", "public String logout()\n\t{\n\t\tsession.remove(\"user_name\");\n\t\tsession.remove(\"password\");\n\t\tsession.clear();\n\t\tsession.invalidate();\t\n\t\taddActionMessage(\"You Have Been Successfully Logged Out\");\n\t\treturn SUCCESS;\n\t}", "public void logOut() {\n sp.edit().clear().commit();\n }", "@RequestMapping(value=\"/user/logout\", method=RequestMethod.GET)\n\tpublic String logout(HttpSession session)\n\t{\n\t\tint loggedInUserID = (Integer)session.getAttribute(\"loggedInUserId\");\n\t\tfriendDAO.setOffline(loggedInUserID);\n\t\tuserDAO.setOffline(loggedInUserID);\n\t\tsession.invalidate();\n\t\treturn (\"you successfully logged out\");\n\t}", "public abstract void endUserSession();", "public void logout() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.clear();\r\n editor.apply();\r\n ctx.startActivity(new Intent(ctx, MainActivity.class));\r\n }", "@Override\n public void sessionDestroyed(HttpSessionEvent se) {\n WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(se.getSession().getServletContext());\n HttpSession session = se.getSession();\n if(context!=null && session!=null) {\n String key = (String) session.getAttribute(PERSIST_SECURITY_CONTEXT_KEY);\n PersistentTokenRepository securityService = context.getBean(PersistentTokenRepository.class);\n if(key!=null && securityService!=null) {\n logger.info(\"remove persisted security context \"+key);\n securityService.removeUserTokens(key);\n }else {\n logger.info(\"No security service is available!\");\n }\n }else {\n logger.info(\"No Application context available or session is null\");\n }\n }", "public synchronized void logout(String session_id){\r\n try {\r\n dao.deleteUserBySession(session_id);\r\n }catch(Exception e) {\r\n ExceptionBroadcast.print(e);\r\n }\r\n }", "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "public void logout() {\n \n FacesContext.getCurrentInstance().getExternalContext().invalidateSession();\n try {\n FacesContext.getCurrentInstance().getExternalContext()\n .redirect(\"/BookStorePelikSangat/faces/admin/loginadmin.xhtml\");\n } \n catch (IOException e) {}\n\t}", "private void logout(){\r\n\t\ttry {\r\n\t\t\tserver.rmvClient(user);\r\n\t\t} catch (RemoteException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tSystem.exit(0);\r\n\t}", "public static void logout() {\n userId = -1;\n aisId = -1;\n \n name = \"\";\n role = \"\";\n roleFromDatabase = \"\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n }", "public void signOut(){\n mAuth.signOut();\n }", "public static void logout(HttpSession session) {\n session.invalidate();\n }", "public void deleteSession(RequestCallback callback) throws RequestException {\n sendRequest(\"/session\", null, RequestBuilder.DELETE, callback);\n }", "private void logout() {\n getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit().clear().apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE).edit().putBoolean(IS_LOGGED_IN, false).apply();\n\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(URL + \"/nuh/logout\")\n .build();\n AsyncTask.execute(() -> {\n try {\n client.newCall(request).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }", "public void Logout() {\n \t\t\t\n \t\t}", "public String logout() {\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tHttpSession session = (HttpSession) facesContext.getExternalContext().getSession(true);\n\t\tsession.invalidate();\n\t\treturn \"\";\n\t}", "void logout(Token token) throws WorkspaceException;", "public String logout() {\n HttpSession session = Util.getSession();\t//get the current session\n session.invalidate();\t//destroy the session\n return \"logout\";\n }", "public void facebookLogout()\n\t{\n\t\tPreferences preferences = new Preferences(getActivity());\n\t\tString accessToken = preferences.getFacebookAccessToken();\n\t\tlong expiration = preferences.getFacebookAccessExpiration();\n\n\t\tif(accessToken != null) mFacebook.setAccessToken(accessToken);\n\t\tif(expiration != 0) mFacebook.setAccessExpires(expiration);\n\t\t\n\t\tif(mFacebook.isSessionValid())\n\t\t{\n\t\t\t// show progress in action bar\n\t\t\tshowActionBarProgress(true);\n\t\t\t\n\t\t\tmAsyncFacebookRunner.logout(getActivity(), new RequestListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\t\t\t\t\t// TODO: run callbacks in TaskFragment.runTaskCallback()\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onComplete(): \" + response);\n\t\t\t\t\t\n\t\t\t\t\t// clear access token\n\t\t\t\t\tPreferences preferences = new Preferences(getActivity());\n\t\t\t\t\tpreferences.setFacebookAccessToken(Preferences.NULL_STRING);\n\t\t\t\t\tpreferences.setFacebookAccessExpiration(Preferences.NULL_LONG);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), \"Successfully logged out.\", Toast.LENGTH_LONG).show();\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@Override\n\t\t\t\tpublic void onFacebookError(final FacebookError e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onFacebookError(): \" + e.getErrorType() + \" / \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onIOException(IOException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onIOException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFileNotFoundException(FileNotFoundException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onFileNotFoundException()\");\n\t\t\t\t\t\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onMalformedURLException(MalformedURLException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookLogout().onMalformedURLException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\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\telse\n\t\t{\n\t\t\tToast.makeText(getActivity(), \"You are already logged out.\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public void forceLogout()\n\t{\n\t\tif(getSession() != null && getSession().getLoggedIn())\n\t\t\tgetSession().close();\n\t\telse\n\t\t\tGameServer.getServiceManager().getNetworkService().getLogoutManager().queuePlayer(this);\n\t}", "private void logout(HttpServletRequest request, HttpServletResponse response)\n throws SQLException, IOException, ServletException {\n\tHttpSession session = request.getSession(false);\n\t// session.setAttribute(\"user\", null);\n\tsession.removeAttribute(\"email\");\n\t response.sendRedirect(\"index.jsp\");\n\t}", "@PostMapping(\"/logout\")\n public ResponseEntity<String> logout(HttpServletRequest request, HttpServletResponse response) {\n // send an HTTP 403 response if there is currently not a session\n HttpSession session = request.getSession(false);\n if (session == null) {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n // invalidate the old session, so that one for the new user can be created later\n session.invalidate();\n\n // add the clearUser cookie so that it deletes the browsers cookie\n response.addCookie(CookieManager.getClearUserCookie());\n\n // send an HTTP 204 response to signify successful logout\n return ResponseEntity.status(HttpStatus.NO_CONTENT).body(null);\n }", "public void removeUserFromSession(String token){\n\t\tfor(Session s: getSessionSet()){\n\t\t\tif(s.getToken().equals(token))\n\t\t\t\ts.delete();\t\t\t\t\t//Deletes user session.\n\t\t}\t\n\t}", "private void signOut() {\n mAuth.signOut();\n }", "private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "public void endSession(WebSocket conn) {\n String token = reverseMap.get(conn);\n \n // Token can be null if user connected but never logged in\n if (token == null) {\n return;\n }\n \n activeSessions.remove(token);\n reverseMap.remove(conn);\n }", "public static void logout(Context context, OnCompleteListener<Void> onCompleteListener) {\n Task<Void> signOut = AuthUI.getInstance().signOut(context);\n if (onCompleteListener != null)\n signOut.addOnCompleteListener(onCompleteListener);\n deleteLogin(context);\n profileOutOfSync = true; // after a logout (and possibly re-login), we cannot assume the profile will be in sync the next time\n }", "private String PerformLogout(String token){\n next_online.remove(token);\n current_online.remove(token);\n\n // rimuovo anche la callback dalla Hashtable\n cr.RemoveClient(token);\n return \"ok\";\n }", "public void logout() {\n\n clearData();\n Intent intent = new Intent(getContext(), LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n\n\n }", "void expireComponentAccessToken();" ]
[ "0.72627574", "0.7169639", "0.6988807", "0.6955977", "0.695289", "0.6944603", "0.6916035", "0.6903298", "0.68952906", "0.6828075", "0.6739267", "0.6724862", "0.66878784", "0.6664985", "0.6540671", "0.6488924", "0.6465484", "0.64378977", "0.64308876", "0.63990664", "0.6389232", "0.63885593", "0.63876534", "0.638421", "0.63457435", "0.6316744", "0.630276", "0.63012624", "0.6297834", "0.62872815", "0.62868106", "0.6282524", "0.6271895", "0.62658376", "0.626352", "0.6258323", "0.62577397", "0.62462205", "0.6244868", "0.62409616", "0.62340915", "0.62317735", "0.62263983", "0.62257075", "0.62241685", "0.6211084", "0.62078685", "0.61956656", "0.61925447", "0.6184902", "0.6184681", "0.61810553", "0.6172992", "0.61713326", "0.616446", "0.6163356", "0.6160654", "0.61307204", "0.6122221", "0.6116683", "0.61149263", "0.61143804", "0.6112643", "0.6107377", "0.61051065", "0.6083981", "0.6078647", "0.6075684", "0.6071187", "0.6053934", "0.6053465", "0.60510594", "0.60496444", "0.6045804", "0.60394055", "0.6036665", "0.60217535", "0.59993", "0.5996038", "0.59886223", "0.59812605", "0.5980063", "0.5978824", "0.59739006", "0.5967168", "0.5959416", "0.59533745", "0.5947638", "0.5945545", "0.5942648", "0.5936845", "0.59350467", "0.59222144", "0.59205186", "0.5914286", "0.5912948", "0.5911977", "0.59116167", "0.59066206", "0.59045017" ]
0.69481087
5
filter users by specific request filter
UserFilterResult find(UserFilterRequest request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void filterUsers(FilterParameters f) {\n // query users to find appropriate matches and send them a chat request\n Database.getInstance()\n .sendRequestsToMatches(f.getKind(), f.getGender(), f.getReligion(), f.getLanguages()\n , f.getLower_bound(), f.getUpper_bound() /*, possibles_list, adapter*/);\n\n //sent messages to all - now we wait for response\n new Timer().schedule(new StaffSearch(), 30000); //send the staff a request in 30 seconds\n new Timer().schedule(new AbortSearch(), 60000); //abort the search in 60 seconds\n }", "private static void addUserFilters() {\n List<FiltersByLocation> filtersByLocations=new ArrayList<>();\n List<String> listOfFilterNamesAlreadyAddedUnModified=HealthDataFilter.returnAllFilterNames();\n List<String> listOfFilterNamesAlreadyAdded=new ArrayList<>(listOfFilterNamesAlreadyAddedUnModified);\n\n Set <String> set1=new HashSet<>();\n set1.add(\"\");\n\n String whereForZipFilter1 = createWhereForZipFilter((HashSet<String>) set1);\n\n if (!listOfFilterNamesAlreadyAdded.contains(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME)){\n filtersByLocations.add(new FiltersByLocation(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME ,whereForZipFilter1));\n listOfFilterNamesAlreadyAdded.add(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME);\n }\n\n Map<String, ?> userZipCodeFilters = PreferenceUtility.getUserZipCodeFilters();\n\n for (Map.Entry<String, ?> entry : userZipCodeFilters.entrySet()) {\n //Upper case\n String filterName=entry.getKey().substring(AppConstant.USER_PREF_ZIP_FILTER_PREFIX.length()).toUpperCase();\n String whereForZipFilter = createWhereForZipFilter((HashSet<String>) entry.getValue());\n if (!listOfFilterNamesAlreadyAdded.contains(filterName)){\n filtersByLocations.add(new FiltersByLocation(filterName,whereForZipFilter));\n }\n }\n }", "public Function<Request, Request> requestFilter();", "public String getUserFilter()\n {\n return this.userFilter;\n }", "protected Set<String> getFilter(StaplerRequest req) throws ServletException, IllegalAccessException, IllegalArgumentException, InvocationTargetException{\n Set<String> filter = new TreeSet<String>();\n String values[] = {\"other\",\"job\",\"view\",\"computer\",\"user\"};\n for(String s:values){\n if(req.getParameter(s)!=null)\n filter.add(s); \n }\n return filter;\n }", "private void filterHandler(Request req, Supplier filter) throws SQLException {\n generalHandler(req);\n params.put(\"currFilter\", filter);\n params.put(\"products\", filter.getProducts());\n }", "public Set<SearchFilterItem> setActiveFilterParams(Model model, HttpServletRequest request) {\n Map<String, String[]> parameterMap = request.getParameterMap();\n model.addAttribute(\"parameterMap\", parameterMap);\n\n\n // exclude non-filter query parameters\n Map<String, String[]> filtersOnlyMap = parameterMap.entrySet().stream()\n .filter(entry -> FILTER_PARAMETER_NAMES.contains(entry.getKey())\n || (\"filterJournals\").equals(entry.getKey()))\n .collect(Collectors.toMap(entry -> entry.getKey(), entry -> entry.getValue()));\n\n Set<SearchFilterItem> activeFilterItems = new LinkedHashSet<>();\n filtersOnlyMap.forEach((filterName, filterValues) -> buildActiveFilterItems(activeFilterItems,\n parameterMap, filterName, filterValues));\n return activeFilterItems;\n }", "public void filter(UserCommand cmd)\n\t{\n\t\t\n\t}", "@PostMapping(path = \"/filter\")\n public ResponseEntity<UserFilterResponseDTO> getUsersByFilter(@RequestBody FilterQueryDTO filterQueryDTO) {\n log.debug(\"getUsersByFilter()\");\n UserFilterResponseDTO users = null;\n try {\n users = userService.getUsersByFilter(filterQueryDTO);\n } catch (ServiceException e) {\n log.error(\"Could not find users with filter= \" + filterQueryDTO, e);\n return new ResponseEntity(users, HttpStatus.BAD_REQUEST);\n } catch (ParseException e) {\n log.error(\"Parse error= \" + filterQueryDTO, e);\n return new ResponseEntity(users, HttpStatus.BAD_REQUEST);\n }\n return new ResponseEntity(users, HttpStatus.OK);\n }", "void filterQuery(ServerContext context, QueryRequest request, QueryResultHandler handler,\n RequestHandler next);", "@Override\r\n\tpublic void filter(ContainerRequestContext requestContext) throws IOException {\n\t String authorizationHeader = \r\n\t requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\r\n\t \r\n\t // Check if the HTTP Authorization header is present and formatted correctly\r\n\t if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\r\n\t \t\r\n\t \t//abgelaufene Tokens werden gelöscht\r\n\t \tsservice.deleteInvalidTokens();\r\n\t \t\r\n\t \t// Extract the token from the HTTP Authorization header\r\n\t \tString token = authorizationHeader.substring(\"Bearer\".length()).trim();\r\n\t \tif (validateToken(token) == true){\r\n\t \t\t\r\n\t \t\t//Get the user by this token\r\n\t \t User user = authService.getUserByToken(token);\r\n\t \t System.out.println(\"Nutzer: \" + user.toString());\r\n\t \t requestContext.setSecurityContext(new MySecurityContext(user));\r\n\t \t return;\r\n\t \t}\r\n\t }\r\n\t \r\n\t throw new UnauthorizedException(\"Client has to be logged in to access the ressource\");\r\n\t \r\n\t\t\r\n\t}", "private void filter(String text) {\n List<UserModel> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (UserModel item : userModels) {\n //if the existing elements contains the search input\n if (item.getFirstName().toLowerCase().contains(text.toLowerCase())||item.getId().toLowerCase().contains(text.toLowerCase())||item.getEmail().toLowerCase().contains(text.toLowerCase())){\n //adding the element to filtered list\n filterdNames.add(item);\n }\n }\n userAdapter.filterList(filterdNames);\n }", "@GetMapping(\"/adminShowList\")\n public String adminSList(@RequestParam(required = false, value=\"creator\") String userFilter, Model model){\n String nextPage = \"login\";\n User currentUser = (User) model.getAttribute(\"currentUser\");\n if (isValid(currentUser)){\n nextPage = \"adminShowList\";\n if (userFilter == null || userFilter.length() <=0)\n model.addAttribute(\"showList\", showRepo.findAll());\n else{\n User filteredUser = userRepo.findByUserName(userFilter).get(0);\n if (filteredUser != null)\n model.addAttribute(\"showList\", showRepo.findByUser(filteredUser));\n else\n model.addAttribute(\"showList\", showRepo.findAll());\n }\n } else{\n User user = new User();\n model.addAttribute(\"currentUser\", null);\n model.addAttribute(\"newUser\", user);\n }\n model.addAttribute(\"creators\", userRepo.findByUserRole(\"creator\"));\n return nextPage;\n }", "@Override\n public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {\n HttpSession session = ((HttpServletRequest)servletRequest).getSession();\n String token = (String) session.getAttribute(\"token_login\");\n String userName = (String) session.getAttribute(\"username\");\n boolean isTokenAvailable = userService.checkToken(token, userName);\n\n if(token == null || userName == null || !isTokenAvailable){\n ((HttpServletResponse)servletResponse).sendRedirect(\"/\");\n return;\n }\n\n\n String uri = ((HttpServletRequest) servletRequest).getRequestURI();\n int start = uri.indexOf(\"proj/p/\") + 7;\n int end = uri.indexOf(\"/\", start);\n int endq = uri.indexOf(\"?\", start);\n String p = uri.substring(start, (end < 0 ? uri.length() : end));\n\n\n System.out.println( projectService.getAccessibleOrgProjects(userName).get(0));\n if(projectService.getIndividualProjects(userName).contains(p) ||\n projectService.getAccessibleOrgProjects(userName).contains(\"(\" + p +\",\" + servletRequest.getParameter(\"org\") + \")\") )\n filterChain.doFilter(servletRequest, servletResponse);\n else\n ((HttpServletResponse)servletResponse).sendRedirect(\"/\");\n }", "@PostFilter(\"hasRole('ADMINISTRATOR') OR \"\r\n \t\t\t+ \"(hasRole('EMPLOYEE') AND \"\r\n \t\t\t+ \"(filterObject.type.typeLabel == 'CUSTOMERLEGAL' OR \"\r\n \t\t\t+ \"filterObject.type.typeLabel == 'CUSTOMERINDIVIDUAL')) OR \"\r\n \t\t\t+ \"((hasRole('CUSTOMERLEGAL') OR hasRole('CUSTOMERINDIVIDUAL')) AND \"\r\n \t\t\t+ \"(filterObject.username == principal.username)) OR \"\r\n \t\t\t+ \"(hasRole('REVISIONER') AND filterObject.type.typeLabel == 'REVISIONER')\")\r\n \tpublic List<SystemUserDTO> getSystemUsersByTypeList(List<UserTypeEnumDTO> types);", "@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "@Override\n public void accept(Boolean aBoolean) throws Exception {\n UserFilter userFilter = new UserFilter();\n userFilter.setDistance(RestaurantFilterActivity.DEFAULT_DISTANCE);\n userFilter.setOpen(false);\n userFilter.setDelivery(false);\n userFilter.setDailyMenu(false);\n getDataManager().saveUserFilter(userFilter).subscribe(new Consumer<Long>() {\n @Override\n public void accept(Long aLong) throws Exception {\n getDataManager().setActiveUserFilterId(aLong);\n // konacno otvaranje\n getMvpView().openUserRestaurantsActivity();\n }\n });\n\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EnquiryModel> filteredList = new ArrayList<>();\n\n if(constraint == null || constraint.length() == 0){\n //show all data\n filteredList.addAll(enquiryAll);\n }else {\n //filter using keys\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(EnquiryModel enquiryModel : enquiryAll){\n if(enquiryModel.getUser_name().toLowerCase().contains(filterPattern) || enquiryModel.getUser_email().toLowerCase().contains(filterPattern)|| enquiryModel.getHostel_name().contains(filterPattern)|| enquiryModel.getEnquiry_status().contains(filterPattern)){\n filteredList.add(enquiryModel); //store those enquiry whose hostel name contains list as asked.\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "private Filter ssoFilter() {\n\t\tCompositeFilter filter = new CompositeFilter();\n\t\tList<Filter> filters = new ArrayList<>();\n\t\tfilters.add(ssoFilter(facebook(), \"/login/facebook\"));\n\t\tfilters.add(ssoFilter(github(), \"/login/github\"));\n//\t\tfilters.add(ssoFilter(twitter(), \"/login/twitter\"));\n\t\tfilters.add(ssoFilter(linkedin(), \"/login/linkedin\"));\n\t\tfilter.setFilters(filters);\n\t\treturn filter;\n\t}", "Collection<T> doFilter(RepositoryFilterContext context);", "public static void filter(Object filterBy, Object filterValue) {\n\n\t\tif(filterBy.equals(\"Course\")) { // Filter by course\n\n\t\t\tArrayList<QuizData> list = new ArrayList<QuizData>();\n\n\t\t\tArrayList<QuizData> quizList = BrowserData.quizList();\n\n\t\t\tfor (int i = 0; i < quizList.size(); i++) {\n\n\t\t\t\tif(filterValue.equals(quizList.get(i).getCourse())) {\n\n\t\t\t\t\tlist.add(quizList.get(i));\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tresultList = list;\n\t\t\tResult.instance().draw();\n\t\t}\n\n\t\tif(filterBy.equals(\"Author\")) { // Filter by author\n\n\t\t\tArrayList<QuizData> list = new ArrayList<QuizData>();\n\n\t\t\tArrayList<QuizData> quizList = BrowserData.quizList();\n\n\t\t\tfor (int i = 0; i < quizList.size(); i++) {\n\n\t\t\t\tif(filterValue.equals(quizList.get(i).getUser().getLastName() + \", \" + quizList.get(i).getUser().getFirstName())) {\n\n\t\t\t\t\tlist.add(quizList.get(i));\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tresultList = list;\n\t\t\tResult.instance().draw();\n\n\t\t}\n\n\t\tif(filterBy.equals(\"None\")) { // Apply no filter\n\n\t\t\tresultList = BrowserData.quizList();\n\t\t\tResult.instance().draw();\n\n\t\t}\n\n\t}", "private void filterHandler(Request req, ProductCategory filter) throws SQLException {\n generalHandler(req);\n params.put(\"currFilter\", filter);\n params.put(\"products\", filter.getProducts());\n }", "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String authorizationHeader =\n requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n\n // Validate the Authorization header\n if (!isTokenBasedAuthentication(authorizationHeader)) {\n abortWithUnauthorized(requestContext);\n return;\n }\n\n // Extract the token from the Authorization header\n String token = authorizationHeader\n .substring(AUTHENTICATION_SCHEME.length()).trim();\n\n try {\n // Check if the token is valid\n validateToken(token);\n\n //extract the data you need\n String username = Jwts.parser().setSigningKey(keyGenerator.getKey()).parseClaimsJws(token).getBody().getIssuer();\n if (username!=null) {\n final SecurityContext securityContext = requestContext.getSecurityContext();\n requestContext.setSecurityContext(new SecurityContext() {\n @Override\n public Principal getUserPrincipal() {\n return new Principal() {\n @Override\n public String getName() {\n return username;\n }\n };\n }\n @Override\n public boolean isUserInRole(String permission) {\n\n List<RoleEntity> roleEntities = userDao.getUserByUsername(username).getRoleEntityList();\n List<PermissionEntity> permissionEntities = new ArrayList<>();\n\n //creating the list containg all the permissionsAllowed\n for (RoleEntity r : roleEntities) {\n for (PermissionEntity p : r.getPermissionEntityList()) {\n if (!permissionEntities.contains(p)) {\n permissionEntities.add(p);\n }\n }\n\n }\n\n List<String> permissionStrings = new ArrayList<>();\n\n //getting all the types (description and id are not important)\n for (PermissionEntity p : permissionEntities) {\n permissionStrings.add(p.getType());\n }\n\n //returns true if the list contains the permission given as parameter\n for (String p : permissionStrings) {\n if (p.equals(permission)) {\n return true;\n }\n }\n return false;\n }\n @Override\n public boolean isSecure() {\n return true;\n }\n @Override\n public String getAuthenticationScheme() {\n return AUTHENTICATION_SCHEME;\n }\n });\n }\n //getting value from annotation\n Method resourceMethod = resourceInfo.getResourceMethod();\n Secured secured = resourceMethod.getAnnotation(Secured.class);\n if (secured != null){\n List<String> permissionStrings = new ArrayList<>();\n for (SecurityPermission s : secured.permissionsAllowed()) {\n permissionStrings.add(s.getText());\n }\n\n //performing authorization\n if (permissionStrings.size() > 0 && !isAuthenticated(requestContext)) {\n refuseRequest();\n }\n\n for (String role : permissionStrings) {\n if (requestContext.getSecurityContext().isUserInRole(role)) {\n return;\n }\n else {\n throw new AuthentificationException(ExceptionMessageCatalog.NOT_ALLOWED);\n }\n }\n\n refuseRequest();\n }\n } catch (AuthentificationException e) {\n abortWithUnauthorized(requestContext);\n }\n }", "public Object[] getUserFilterArgs()\n {\n return this.userFilterArgs;\n }", "@Override\n\tpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\n\t\t\tthrows IOException, ServletException {\n\t\tif (request instanceof HttpServletRequest) {\n\t\t\tHttpServletRequest httpReq = (HttpServletRequest) request;\n\t\t\tHttpSession session = httpReq.getSession(true);\n\t\t\tUser user = (User) session.getAttribute(mUserSessionAttrParamName);\n\n\t\t\tif (user != null && user.isAdmin())\n\t\t\t\tchain.doFilter(request, response);\n\t\t\telse\n\t\t\t\trequest.getRequestDispatcher(mLoginPagePath).forward(request, response);\n\t\t} else\n\t\t\trequest.getRequestDispatcher(mLoginPagePath).forward(request, response);\n\t}", "public void filtered(FilteredCall<UserCQ, UserCQ> filteredLambda) {\n filtered(filteredLambda, null);\n }", "public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {\r\n\r\n HttpServletRequest request = (HttpServletRequest) req;\r\n HttpServletResponse response =(HttpServletResponse) resp;\r\n ActionFactory actionFactory = new ActionFactory();\r\n ActionCommand actionCommand = actionFactory.getCommand(request);\r\n User user = LoginLogic.user(request);\r\n\r\n if(actionCommand.checkAccess(user)){\r\n chain.doFilter(req, resp);\r\n }else{\r\n response.setStatus(403);\r\n logger.error(String.format(\"Access denied\"));\r\n request.getRequestDispatcher(PathManager.INSTANCE.getString(\"path.error403\")).forward(req, resp);\r\n }\r\n }", "@Override\n public boolean shouldFilter() {\n return true;\n }", "user_filter_reference getUser_filter_reference();", "void handleManualFilterRequest();", "private void updateList(String filter) {\n if (list == null) {\n return;\n }\n final String newFilter = (filter != null) ? filter.toLowerCase() : null;\n DefaultListModel<User> model = new DefaultListModel();\n users.stream()\n .filter((user) -> newFilter == null || user.getName().toLowerCase().contains(newFilter))\n .forEach((user) -> {\n model.addElement(user);\n });\n list.setModel(model);\n }", "@Override\n public void filter(ContainerRequestContext requestContext)\n throws IOException\n {\n Object listenAddressName = requestContext.getProperty(LISTEN_ADDRESS_NAME_ATTRIBUTE);\n if (listenAddressName == null || !listenAddressName.equals(ServerConfig.ADMIN_ADDRESS)) {\n throw new NotFoundException();\n }\n\n // Only allow admin users\n final AuthenticatedUser user = (AuthenticatedUser) request.getAttribute(\"authenticatedUser\");\n if (user == null || !user.isAdmin()) {\n throw new ForbiddenException();\n }\n }", "@Override\n\tpublic void filterNurseOrder(Integer userId, List<PatientOrder> patientOrder) {\n\n\t}", "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "@PostFilter(\"hasRole('ADMINISTRATOR') OR \"\r\n \t\t\t+ \"(hasRole('EMPLOYEE') AND \"\r\n \t\t\t+ \"(filterObject.type.typeLabel == 'CUSTOMERLEGAL' OR \"\r\n \t\t\t+ \"filterObject.type.typeLabel == 'CUSTOMERINDIVIDUAL')) OR \"\r\n \t\t\t+ \"((hasRole('CUSTOMERLEGAL') OR hasRole('CUSTOMERINDIVIDUAL')) AND \"\r\n \t\t\t+ \"(filterObject.username == principal.username)) OR \"\r\n \t\t\t+ \"(hasRole('REVISIONER') AND filterObject.type.typeLabel == 'REVISIONER')\")\r\n \tpublic List<SystemUserDTO> getSystemUsersByParams(String firstName,\r\n\t\t\tString lastName, UserTypeEnumDTO type);", "public boolean filter(AssignmentListEntry entry) {\n\t\tboolean isAdmin = UserData.get().isAdmin();\r\n\t\tif (isAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tString userId = UserData.get().getId();\r\n\t\tif (userId == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn userId.equals(entry.getAuthorID());\r\n\t}", "void setFilter(String filter);", "private List<ParseUser> filterUsers(List<ParseUser> pUsers, String searchTerm) {\n List<ParseUser> filteredUsers = new ArrayList<>();\n for (ParseUser pU : pUsers) {\n User u = new User(pU);\n if (u.getName().toLowerCase().contains(searchTerm.toLowerCase())) {\n filteredUsers.add(pU);\n }\n }\n return filteredUsers;\n }", "@Override\n public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\n final HttpServletRequest servletRequest = ((HttpServletRequest)request);\n log.debug(\"Handling request: {}\", servletRequest.getRequestURI());\n HttpServletRequestWrapper wrapper = new HttpServletRequestWrapper((HttpServletRequest) request) {\n \n @Override\n public String toString() {\n return servletRequest.toString();\n }\n\n @Override\n public String getRemoteUser() {\n if (remoteUserExpression != null) {\n \n try {\n // Use MVEL to evaluate expression.\n Map<String,Object> vars = new HashMap<String,Object>();\n vars.put(\"request\", servletRequest);\n vars.put(\"session\", servletRequest.getSession(false));\n log.debug(\"Evaluating URI {} for remote user using expression {} using vars: {}\", new Object[]{ servletRequest.getRequestURI(), remoteUserExpressionValue, vars });\n Object result = MVEL.executeExpression(remoteUserExpression, vars);\n log.debug(\"Evaluated URI {} remote user request to: {}\", servletRequest.getRequestURI(), result);\n return result == null ? null : result.toString();\n } catch (Exception e) {\n log.warn(\"Unexpected exception occurred while evaluating remote user expression: {}\", remoteUserExpressionValue, e);\n }\n return null;\n } else {\n return super.getRemoteUser();\n }\n }};\n\n chain.doFilter(wrapper, response);\n }", "public void getFilteredUngrantedRoles(String filter) {\n\t\tif (path != null) {\n\t\t\tresetUnassigned();\n\t\t\tauthService.getFilteredUngrantedRoles(path, filter, callbackGetUngrantedRoles);\n\t\t}\n\t}", "void setFilterByExpression(boolean filterByExpression);", "public void setUserFilter(final String userFilter)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting userFilter: \" + userFilter);\n }\n this.userFilter = userFilter;\n }", "public void filterByUserToken(final String token) {\n andWhere(\"user.token = :\" + TOKEN);\n setParameter(TOKEN, token);\n }", "@Override\r\n\tpublic List<AccountDTO> getUserByFilter(UserFilter userFilter) {\n\t\treturn accountDao.getUserByFilter(userFilter);\r\n\t}", "String getFilter();", "@Override\n\tpublic void doFilter(ServletRequest req, ServletResponse res,\n\t\t\tFilterChain filter) throws IOException, ServletException {\n\t\tHttpServletRequest request=(HttpServletRequest)req;\n\t\tHttpServletResponse respone=(HttpServletResponse)res;\n\t\trequest.setCharacterEncoding(\"utf-8\");\n//\t\tString path=request.getServletPath();\n\t\tUser user=(User) request.getSession().getAttribute(\"user\");\n\t\t\n\t\tif(user==null){\n\t\t\trespone.sendRedirect(\"./tmall.jsp\");\n\t\t}else{\n\t\t\tfilter.doFilter(request, respone);\n\t\t}\n\t\t\n\t}", "public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\n\t\tHttpServletRequest hrequest = (HttpServletRequest)request; \r\n HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper((HttpServletResponse) response); \r\n \r\n String logonStrings = config.getInitParameter(\"logonStrings\"); \r\n String includeStrings = config.getInitParameter(\"includeStrings\"); \r\n String redirectPath = hrequest.getContextPath() + config.getInitParameter(\"redirectPath\"); \r\n String disabletestfilter = config.getInitParameter(\"disabletestfilter\");\r\n \r\n if (disabletestfilter.toUpperCase().equals(\"Y\")) { \r\n chain.doFilter(request, response); \r\n return; \r\n } \r\n String[] logonList = logonStrings.split(\";\"); \r\n String[] includeList = includeStrings.split(\";\"); \r\n \r\n if (!this.isContains(hrequest.getRequestURI(), includeList)) {\r\n chain.doFilter(request, response); \r\n return; \r\n } \r\n \r\n if (this.isContains(hrequest.getRequestURI(), logonList)) {\r\n chain.doFilter(request, response); \r\n return; \r\n } \r\n \r\n String user = ( String ) hrequest.getSession().getAttribute(\"user.name\");\r\n if (user == null) { \r\n wrapper.sendRedirect(redirectPath); \r\n return; \r\n }else { \r\n chain.doFilter(request, response); \r\n return; \r\n } \r\n }", "@Test\n\tvoid findAllForMyCompanyFilter() {\n\t\tinitSpringSecurityContext(\"assist\");\n\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(\"ing\", null, null, newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(8, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(8, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(8, tableItem.getData().size());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"fdoe2\", tableItem.getData().get(0).getId());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).isCanWrite());\n\n\t\t// Check the groups\n\t\tAssertions.assertEquals(0, tableItem.getData().get(0).getGroups().size());\n\t}", "@Test\n public void testFindUserByFilter() {\n System.out.println(\"findUserByFilter\");\n String filter = \"adrian\";\n UserServiceImpl instance = new UserServiceImpl(passwordService);\n List<User> result = instance.findUserByFilter(filter);\n assertEquals(1, result.size());\n assertEquals(\"adrian\", result.get(0).getUsername());\n }", "@GetMapping(\"/users\")\n\tpublic String get_users(HttpServletRequest request) {\n\t\tHttpSession session = request.getSession();\n\t\tif((session.getAttribute(\"user\") != null) && ((User)session.getAttribute(\"user\")).getType().toLowerCase().equals(\"admin\")) {\n\t\t\t\n\t\t\tList<User> blockedUsers = userService.blockedUsers();\n\t\t\trequest.setAttribute(\"users\", blockedUsers);\n\t\t\treturn \"users\";\n\t\t\t\n\t\t}else {\t\t\t\n\t\t\t\t\t\t\n\t\t\trequest.setAttribute(\"login_err\", \"show\");\n\t\t\trequest.setAttribute(\"login_msg\", \"You have to login.\");\n\t\t\t\n\t\t\treturn \"login\";\n\t\t}\t\t\n\t}", "@Transactional(value = \"cleia-txm\", readOnly = true)\n public List<Medical> getMedicalUser(GridRequest filters, String username) {\n List<Medical> lm = new ArrayList<Medical>();\n Medical m = (Medical) entityManager.createQuery(\"select m from Medical m where m.username = :username\").setParameter(\"username\", username).getSingleResult();\n if (m instanceof Medical) {\n Medical medical = (Medical) m;\n medical.getPatient().getUser().getGroups().size();\n medical.getPatient().getUser().getRoles().size();\n medical.getPatient().getUser().getIds().size();\n medical.getPatient().getProcessInstances().size();\n lm.add(medical);\n \n }\n return lm;\n \n }", "public List<User> searchUser(String searchValue);", "public abstract void filter();", "public Builder filter(String filter) {\n request.filter = filter;\n return this;\n }", "public void searchUser(int keyCode, String filter, String user, JTable tblUser) {\n \n\n if(keyCode == KeyEvent.VK_ENTER) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n \n int i;\n for(i = 0; i < tableModel.getColumnCount(); i++)\n {\n if(filter.compareTo(tableModel.getColumnName(i)) == 0) { break; }\n }\n\n for(int k = 0; k < tableModel.getRowCount(); k++)\n {\n if(user.compareToIgnoreCase(tableModel.getValueAt(k, i).toString()) == 0) {\n tblUser.setRowSelectionInterval(k, k);\n break;\n \n } else { tblUser.clearSelection(); }\n }\n } \n }", "public static Filter modifiedByUserFilter(String username) {\r\n if (username == null) {\r\n throw new IllegalArgumentException(\"The username is null.\");\r\n }\r\n\r\n if (username.trim().length() == 0) {\r\n throw new IllegalArgumentException(\"The username is empty.\");\r\n }\r\n\r\n return new EqualToFilter(RejectEmailDAO.SEARCH_MODIFICATION_USER, username);\r\n }", "Data<User> getUserSearch(String user, String fields);", "Boolean acceptRequest(User user);", "@GetMapping(\"/filterUserSide\")\n public List<BannerDTO> filterAllowedByCategory(@RequestParam(\"category\") String categoryName){\n return bannerService.findAllowedByCategory(categoryName);\n }", "@GetMapping(\"/items\")\n public List<Items> getAllItems(@RequestParam(required = false) String filter) {\n if (\"reviewreveals-is-null\".equals(filter)) {\n log.debug(\"REST request to get all Itemss where reviewReveals is null\");\n return StreamSupport\n .stream(itemsRepository.findAll().spliterator(), false)\n .filter(items -> items.getReviewReveals() == null)\n .collect(Collectors.toList());\n }\n log.debug(\"REST request to get all Items\");\n return itemsRepository.findAll();\n }", "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult searchResult = OpenLDAP.searchUser(userFilter);\n for (int i = 0; i < searchResult.getEntryCount(); i++) {\n SearchResultEntry entry = searchResult.getSearchEntries().get(i);\n User user = new User();\n user.setDistinguishedName(entry.getDN());\n user.setUsername(entry.getAttributeValue(\"cn\"));\n user.setFirstname(entry.getAttributeValue(\"givenname\"));\n user.setLastname(entry.getAttributeValue(\"sn\"));\n user.setEmail(entry.getAttributeValue(\"mail\"));\n user.setMobile(entry.getAttributeValue(\"mobile\"));\n getUsers().put(user.getUsername(), user);\n }\n }", "Filter getFilter();", "boolean isPreFiltered();", "public String getFilter();", "public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\r\n\t\t\tthrows IOException, ServletException {\n\t\tHttpServletRequest httpRequest = (HttpServletRequest) request;\r\n\t\tUsuario usuario = (Usuario) httpRequest.getSession().getAttribute(\"user\");\r\n\r\n\t\tif (usuario == null || !\"[email protected]\".equals(usuario.getEmail())) {\r\n\t\t\thttpRequest.getRequestDispatcher(\"/login\").forward(request, response);\r\n\t\t} else {\r\n\t\t\tchain.doFilter(request, response);\r\n\t\t}\r\n\t}", "public void setContactFilter(Filter filter);", "Data<User> getUserSearch(String user);", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter1);", "FeatureHolder filter(FeatureFilter filter);", "List<Receta> getAll(String filter);", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter2, Predicate<DeviceDetails> deviceFilter3);", "@Override\n\tpublic void addFilters(\n\t\tPortletRequest portletRequest, BooleanFilter preBooleanfilter,\n\t\tBooleanFilter postFilter, QueryContext queryContext)\n\t\tthrows Exception {\n\n\t\tpreBooleanfilter.addRequiredTerm(Field.STAGING_GROUP, false);\n\t}", "@Override\n protected void doFilterInternal(HttpServletRequest httpServletRequest,\n HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {\n try {\n String jwt = getJwt(httpServletRequest);\n String phone = jwtProvider.getUserNameFormJwtToken(jwt);\n if (jwt != null && jwtProvider.validateJwtToken(jwt)) {\n MyUser user = (MyUser) customUserDetailService.loadUserByUsername(phone);\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n user, null, user.getAuthorities());\n usernamePasswordAuthenticationToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(httpServletRequest));\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n }\n\n } catch (Exception e) {\n logger.error(\"can not set authentication error ->\", e.getMessage());\n }\n filterChain.doFilter(httpServletRequest, httpServletResponse);\n }", "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n // Get the Authorization header from the request\n String authorizationHeader =\n requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n\n // Validate the Authorization header\n if (!isTokenBasedAuthentication(authorizationHeader)) {\n abortWithUnauthorized(requestContext);\n return;\n }\n\n // Extract the token from the Authorization header\n String token = authorizationHeader\n .substring(AUTHENTICATION_SCHEME.length()).trim();\n\n try {\n\n // Validate the token\n Jws<Claims> claims = validateToken(token);\n ArrayList userGroups = getUserGroups(claims);\n Permissions[] perms = getPermissionsNeeded(requestContext);\n\n authorize(userGroups, perms);\n\n } catch (Exception e) {\n abortWithUnauthorized(requestContext);\n }\n }", "public List<ShelfItem> getAllWishlist(String filter, String username, Integer from, Integer to);", "public List<String> getUsernamesByFilter(String filter)\n\t\t\tthrows InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tList<String> usernames = CatalogoUsuarios.getInstance().getByFilter(filter);\n\t\tusernames.remove(currentUser.getUsername());\n\t\treturn usernames;\n\t}", "boolean isFilterByExpression();", "@RequestMapping(\n value = \"/{start}/{end}\",\n method = RequestMethod.GET\n )\n public final Iterable<Entry> filter(\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date start,\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date end\n ) {\n if (end.before(start)) {\n throw new IllegalArgumentException(\"Start date must be before end\");\n }\n final List<Entry> result = new LinkedList<Entry>();\n List<Entry> entries = SecurityUtils.actualUser().getEntries();\n if (entries == null) {\n entries = Collections.emptyList();\n }\n for (final Entry entry : entries) {\n if (entry.getDate().after(start)\n && entry.getDate().before(end)) {\n result.add(entry);\n }\n }\n return result;\n }", "boolean doFilter() { return false; }", "public void addFilterToPolicyEntries(ViewerFilter filter);", "List<User> addUsersToShowableList(UserListRequest userListRequest);", "java.lang.String getFilter();", "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "Set<Customer> getCustomers(final CustomerQueryFilter filter);", "@Override\n public void doFilter(ServletRequest srequest, ServletResponse sresponse, FilterChain filterChain)\n throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) srequest;\n //用户session是否存在\n boolean vlogin = request.getSession().getAttribute(\"heroList\") == null;\n //是否需要进行拦截 true为需要 false为不需要\n boolean vUrl = false;\n String url = request.getRequestURI();\n List<String> urls = new ArrayList<>();\n //添加需要拦截的url\n urls.add(\"/main\");\n for (String v_url : urls) {\n if (v_url.equals(url)) {\n vUrl = true;\n break;\n }\n }\n //验证登录\n if (vlogin && vUrl) {\n request.setAttribute(\"flag\", \"error\");\n request.getRequestDispatcher(\"/login\").forward(request, sresponse);\n }\n filterChain.doFilter(srequest, sresponse);\n }", "public boolean shouldFilter() {\n return true;\n }", "private void filterClub(String filter) throws JSONException, InterruptedException {\r\n\t /**Database Manager Object used to access mlab.com*/\r\n db.setDataBaseDestination(cDatabase, null, true);\r\n db.accessDatabase();\r\n\r\n MongoCollection<Document> col = db.getEntireDatabaseResults();\r\n \r\n // iterator to go through clubs in database\r\n Iterable<Document> iter;\r\n iter = col.find();\r\n \r\n // ArrayList of clubs matching the filter type \r\n ArrayList<JSONObject> clubs = new ArrayList<>();\r\n \r\n // check clubs to see if they match the type input by the user\r\n for (Document doc : iter) {\r\n JSONObject profile = new JSONObject(doc);\r\n \r\n if (filter.equals(profile.get(\"type\").toString()))\r\n \t clubs.add(profile);\r\n }\r\n \r\n if (clubs.isEmpty()) {\r\n \t logger.log(Level.INFO, \"There are no clubs matching that type.\");\r\n \t displayFilter();\r\n }\r\n else \r\n \t filter(clubs); \r\n}", "public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}", "public interface SharedWorkAreaFilter extends Filter {\n\n /**\n * @param userName\n */\n public void setUserName(String userName);\n \n /**\n * @return userName\n */\n public String getUserName();\n \n /**\n * @param firstName\n */\n public void setFirstName(String firstName);\n \n /**\n * @return First Name\n */\n public String getFirstName();\n \n /**\n * @param lastName\n */\n public void setLastName(String lastName);\n \n /**\n * @return Last Name\n */\n public String getLastName();\n \n /**\n * @param primaryDispatchCenter\n */\n public void setPrimaryDispatchCenter(String primaryDispatchCenter);\n \n /**\n * @return Primary Dispatch Center\n */\n public String getPrimaryDispatchCenter();\n \n /**\n * @param primaryOrganization\n */\n public void setPrimaryOrganization(String primaryOrganization);\n \n /**\n * @return Primary Organization\n */\n public String getPrimaryOrganization();\n \n /**\n * @return the {@link Collection} of roleVoIds\n */\n public Collection<Integer> getRoleVoIds();\n\n /**\n * @param roleVoIds the {@link Collection} of roleVoIds to set\n */\n public void setRoleVoIds(Collection<Integer> roleVoIds);\n \n public Collection<Long> getRoleVoIdsFromIntegers() throws Exception;\n \n /**\n\t * @param sharedUsers the sharedUsers to set\n\t */\n\tpublic void setSharedUsers(Boolean sharedUsers);\n\t\n\t/**\n\t * @return the sharedUsers\n\t */\n\tpublic Boolean getSharedUsers();\n}", "public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\n\t\tHttpServletRequest httpServletRequest = (HttpServletRequest) request;\r\n\t\t\r\n\t\tString url = httpServletRequest .getRequestURI(); // pegar todas urls das paginas, vou filtrar todas as paginas, desde a raiz\r\n\t\t\r\n\t\tHttpSession sessao = httpServletRequest .getSession(); // capturando a sessão\r\n\t\t\r\n\t\tif (sessao.getAttribute(\"usuAutenticado\")!=null || url.lastIndexOf(\"login.jsp\")>-1 ||\r\n\t\turl.lastIndexOf(\"autenticador\") >-1 ){\r\n\t\tchain.doFilter(request, response); // se acessar permite acesso a todas as paginas\r\n\t\t}else{\r\n\t\t((HttpServletResponse) response).sendRedirect(\"login.jsp\"); // senão volta para o login\r\n\t\t}\r\n\t}", "void filterAction(ServerContext context, ActionRequest request,\n ResultHandler<JsonValue> handler, RequestHandler next);", "public void doFilter(ServletRequest arg0, ServletResponse arg1,\r\n\t\t\tFilterChain chain) throws IOException, ServletException {\n\t\tHttpServletRequest req=(HttpServletRequest) arg0;\r\n\t\tHttpServletResponse res=(HttpServletResponse) arg1;\r\n\t\t//获得请求的URL\r\n\t\tString url=req.getRequestURL().toString();\r\n\t\tSystem.out.println(url);\r\n\t\t//获得session中的对象\r\n\t\tHttpSession session= req.getSession();\r\n\t\tUserInfo user=(UserInfo) session.getAttribute(\"user\");\r\n\t\t//使用endsWith()判断url结尾的字符串\r\n\t\tif(url.endsWith(\"userlogin.jsp\") || user!=null||url.endsWith(\"register.jsp\")|| url.endsWith(\".css\") || \r\n\t\turl.endsWith(\".js\")|| url.endsWith(\".gif\")|| url.endsWith(\".png\")|| url.endsWith(\".jpg\")\r\n\t\t|| url.endsWith(\"index.jsp\")|| url.endsWith(\"WebProject/\")|| url.endsWith(\"register\")\r\n\t\t|| url.endsWith(\"login\")|| url.endsWith(\".jsp\"))\r\n\t\t{\r\n\t\t//满足条件就继续执行\r\n\t\tchain.doFilter(arg0, arg1);\r\n\t\t}else{\r\n\t\t//不满足条件就跳转到其他页面\r\n\t\tPrintWriter out=res.getWriter();\r\n\t\tout.print(\"<script>alert('请登录!…………');</script>\");\r\n\t\t//\r\n\t\tres.sendRedirect(req.getContextPath() + \"/jsp/userlogin.jsp\"); \r\n\t\t}\r\n\r\n\t}", "public void setFilter(EntityFilter filter);", "private void filterClients()\n {\n System.out.println(\"filtered Clients (membership of type 'Gold''):\");\n Set<Client> clients = ctrl.filterClientsByMembershipType(\"Gold\");\n clients.stream().forEach(System.out::println);\n }", "public void addFilterToIncomingLinks(ViewerFilter filter);", "public Function<Response, Response> responseFilter();", "@Override\n public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {\n if (userService == null) {\n ServletContext servletContext = servletRequest.getServletContext();\n WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n userService = webApplicationContext.getBean(UserService.class);\n }\n\n // Cast the servlet request to the http request, so we can access the header\n HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;\n\n String header = httpServletRequest.getHeader(\"Authorization\");\n // If the correct Authorization header is not present, do nothing and continue the Spring filter chain of calls\n if (header == null || !header.startsWith(\"Bearer \")) {\n filterChain.doFilter(servletRequest, servletResponse);\n return;\n }\n String token = header.replace(\"Bearer \", \"\");\n UsernamePasswordAuthenticationToken authentication = getAuthentication(token);\n\n SecurityContextHolder.getContext().setAuthentication(authentication);\n filterChain.doFilter(servletRequest, servletResponse);\n }", "@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n @PreAuthorize(\"hasPermission(0, 'user', 'READ')\")\n public ResponseEntity<?> listAll(Pageable pagination, UserFilter filter, BindingResult result) {\n return super.listAll(pagination, filter, result);\n }", "@PreAuthorize(\"hasAnyAuthority(T(rs.acs.uns.sw.sct.util.AuthorityRoles).ADMIN, T(rs.acs.uns.sw.sct.util.AuthorityRoles).ADVERTISER, T(rs.acs.uns.sw.sct.util.AuthorityRoles).VERIFIER)\")\n @GetMapping(\"/users/search\")\n public ResponseEntity<List<UserDTO>> search(@RequestParam(value = \"username\", required = false) String username,\n @RequestParam(value = \"email\", required = false) String email,\n @RequestParam(value = \"firstName\", required = false) String firstName,\n @RequestParam(value = \"lastName\", required = false) String lastName,\n @RequestParam(value = \"phoneNumber\", required = false) String phoneNumber,\n @RequestParam(value = \"companyName\", required = false) String companyName,\n Pageable pageable) {\n\n List<UserDTO> list = userService.findBySearchTerm(username, email, firstName, lastName, phoneNumber, companyName, pageable)\n .stream().map(user -> user.convertToDTO()).collect(Collectors.toList());\n\n return new ResponseEntity<>(list, HttpStatus.OK);\n }", "public void setFiltered(boolean filtered) {\n this.filtered = filtered;\n }" ]
[ "0.70995104", "0.6509243", "0.65081203", "0.6360755", "0.6312118", "0.62912446", "0.602933", "0.602109", "0.5915548", "0.5888624", "0.58827853", "0.5815049", "0.5810847", "0.5771596", "0.5769083", "0.575672", "0.5738858", "0.5728055", "0.5704555", "0.5684644", "0.5677529", "0.5671634", "0.5664799", "0.5658874", "0.5656975", "0.56273323", "0.5624003", "0.5621245", "0.5620415", "0.5582463", "0.5578635", "0.55732083", "0.557158", "0.5559556", "0.55562294", "0.5544651", "0.5543454", "0.55347854", "0.5525643", "0.5522633", "0.5505155", "0.549714", "0.5489461", "0.54864085", "0.54835224", "0.5482006", "0.5479854", "0.5477747", "0.54762036", "0.5474336", "0.5471694", "0.5461397", "0.5445328", "0.54447347", "0.5436259", "0.5434629", "0.54318184", "0.5428516", "0.5426932", "0.5420396", "0.54200786", "0.54120034", "0.540993", "0.5409193", "0.5395412", "0.53920615", "0.53849936", "0.5381364", "0.53813046", "0.5378985", "0.5378736", "0.5372392", "0.5365802", "0.5356751", "0.53534997", "0.53496486", "0.53413624", "0.5337602", "0.5336472", "0.53359735", "0.5329879", "0.5329376", "0.5319151", "0.5315589", "0.53150076", "0.5310258", "0.5298004", "0.5297202", "0.5290272", "0.5287736", "0.528599", "0.52849543", "0.5284399", "0.5281655", "0.52780473", "0.52629083", "0.5257913", "0.52504635", "0.52476335", "0.52475005" ]
0.731736
0
TODO Autogenerated method stub
@Override @Transactional(isolation=Isolation.READ_COMMITTED, propagation=Propagation.REQUIRED) public User findUser(User user) { return userDao.findUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Initializing the page objects:
public HomePage() { PageFactory.initElements(driver, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "protected void init() {\n PageFactory.initElements(webDriver, this);\n }", "public BasePageObject() {\n this.driver = BrowserManager.getInstance().getDriver();\n this.wait = BrowserManager.getInstance().getWait();\n PageFactory.initElements(driver, this);\n }", "public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}", "public HomePage() \r\n\t{\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage(){\n PageFactory.initElements(driver, this);\n }", "public HomePage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\r\n\r\n\t}", "protected void doAdditionalPageInitialization(IPage page) {\n }", "public HomePage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "private final void createAppPages() {\r\n\t\t//Instantiate Page objects that have no associated test properties\r\n\t\t//Note that if a test DOES need to specify test properties for one of these pages\r\n\t\t// (e.g., search terms), it can create its own local version of the page, and pass\r\n\t\t// the pagePropertiesFilenameKey argument, OR create it here, by calling createPage\r\n\t\t// instead of createStaticPage\r\n\r\n\t\t//Can also instantiate regular (i.e., with associated test properties) DD-specific\r\n\t\t// Page objects here, but typically it is best for the test or utility methods to do that;\r\n\t\t// if we do it here we may end up creating Page objects that never get used.\r\n }", "private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}", "public Page() {\n PageFactory.initElements(getDriver(), this); //snippet to use for @FindBy\n }", "public HomePage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "protected void createPages() {\n\t\tcreateIntroEditor();\n\t\tcreatePageMainEditor();\n\t\tcreatePageController();\n\t\tcreateCssEditor();\n\t\tcreatePageTextEditor();\n\t\trefreshPageMainEditor();\n\t\trefreshPageControllerEditor();\n\t\trefreshCssEditor();\n\t\tsetDirty(false);\n\t}", "public DocsAppHomePO ()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n \t\tPageFactory.initElements(driver, this);\n \t}", "public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private void init() {\n CycleViewPage page = (CycleViewPage) findViewById(R.id.main_view_page);\n page.setAdapter(new InfiniteImageAdapter(createImages()));\n page.setCurrentItem(Integer.MAX_VALUE / 2);\n page.setCycleSwitch(true);\n }", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\n protected void init(PageDto page, HttpServletRequest request, HttpServletResponse response, Model model) {\n\n }", "public UserPage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "private LWPageUtilities()\n {\n }", "public PageUtil() {\n\n\t}", "public LoginPage(){\n PageFactory.initElements(driver, this); //all vars in this class will be init with this driver\n }", "private void init()\n {\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n GWikiElement page = wikiContext.getWikiWeb().getElement(pageId);\n WorkflowPopupActionBean.this.page = page;\n\n // check if dependent objects exists\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(page.getElementInfo());\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, 2);\n }\n return null;\n }\n\n /**\n * Recursive fetch of child elements\n */\n private void getSubpagesRec(GWikiElementInfo parent, int curDepth)\n {\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(parent);\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, ++curDepth);\n }\n }\n });\n }", "public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}", "private void init() {\n setPageTransformer(true, new VerticalPageTransformer());\n setOverScrollMode(OVER_SCROLL_NEVER);\n }", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public PIMPage()throws IOException\n\t{\n\t\tPageFactory.initElements(driver,this);\n\t\t\n\t}", "public PageList() { \n// fileIO = new CharFileIO(\"utf-8\");\n// We are not currently using this to extract 'title' because it doesn't work \n// for whose title and meta-description tags are not explicitly specified;\n// Such as pages written in scripting languages like .jsp, .asp etc \n// parseJob = new ParseJob();\n }", "@BeforeAll\n public void beforeAll() {\n driver = browserGetter.getChromeDriver();\n //initialize page object class\n page = PageFactory.initElements(driver, WebElementInteractionPage.class);\n }", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "@Override\n\tprotected void initOwnPageComponents() {\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> Start\");\n\t\tsuper.initOwnPageComponents();\n\t\taddSelfCarePageComponents();\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> End\");\n\t}", "public TreinamentoPage() {\r\n\t\tPageFactory.initElements(TestRule.getDriver(), this);\r\n\t}", "protected static void initializePageActions() throws Exception {\n\t\tloginPageAction = new LoginPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tcomplianceReportsPageAction = new ComplianceReportsPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tmanageLocationPageActions = new ManageLocationPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tsetReportsPage((ComplianceReportsPage)complianceReportsPageAction.getPageObject());\n\t}", "public SearchPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public LoginPage()\n{\n\tPageFactory.initElements(driver, this);\n}", "public HeaderSettingsPage()\n {\n initialize();\n }", "public MyProfilePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public PageControl() {}", "protected void construct()\n\t{\n\t\tassert(driver != null);\n\t\t// V�rification que l'on est bien sur la bonne page\n\t String sTitle = driver.getTitle();\n\t\tif(!sTitle.equals(TITLE)) {\n throw new IllegalStateException(\"This is not Login Page, current page is: \" +driver.getCurrentUrl());\n\t\t}\t\t\n\t\ttbUserName = driver.findElement(ByUserName);\n\t\ttbPassword = driver.findElement(ByPassword);\n\t\tbtnConnect = driver.findElement(ByConnect);\n\t}", "private void init() {\n\t\tinitData();\n\t\tmViewPager = (ViewPagerCompat) findViewById(R.id.id_viewpager);\n\t\tnaviBar = findViewById(R.id.navi_bar);\n\t\tNavigationBarUtils.initNavigationBar(this, naviBar, true, ScreenContents.class, false, ScreenViewPager.class,\n\t\t\t\tfalse, ScreenContents.class);\n\t\tmViewPager.setPageTransformer(true, new DepthPageTransformer());\n\t\t// mViewPager.setPageTransformer(true, new RotateDownPageTransformer());\n\t\tmViewPager.setAdapter(new PagerAdapter() {\n\t\t\t@Override\n\t\t\tpublic Object instantiateItem(ViewGroup container, int position) {\n\n\t\t\t\tcontainer.addView(mImageViews.get(position));\n\t\t\t\treturn mImageViews.get(position);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void destroyItem(ViewGroup container, int position, Object object) {\n\n\t\t\t\tcontainer.removeView(mImageViews.get(position));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean isViewFromObject(View view, Object object) {\n\t\t\t\treturn view == object;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn mImgIds.length;\n\t\t\t}\n\t\t});\n\t}", "@BeforeMethod\n\tpublic void setUp() {\n\t\tdriver = new FirefoxDriver();\n\t\t\n\t\t// Launch the wikia.com web site\n\t\tdriver.get(WEBSITE_ADDRESS);\n\t\tHomePage = PageFactory.initElements(driver, HomePagePO.class);\n\t\tLoginContainer = PageFactory.initElements(driver, LoginContainerPO.class);\n\t}", "public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}", "public HomePage (WebDriver driver1)\r\n\t\t\t{\r\n\t\t\t\tPageFactory.initElements(driver1, this);\r\n\t\t\t}", "@Override\n public void establish() {\n logger.info(\"Opening page {}...\", pageObject);\n initializePage();\n pageObject.open();\n }", "public ContactsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "protected static void initializePageActions() throws Exception {\n\t\tloginPageAction = new LoginPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tmanageLocationPageAction = ActionBuilder.createManageLocationPageAction();\n\t\teqReportsPageAction = new EQReportsPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\teqReportsPage = (EQReportsPage)eqReportsPageAction.getPageObject();\n\t\tsetReportsPage(eqReportsPage);\n\t}", "public void init(IPageSite pageSite) {\n \t\tsuper.init(pageSite);\n \t}", "public ContactPage() {\n\t\t\t\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "@Override\n\tprotected void init() throws Exception {\n\t\toid = getParameter(\"oid\");\n\t\tif (AppUtil.isEmpty(oid)) {\n\t\t\toid = getArgument(\"oid\");\n\t\t}\n\t\tif (AppUtil.isEmpty(oid)) {\n\t\t\tsetupNewPage();\n\t\t} else {\n\t\t\tsetupEditPage();\n\t\t}\n\t}", "public MainPage() {\n initComponents();\n \n initPage();\n }", "public MockPageContext() {\n super();\n MockPageContext.init();\n }", "public HomePageAustria() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\n public void afterPropertiesSet() {\n // TODO: instead of autowiring initialize page objects with proxies\n try {\n Field mapField = Validator.class.getDeclaredField(\"map\");\n mapField.setAccessible(true);\n mapField.set(validator, map);\n\n Field uiField = Validator.class.getDeclaredField(\"ui\");\n uiField.setAccessible(true);\n uiField.set(validator, ui);\n } catch (ReflectiveOperationException e) {\n throw new RuntimeException(\"Could not instantiate the page object!\", e);\n }\n }", "private void initializePaging() {\r\n\t\t\r\n\t\tList<Fragment> fragments = new Vector<Fragment>();\r\n\t\tfragments.add(Fragment.instantiate(this, ContactBookFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, MainDashBoardFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, GroupDashBoardFragment.class.getName()));\r\n\t\tthis.mPagerAdapter = new PagerAdapter(super.getSupportFragmentManager(), fragments);\r\n\t\t//\r\n\t\tViewPager pager = (ViewPager)super.findViewById(R.id.viewpager);\r\n\t\tpager.setAdapter(this.mPagerAdapter);\r\n\t\tpager.setCurrentItem(1);\t// Set the default page to Main Dash Board\r\n\t}", "Page createPage();", "private void initialize() {\r\n this.setSize(new Dimension(800,600));\r\n this.setContentPane(getJPanel());\r\n\r\n List<String> title = new ArrayList<String>();\r\n title.add(\"Select\");\r\n title.add(\"Field Id\");\r\n title.add(\"Field Name\");\r\n title.add(\"Field Type\");\r\n title.add(\"Image\");\r\n\r\n List<JComponent> componentList = new ArrayList<JComponent>();\r\n componentList.add(checkInit);\r\n componentList.add(fieldIdInit);\r\n componentList.add(filedNameInit);\r\n componentList.add(fieldTypeInit);\r\n componentList.add(imageButton);\r\n\r\n String []arrColumn = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n String []arrTitle = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n // init grid\r\n grid = new GridUtils(pageSheet, title, componentList, arrColumn, preButton, afterButton, 5, arrTitle);\r\n // set title\r\n grid.setPageInfo(pageInfoLbl);\r\n \r\n searchDetailList();\r\n \r\n initComboBox();\r\n \r\n setTitle(\"Page Select page\");\r\n\t}", "public Page(PageInformation pageInfo)\n\t{\n\t\tthis.pageInfo = pageInfo;\n\t\tthis.contentInstructions = new ArrayList<ContentInstruction>();\n\t\tthis.pageContent = new HashMap<Integer, Content>();\n\t\tnextContentNumber = 0;\n\t}", "private void inicializar() {\n\t\treporte = new Jasperreport();\n\t\tdiv = new Div();\n\t}", "public WebPage(){\n dom = new LinkedList<String>() /* TODO\n//Initialize this to some kind of List */;\n }", "public StartPage() {\n initComponents();\n \n }", "public RegistrationPage() {\t\t\r\n\t\tdriver = DriverManager.getThreadSafeDriver();\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "public PageAdapter() {\n this.mapper = new MapperImpl();\n }", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "private IndexPage initializeTest() {\n Dimension dimension = new Dimension(1920, 1080);\n driver.manage().window().setSize(dimension);\n driver.get(baseUrl);\n indexPage = new IndexPage(driver);\n return indexPage;\n }", "public PageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n }", "public HTMLParser () {\r\n this.pagepart = null;\r\n }", "public QualificationsPage(){\n PageFactory.initElements(driver, this);\n }", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Before\n\tpublic void setup() {\n\t\tthis.driver = new FirefoxDriver();\n\t\tthis.homePage = new HomePage(driver);\n\t\tthis.searchResult = new SearchResult(driver);\n\t\tthis.checkout = new CheckOut(driver);\n\n\t\t// Define an implicit wait of 10 seconds for page load\n\t\tdriver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\n\t}", "protected void doInit(String titlepageid) {\n if (titlepageid != null) {\n title = titlepageid;\n pageid = titlepageid;\n stringaPageIds = titlepageid;\n domain = this.getDomain();\n super.doInit();\n }// fine del blocco if\n }", "public HotelsPage() {\n PageFactory.initElements(driver, this);\n }", "public void testInitialize()\r\n {\r\n OverviewPage page = new OverviewPage();\r\n PageManager pm = createPageManager();\r\n page.initialize(pm);\r\n assertSame(\"Page manager not set\", pm, page.getPageManager());\r\n for (int i = 0; i < page.tabPanel.getWidgetCount(); i++)\r\n {\r\n AbstractOverviewTable<?> table =\r\n (AbstractOverviewTable<?>) page.tabPanel.getWidget(i);\r\n assertSame(\"Page manager not set\", pm, table.getPageManager());\r\n }\r\n }", "public void init() {\n\t\t \r\n\t\t }", "@BeforeClass\n public void beforeClass() {\n driver = browserGetter.getChromeDriver();\n //initialize page object class\n page = PageFactory.initElements(driver, WaiterPage.class);\n }", "@BeforeMethod\n\tpublic void setup() {\n\t\tinitialization();\n\t\tloginpage = new LoginPage();\n\t\tcontactpage=new ContactPage();\n\t\ttestutil = new TestUtil();\n\t\thomepage=loginpage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\n\t}", "@Override\n\tpublic void init(IPageSite pageSite) {\n\t\tsuper.init(pageSite);\n\t}", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public void init() {\r\n\r\n\t}", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "public RepositoryParser() {\n pageElementsMap = new HashMap<String, Map<String, PageElement>>();\n }", "public HomePage(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this); //now all Page Factory elements will have access to the driver, \n\t\t\t\t\t\t\t\t\t\t\t\t//which is need to get a hold of all the elements. w/o it, tests will fail. \n\t\t\t\t\t\t\t\t\t\t\t\t//\"this\" is referring to the Class HomePage\n\t}", "public VideoPage()\r\n\t{\r\n\t}", "private void initNavigation() {\n List<String> healthRoles = Arrays.asList(Roles.ROLE_USER.name(), Roles.ROLE_ADMIN.name());\n \n // static hack to speed up development for other places\n GNode<NavigationElement> root = \n new GNode<NavigationElement>(new NavigationElement(HomePage.class, \"Home.label\", EMPTY_LIST, ComponentPosition.LEFT))\n .addChild(new GNode<NavigationElement>(\n new NavigationElement(Lightbox2Page.class, \"WicketStuff.label\", EMPTY_LIST, ComponentPosition.LEFT), Arrays.asList(\n new GNode<NavigationElement>(new NavigationElement(Lightbox2Page.class, \"Lightbox2.label\", EMPTY_LIST, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(Gmap3Page.class, \"Gmap3.label\", EMPTY_LIST, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(InmethodGridPage.class, \"InmethodGrid.label\", EMPTY_LIST, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(EditableGridPage.class, \"EditableGrid.label\", EMPTY_LIST, ComponentPosition.LEFT))\n )\n )\n )\n .addChild(new GNode<NavigationElement>(\n new NavigationElement(ManageMeasurementsPage.class, \"Health.label\", healthRoles, ComponentPosition.LEFT), Arrays.asList(\n new GNode<NavigationElement>(new NavigationElement(PlotWeightPage.class, \"Wheight.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(PlotFatPage.class, \"Fat.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(PlotWaterPage.class, \"Water.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(BmiWikiPage.class, \"BMI.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(BackupRestorePage.class, \"Backup/Restore.label\", healthRoles, ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(HealthSettingsPage.class, \"Settings.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT))\n )\n )\n )\n .addChild(new GNode<NavigationElement>(\n new NavigationElement(AdminPage.class, \"Admin.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.RIGHT), Arrays.asList(\n new GNode<NavigationElement>(new NavigationElement(ManageUsersPage.class, \"Users.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(ManageRolesPage.class, \"Roles.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT)),\n new GNode<NavigationElement>(new NavigationElement(BackupPage.class, \"Backup.label\", Arrays.asList(Roles.ROLE_ADMIN.name()), ComponentPosition.LEFT))\n )\n )\n )\n .addChild(new GNode<NavigationElement>(new NavigationElement(UserSettingsPage.class, \"Settings.label\", Arrays.asList(Roles.ROLE_USER.name(), Roles.ROLE_ADMIN.name()), ComponentPosition.RIGHT))\n );\n tree = new GTree<NavigationElement>(root);\n }", "public void init(PageContext context) {\n request = (HttpServletRequest) context.getRequest();\n response = (HttpServletResponse) context.getResponse();\n session = context.getSession();\n application = context.getServletContext();\n out = context.getOut();\n }", "private void initialization() {\n\t\tprogressbar = (ProgressBar) findViewById(R.id.progressBar1);\n\t\tprogressbar.getIndeterminateDrawable().setColorFilter(0xFFFFC107,\n\t\t\t\tandroid.graphics.PorterDuff.Mode.MULTIPLY);\n\t\ttheBrow = (WebView) findViewById(R.id.clickBrower);\n\t\trel = (RelativeLayout) findViewById(R.id.reL);\n\t\tbringBack = (Button) findViewById(R.id.bBack);\n\t\tbringForward = (Button) findViewById(R.id.bForward);\n\t\tbRefresh = (Button) findViewById(R.id.brefresh);\n\t\tinputText = (EditText) findViewById(R.id.editUrl);\n\t\tbingo = (Button) findViewById(R.id.bGo);\n\t}" ]
[ "0.8161171", "0.80116856", "0.7670543", "0.7554761", "0.729832", "0.7294494", "0.72841704", "0.7257854", "0.7247964", "0.7222719", "0.72063243", "0.71710473", "0.71371835", "0.70730585", "0.7069253", "0.70356846", "0.7009683", "0.70065165", "0.6974097", "0.6972911", "0.6972084", "0.693772", "0.6928404", "0.6928404", "0.6928404", "0.6928404", "0.69058883", "0.68834054", "0.68833137", "0.6840596", "0.6802466", "0.67854965", "0.6784926", "0.6783574", "0.6783351", "0.676707", "0.6764686", "0.6759361", "0.6754352", "0.67248476", "0.6694944", "0.66792315", "0.66737384", "0.66599613", "0.66467816", "0.66177976", "0.6603827", "0.65968776", "0.65876067", "0.65798765", "0.657651", "0.6571287", "0.65656716", "0.6540129", "0.6519146", "0.65136063", "0.6512595", "0.6508057", "0.64942324", "0.64756274", "0.647519", "0.64692026", "0.64637756", "0.6458569", "0.6444123", "0.64404243", "0.6430084", "0.64106214", "0.64062667", "0.6397302", "0.63939875", "0.6388222", "0.638102", "0.63760406", "0.6369953", "0.6367715", "0.6364228", "0.63598156", "0.63594925", "0.63579905", "0.6356104", "0.63554054", "0.63496536", "0.6347951", "0.63425916", "0.6336314", "0.63354427", "0.632645", "0.63224894", "0.63212955", "0.6313477", "0.63097453", "0.630065", "0.6285525", "0.62849945", "0.62807465", "0.6272002", "0.626811", "0.6267072", "0.6263286" ]
0.6914601
26
This method was generated by MyBatis Generator. This method returns the value of the database column buycar.itemid
public Integer getItemid() { return itemid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OrderItemDto getOrderItem(long id) throws SQLException;", "private int ricavaID(String itemSelected){\n String ogg = ricavaNome(itemSelected);\n String schema = ricavaSchema(itemSelected);\n int id = -1;\n \n Statement stmt; \n ResultSet rst;\n \n try{\n stmt = Database.getDefaultConnection().createStatement();\n \n if(modalita == TRIGGER)\n rst = stmt.executeQuery(\"SELECT T.id_trigger FROM trigger1 T WHERE T.nomeTrigger = '\" + ogg + \"' AND T.schema = '\" + schema + \"'\");\n else\n rst = stmt.executeQuery(\"SELECT P.ID_procedura FROM Procedura P WHERE P.nomeProcedura = '\" + ogg + \"' AND P.schema = '\" + schema + \"'\");\n \n while(rst.next()){\n id = rst.getInt(1);\n }\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n \n return id;\n }", "public int getItemId() {\n return itemId;\n }", "public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}", "public Long getItemId() {\r\n return itemId;\r\n }", "public int getItemID()\n {\n return itemID;\n }", "int getItemID();", "public int getItemId()\r\n {\r\n return _itemId;\r\n }", "public String getItemId() {\r\n return itemId;\r\n }", "TCar selectByPrimaryKey(Integer fitemid);", "int getItemId() {\n return m_itemId;\n }", "public String getItemId(){\r\n\t\treturn \"\";\r\n\t}", "public String getItemId() {\n return itemId;\n }", "public String getItemID() {\n\t return this.itemID;\n\t}", "public int getKeyBuyItem() {\r\n return getKeyShoot();\r\n }", "public int getCurrentBuyID(){\n return currentBuyID;\n }", "public Number getInventoryItemId() {\n return (Number)getAttributeInternal(INVENTORYITEMID);\n }", "public Number getInventoryItemId() {\n return (Number)getAttributeInternal(INVENTORYITEMID);\n }", "public int getITEM() {\r\n return item;\r\n }", "public long getItemShopBasketId();", "public static DropdownItem getItemForRegimen(Connection conn, Long itemId) throws ServletException, SQLException, ObjectNotFoundException {\r\n \tDropdownItem item = null;\r\n \tString sql = \"select item.id AS dropdownId, item_group.short_name || ': ' || item.name AS dropdownValue \" +\r\n \t\t\t\"FROM item,item_group WHERE item.ITEM_GROUP_ID = item_group.ID \" +\r\n \t\t\t\"AND item.id = ?\";\r\n \tArrayList values = new ArrayList();\r\n \tvalues.add(itemId);\r\n \titem = (DropdownItem) DatabaseUtils.getBean(conn, DropdownItem.class, sql, values);\r\n \treturn item;\r\n }", "public Item getItemById(Integer itemId);", "public String getCarid() {\n return carid;\n }", "public Integer getCarUserId() {\n return carUserId;\n }", "@Nullable\n Object getValueOfColumn(ModelColumnInfo<Item> column);", "public String inventoryItemId() {\n return this.innerProperties() == null ? null : this.innerProperties().inventoryItemId();\n }", "public int getVehiclePrice() {\n return itemPrice;\n }", "@Override\r\n public int getItemId() {\n return this.itemId;\r\n }", "@java.lang.Override\n public long getItemId() {\n return itemId_;\n }", "public long getSuburItemId();", "ICpItem getCpItem();", "public Object[] getItemId(String ItemId) throws SQLException, Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tStringBuffer strQuery = new StringBuffer();\r\n\t\tArrayList<HashMap<String, String>> rtList = new ArrayList<HashMap<String, String>>();\r\n\t\tHashMap<String, String>\t\t\t rst\t\t = null;\r\n\t\tObject[]\t\t rtObj\t\t = null;\r\n\r\n\t\tConnectionContext connectionContext = new ConnectionResource();\r\n\t\ttry {\r\n\t\t\tconn = connectionContext.getConnection();\r\n\r\n\t\t\tstrQuery.setLength(0);\r\n\t\t\tstrQuery.append(\"select cr_syscd, cr_rsrcname from cmr0020 \\n\");\r\n\t\t\tstrQuery.append(\"where cr_itemid=? \\n\");//ItemId\r\n\t pstmt = conn.prepareStatement(strQuery.toString());\r\n\t\t pstmt.setString(1, ItemId);\r\n\t rs = pstmt.executeQuery();\r\n\t\t\tif (rs.next()){\r\n\t\t\t\trst = new HashMap<String,String>();\r\n\t\t\t\trst.put(\"cr_syscd\",rs.getString(\"cr_syscd\"));\r\n\t\t\t\trst.put(\"cr_rsrcname\",rs.getString(\"cr_rsrcname\"));\r\n\t\t\t\trtList.add(rst);\r\n\t\t\t\trst = null;\r\n\t\t\t}//end of while-loop statement\r\n\t\t\trs.close();\r\n\t\t\tpstmt.close();\r\n\t\t\tconn.close();\r\n\t\t\trs = null;\r\n\t\t\tpstmt = null;\r\n\t\t\tconn = null;\r\n\r\n\t\t\trtObj = rtList.toArray();\r\n\t\t\trtList.clear();\r\n\t\t\trtList = null;\r\n\r\n\t\t\treturn rtObj;\r\n\r\n\t\t} catch (SQLException sqlexception) {\r\n\t\t\tif (conn != null){\r\n\t\t\t\tconn.close();conn = null;\r\n\t\t\t}\r\n\t\t\tsqlexception.printStackTrace();\r\n\t\t\tthrow sqlexception;\r\n\t\t} catch (Exception exception) {\r\n\t\t\tif (conn != null){\r\n\t\t\t\tconn.close();conn = null;\r\n\t\t\t}\r\n\t\t\texception.printStackTrace();\r\n\t\t\tthrow exception;\r\n\t\t}finally{\r\n\t\t\tif (strQuery != null)\tstrQuery = null;\r\n\t\t\tif (rtObj != null)\trtObj = null;\r\n\t\t\tif (rs != null) try{rs.close();}catch (Exception ex){ex.printStackTrace();}\r\n\t\t\tif (pstmt != null) try{pstmt.close();}catch (Exception ex2){ex2.printStackTrace();}\r\n\t\t\tif (conn != null){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tConnectionResource.release(conn);\r\n\t\t\t\t}catch(Exception ex3){\r\n\t\t\t\t\tex3.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _buySellProducts.getPrimaryKey();\n\t}", "public int getKeySellItem() {\r\n return getKeyShoot();\r\n }", "public ItemDTO searchItemInventory(int idItem) {\n\t\tfor (ItemData item : items) {\n\t\t\tif (item.idItem == idItem) {\n\t\t\t\treturn new ItemDTO(item.idItem, item.description, item.price, item.VAT, item.quantitySold);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "long getID(Object item);", "public int getM_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public Integer getId() {\n\t\treturn wishlistItemId;\n\t}", "public java.lang.Long getCarId() {\n return carId;\n }", "public Integer getOrderItemId() {\n return orderItemId;\n }", "public int getID(OrderItem oi){\n int id;\n id=findID(oi);\n return id;\n }", "public int getCar() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"car\")).intValue());\n }", "@Override\n public long getItemId(int itemId) {\n return itemId;\n }", "io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);", "@java.lang.Override\n public long getItemId() {\n return itemId_;\n }", "public static String getNameByID(int itemID) {\n try {\n PreparedStatement st = conn.prepareStatement(\"SELECT `Name` FROM `iteminformation` WHERE itemID=?\");\n st.setInt(1, itemID);\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n return rs.getString(\"name\");\n }\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "public int get(String item) {\n\t\treturn couponManager.get(item);\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn _buySellProducts.getId();\n\t}", "public Item getItem() {\n return Bootstrap.getInstance().getItemRepository().fetchAll().stream()\n .filter(i -> i.getId() == this.itemId)\n .findFirst().orElse(null);\n }", "@Override\n\t//查询购物车商品总数\n\tpublic int checkedQuantity(Integer userid) throws CartDaoException {\n\t\tSqlSessionFactory factory=MyBatisUtils.getSqlSessionFactory();\n\t\tSqlSession session=factory.openSession(true);\n\t\tint result=session.selectOne(\"com.neusoft.entity.Cart.checkedQuantity\", userid);\n\t\treturn result;\n\t}", "@Override\n public Item get(long idItem) throws EntityNotFound;", "public List<OrderItem> searchOrderItem(int idOrderItem) throws SQLException, Exception {\n\n List<OrderItem> lista = new ArrayList<OrderItem>();\n String query = \"SELECT * FROM order_Item WHERE id_Order_Item = ? ;\";\n\n PreparedStatement st = con.prepareStatement(query); //Prepared the query\n st.setInt(1, idOrderItem);\n\n ResultSet rs = st.executeQuery(); //Execute the select\n\n while(rs.next()) {\n OrderItem oi = new OrderItem();\n\n oi.setIdOrderItem(rs.getInt(\"id_Order_Item\"));\n oi.setAmount(rs.getInt(\"amount\"));\n oi.setProductIdProduct(rs.getInt(\"product_id_Product\"));\n oi.setOrderIdItem(rs.getInt(\"order_id_Order\"));\n\n lista.add(oi);\n \n }\n\n st.close(); //Close the Statment\n con.close(); //Close the connection\n\n return lista;\n }", "public Integer getCarparktypeid() {\n return carparktypeid;\n }", "public Integer getItemNo() {\n\t\treturn itemNo;\n\t}", "public java.lang.Long getCarId() {\n return carId;\n }", "public VenueDTO getVenue(int itemID) {\n\t\tVenueDTO venue = new VenueDTO();\n\t\tString sql = \"select Venues.VenueID as VenueID, Venues.VenueName as VenueName from Venues inner join VenueIn on Venues.VenueID = \"\n\t\t\t\t+ \"VenueIn.VenueID where VenueIn.ItemID = ?\";\n\t\tPreparedStatement preparedStatement;\n\t\ttry {\n\t\t\tConnection connection = dataSource.getConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setInt(1, itemID);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tvenue.setVenueID(resultSet.getInt(\"VenueID\"));\n\t\t\t\tvenue.setVenueName(resultSet.getString(\"VenueName\"));\n\t\t\t}\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn venue;\n\t}", "public Integer getBookid() {\n return bookid;\n }", "public Integer getBookid() {\n return bookid;\n }", "public Integer getFlyerItemId() {\n return flyer_item_id;\n }", "InventoryItem getInventoryItem();", "public Long getSellerItemInfoId() {\r\n return sellerItemInfoId;\r\n }", "public String getCOD_ITEM() {\n return COD_ITEM;\n }", "public static int getValueForItem(int item) {\n\t\t\tfor (Tiara tiara : values()) {\n\t\t\t\tif (tiara.getItem() == item)\n\t\t\t\t\treturn tiara.getValue();\n\t\t\t}\n\t\t\treturn -1;\n\t\t}", "public Integer getGoodsId() {\n return goodsId;\n }", "public Integer getGoodsId() {\n return goodsId;\n }", "public Integer getGoodsId() {\n return goodsId;\n }", "public Integer getGoodsId() {\n return goodsId;\n }", "public Integer getGoodsId() {\n return goodsId;\n }", "public Integer getGoodsId() {\n return goodsId;\n }", "public Integer getGoodsId() {\n return goodsId;\n }", "SrmFundItem selectByPrimaryKey(String itemFlow);", "@GetMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> getItemById(@PathVariable(value=\"item_id\") Long item_id){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\t\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\treturn ResponseEntity.ok().body(item);\n\t}", "private int getItemID(String item) {\n\t\titem = item.replace(\" \", \"%20\");\n\t\t//log(\"Item: \" + item);\n \ttry {\n \tString webPage = \"http://\" + serverIP + \"/getid.php?i=\" + item;\n \t//log(\"Webpage: '\" +webPage+\"'\");\n \tURL url = new URL(webPage);\n \tURLConnection urlConnection = url.openConnection();\n \tInputStream is = urlConnection.getInputStream();\n \tInputStreamReader isr = new InputStreamReader(is);\n\n \tint numCharsRead;\n \tchar[] charArray = new char[1024];\n \tStringBuffer sb = new StringBuffer();\n \twhile ((numCharsRead = isr.read(charArray)) > 0) {\n \tsb.append(charArray, 0, numCharsRead);\n \t}\n \tString result = sb.toString();\n \t//log(\"ItemID: \" + result);\n \t//window.status.setText(\"Ready\");\n\n \treturn Integer.parseInt(result);\n \t} catch (Exception e) {\n \tlog(\"Exception occurred at getID.\" + e);\n \t}\n\n \treturn 0;\n \t}", "public long getBomItemKey() {\n\t\treturn bomItemKey;\n\t}", "public int getAvailableRatingPurchaseItemId(int uid, String bid) throws Exception {\n String query = \"SELECT poi.id AS pid FROM POItem poi INNER JOIN PO p ON poi.id=p.id WHERE p.uid=? AND p.status='ORDERED' AND poi.bid=? AND poi.rating=0 LIMIT 1\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query)) {\n p.setInt(1, uid);\n p.setString(2, bid);\n ResultSet r = p.executeQuery();\n int pid = 0;\n if (r.next()) {\n pid = r.getInt(\"pid\");\n }\n r.close();\n p.close();\n con.close();\n return pid;\n }\n }", "@Override\n\tpublic IdValue getItem(int position) {\n\t\treturn idValues.get(position);\n\t}", "protected int queryPrice(int id, String key) {\n Trace.info(\"RM::queryCarsPrice(\" + id + \", \" + key + \") called\" );\n ReservableItem curObj = (ReservableItem) readData( id, key);\n int value = 0; \n if ( curObj != null ) {\n value = curObj.getPrice();\n } // else\n Trace.info(\"RM::queryCarsPrice(\" + id + \", \" + key + \") returns cost=$\" + value );\n return value; \n }", "public long getShopBasketId();", "public Long getBicycleTypeId()\n/* */ {\n/* 36 */ return this.bicycleTypeId;\n/* */ }", "public ResultSet getItemInfo(int ino) throws IllegalStateException{\n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try {\n\t\t con = openDBConnection();\n\t String queryString = \"SELECT * \" \n \t\t+ \"FROM ITEM \"\n\t\t\t + \" where INUMBER = '\"+ino+\"'\";\n\t stmt = con.createStatement();\n\t result = stmt.executeQuery(queryString);\n\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t }\n\t return result;\n}", "TradeItem getTradeItem(long id);", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId() {\n return itemId;\n }", "public String getFirstKeyColumnName() {\n\t\treturn \"wishlistItemId\";\n\t}", "public int getItemId() {\n\t\treturn id;\n\t}", "abstract int getItemID(int level);", "public void selectItem(Connection conn, int item_no) {\r\n\t\ttry {\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\tResultSet rset = stmt.executeQuery(\"select * from item_XXXX where item_no=\" + item_no);\r\n\t\t\tSystem.out.println(\"Item No\\t\\tDescription\\t\\tCategory\\t\\tPrice\\t\\tQuantity\");\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"_______________________________________________________________________________________________________\");\r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\tSystem.out.println(rset.getInt(1) + \"\\t\\t\" + rset.getString(2) + \"\\t\\t\" + rset.getString(3) + \"\\t\\t\"\r\n\t\t\t\t\t\t+ rset.getInt(4) + \"\\t\\t\" + rset.getInt(5));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public int getMapItem() {\n\t\treturn mapItem;\n\t}", "public ResultSet getItemList() throws IllegalStateException{\n\t \n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\");\n\t try{\n\t \t stmt = con.createStatement();\n String queryString = \"SELECT INUMBER , INAME , CATEG, auc_start, auc_end_date , startbid , currentbid,status \" \n \t\t+ \"FROM ITEM \"\n + \" WHERE SELLERNO = '\" + this.id +\"' \";\n\n result = stmt.executeQuery(queryString);\n \n\t }\n\t catch (Exception E) {\n\t E.printStackTrace();\n\t }\n\t return result; \n\t }", "public Integer getBuy_num() {\n return buy_num;\n }", "public static Item getItem( ) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n \n\tString query = \"select * from Item\";\n\ttry {\n ps = connection.prepareStatement(query);\n\t ResultSet rs = null;\n\t rs = ps.executeQuery();\n \n\t Item item = new Item();\n \n\t if (rs.next()) {\n\t\titem.setAttribute(rs.getString(1));\n\t\titem.setItemname(rs.getString(2));\n\t\titem.setDescription(rs.getString(3));\n\t\titem.setPrice(rs.getDouble(4));\n\t }\n\t rs.close();\n\t ps.close();\n\t return item;\n\t} catch (java.sql.SQLException sql) {\n\t sql.printStackTrace();\n\t return null;\n\t}\n }", "HpItemParamItem selectByPrimaryKey(Long id);", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "public static item getItemById(int id) {\n try {\n PreparedStatement st = conn.prepareStatement(\"SELECT itemID, ownerID, Name, status, description, category, image1,image2,image3,image4 FROM iteminformation WHERE itemID=?\");\n st.setInt(1, id);\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n item item = new item(rs.getInt(1), rs.getString(2), rs.getString(3), (rs.getInt(4) == 1) ? true : false, rs.getString(5), rs.getString(6), rs.getBlob(7), rs.getBlob(8), rs.getBlob(9), rs.getBlob(10));\n return item;\n } else {\n return null;\n }\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public Integer getBuyModel() {\r\n return buyModel;\r\n }", "public String getItemcd() {\r\n return itemcd;\r\n }", "public int getQuantity( String id )\n {\n DatabaseHelper helper = new DatabaseHelper(this);\n Cursor cursor = helper.getQuantity(id);\n int i = 0;\n\n while (cursor.moveToNext())\n {\n String j = cursor.getString(0);\n i = i + Integer.parseInt(j);\n }\n\n return i;\n }", "public Integer getItemDetailId() {\n return itemDetailId;\n }", "public int getItemNo() {\n return itemNo;\n }", "public Item getItem(long idItem) throws ItemNotFound;" ]
[ "0.56955487", "0.565943", "0.56377304", "0.5627906", "0.5627704", "0.5625918", "0.5591222", "0.55876887", "0.55557376", "0.55216515", "0.5513061", "0.55092394", "0.5507491", "0.5496706", "0.54831403", "0.54662675", "0.54534346", "0.54534346", "0.54203045", "0.5398171", "0.5353381", "0.53515905", "0.5335757", "0.5324492", "0.5302099", "0.528808", "0.5258731", "0.52395993", "0.52358305", "0.52204764", "0.52118963", "0.51848435", "0.5184417", "0.51843715", "0.51754445", "0.5165755", "0.5155778", "0.51475424", "0.51368225", "0.51233166", "0.5117205", "0.51153046", "0.51131284", "0.51069564", "0.51055115", "0.51036876", "0.510254", "0.5090338", "0.5076889", "0.50709987", "0.50688267", "0.5053877", "0.5050686", "0.5036568", "0.502917", "0.50220805", "0.50219816", "0.50219816", "0.5021029", "0.5018653", "0.5015243", "0.500691", "0.5003367", "0.49813563", "0.49813563", "0.49813563", "0.49813563", "0.49813563", "0.49813563", "0.49813563", "0.49811378", "0.49721998", "0.4966061", "0.49543792", "0.49418268", "0.49360713", "0.49302143", "0.4927795", "0.49170408", "0.49145785", "0.4910884", "0.49075097", "0.49060255", "0.48985738", "0.4895573", "0.48950928", "0.4894887", "0.48921412", "0.48892057", "0.48882312", "0.48780727", "0.48698983", "0.48662266", "0.48651156", "0.4863693", "0.4863578", "0.48633686", "0.48551133", "0.4846586" ]
0.58284163
1
This method was generated by MyBatis Generator. This method sets the value of the database column buycar.itemid
public void setItemid(Integer itemid) { this.itemid = itemid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setItemId(String itemId);", "public void setItem_id(int item_id) {\r\n\t\tthis.item_id = item_id;\r\n\t}", "@Override\r\n public void setItemId(int itemId) {\n this.itemId = itemId;\r\n }", "public void setItemId(Long itemId) {\r\n this.itemId = itemId;\r\n }", "public void setCar(final SessionContext ctx, final Employee item, final Car value)\n\t{\n\t\titem.setProperty(ctx, CarConstants.Attributes.Employee.CAR,value);\n\t}", "public void setVehiclePrice(int vehiclePrice) {\n this.itemPrice = vehiclePrice;\n }", "public void setItemId(int itemId) {\n\t\tthis.itemId = itemId;\n\t}", "public void setCar(final Employee item, final Car value)\n\t{\n\t\tsetCar( getSession().getSessionContext(), item, value );\n\t}", "public void setQuantityToNull(DrinkItem drinkItem) throws SQLException{\n\t\tPreparedStatement myStmt = null;\n\t\ttry{\n\t\t\tmyStmt = myConn.prepareStatement(\"update drink set quantity = null where drink_code =?\");\n\t\t\tmyStmt.setInt(1, drinkItem.getDrinkCode());\n\t\t\tmyStmt.executeUpdate();\n\t\t}\n\t\tfinally{\n\t\t\tif(myStmt != null)\n\t\t\t\tmyStmt.close();\n\t\t}\n\t}", "public void setITEM(int value) {\r\n this.item = value;\r\n }", "public void setItemID(String itemID) {\n\t this.itemID = itemID;\n\t}", "public void setItemNo(int value) {\n this.itemNo = value;\n }", "public void editItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tString queryString = \"Update team1.GABES_ITEM Set ITEM_CATEGORY=?, DESCRIPTION=?, ITEM_NAME=?\";\n\t\tqueryString += \"Where ITEM_ID='\" + this.item_id + \"'\";\n\t\t/** Clears parameters and then sets new values */\n\t\tPreparedStatement p_stmt = con.prepareCall(queryString);\n\t\t/** Set new attribute values */\n\t\tp_stmt.clearParameters();\n\t\tp_stmt.setString(1, this.item_category);\n\t\tp_stmt.setString(2, this.description);\n\t\tp_stmt.setString(3, this.item_name);\n\t\t/* Executes the Prepared Statement query */\n\t\tp_stmt.executeQuery();\n\t\tp_stmt.close();\n\t}", "public void setItemId(String itemId) {\n this.itemId = itemId;\n }", "private void loadItem(Item item, ResultSet resultSet, int index) throws SQLException {\n\t\t\titem.setName(resultSet.getString(index++));\n\t\t\titem.setLocationID(resultSet.getInt(index++));\n\t\t\titem.setItemID(resultSet.getInt(index++));\n\t\t}", "public void setItem(Item item) {\n this.item = item;\n }", "public void setBuyModel(Integer buyModel) {\r\n this.buyModel = buyModel;\r\n }", "public void setCarUserId(Integer carUserId) {\n this.carUserId = carUserId;\n }", "public void setCarItems(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = COMPANY_CAR_OPTIONS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\tthis.car_options = comboItems;\r\n\t}", "public Builder setItemId(long value) {\n \n itemId_ = value;\n onChanged();\n return this;\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "public void setCarId(java.lang.Long value) {\n this.carId = value;\n }", "public void setFlyerItemId(Integer value) {\n this.flyer_item_id = value;\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setInventoryItemId(Number value) {\n setAttributeInternal(INVENTORYITEMID, value);\n }", "public void setInventoryItemId(Number value) {\n setAttributeInternal(INVENTORYITEMID, value);\n }", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setCarparktypeid(Integer carparktypeid) {\n this.carparktypeid = carparktypeid;\n }", "public void setItemId(String itemId) {\r\n this.itemId = itemId == null ? null : itemId.trim();\r\n }", "public void setItemNo(Integer itemNo) {\n\t\tif (itemNo == 0) {\n\t\t\tthis.itemNo = null;\n\t\t} else {\n\t\t\tthis.itemNo = itemNo;\n\t\t}\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}", "public void setItemShopBasketId(long itemShopBasketId);", "@Override\r\n\tpublic void applyItem(long item_code) {\n\t\tint i = sqlSession.update(ns+\".applyItem\", item_code);\r\n\t\tif(i>0) System.out.println(\"applyItem\");\r\n\t}", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "public void setValues(PreparedStatement ps, int i) throws SQLException {\n String id = items.get(i).getTransactionId();\n ps.setString(1, id);\n\t\t\t\t}", "public void setBuy_num(Integer buy_num) {\n this.buy_num = buy_num;\n }", "public void setItem(Item collectibleItem) {\n\t\tthis.item = collectibleItem;\r\n\t}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"upItem\")\n\tpublic ZuelResult upItem(Long id) {\n\t\treturn service.upItem(id);\n\t}", "public void setIdImovel(String idImovel) {\r\n this.idImovel = idImovel;\r\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_buySellProducts.setId(id);\n\t}", "public void setBuyNum(Integer buyNum) {\n this.buyNum = buyNum;\n }", "public void updateQuantity(DrinkItem temp, int val) throws SQLException{\n\t\t\n\t\tPreparedStatement myStmt = null;\n\t\ttry{\n\t\t\tmyStmt = myConn.prepareStatement(\"update drink set quantity=? where drink_code=?\");\n\t\t\tmyStmt.setInt(1, val);\n\t\t\tmyStmt.setInt(2, temp.getDrinkCode());\n\t\t\tmyStmt.executeUpdate();\n\t\t}\n\t\tfinally{\n\t\t\tif(myStmt != null)\n\t\t\t\tmyStmt.close();\n\t\t}\n\t\t\n\t}", "public void setId(int id) throws ItemException\n {\n if (id > 0)\n {\n this.id = id;\n }\n else\n {\n Throwable t = new Throwable(\n \"ERROR setId: the item's id value is not a valid positive integer.\");\n throw new ItemException(\"There was a problem with the item's id value to be set.\", t);\n }\n }", "public void setItem (jkt.hms.masters.business.MasStoreItem item) {\n\t\tthis.item = item;\n\t}", "public void setBomItemKey(long value) {\n\t\tthis.bomItemKey = value;\n\t}", "public void setCarID(Integer carID) {\r\n this.carID = Objects.requireNonNull(carID);\r\n }", "public void setCar(long value) {\r\n this.car = value;\r\n }", "public void setCarbuydate(Date carbuydate) {\n this.carbuydate = carbuydate;\n }", "private void updateItem(Item item) throws SQLException\n {\n int itemId = item.getId();\n logger.debug(\"Updating Item with id \" + itemId + \"...\");\n try(Statement statement = connection.createStatement())\n {\n String sql = MessageFormat.format(\"UPDATE Items SET (title, description, price) = ({0}, {1}, {2}) WHERE id = {3}\",\n escapeStringValue(item.getTitle()), escapeStringValue(item.getDescription()), item.getPrice(), itemId);\n statement.addBatch(sql);\n statement.addBatch(\"DELETE FROM Items_Locations WHERE item_id = \" + itemId);\n statement.executeBatch();\n addItemQuantitiesPerLocation(item);\n }\n logger.debug(\"Updated Item successfully.\");\n }", "public void update(ItemsPk pk, Items dto) throws ItemsDaoException;", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public void set(int position, Item item) {\n if (mUseIdDistributor) {\n IdDistributor.checkId(item);\n }\n mItems.set(position - getFastAdapter().getItemCount(getOrder()), item);\n mapPossibleType(item);\n getFastAdapter().notifyAdapterItemChanged(position);\n }", "@Override\n\t\tpublic void updateRawitem(Rawitem Rawitem) {\n\t\t\tString sql=\"UPDATE Rawitem \"\n\t\t\t\t\t+ \"set suppliedby= :suppliedby,rquantity=:rquantity,riprice=:riprice,rstock=:rstock\"\n\t\t\t\t\t+ \" where rid=:rid\";\n\t\t\tnamedParameterJdbcTemplate.update(sql,getSqlParameterByModel(Rawitem));\n\t\t\t \n\t\t}", "public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}", "public Integer getItemid() {\n return itemid;\n }", "public Integer getItemid() {\n return itemid;\n }", "void SetItemNumber(int ItemNumber);", "public int getItemID()\n {\n return itemID;\n }", "public void setPropertyBuyerId(int propertyBuyerId) {\n\t\tthis.propertyBuyerId = propertyBuyerId;\n\t}", "public void setCOD_ITEM(String COD_ITEM) {\n this.COD_ITEM = COD_ITEM;\n }", "public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }", "@PutMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> updateItem(@PathVariable(value=\"item_id\") Long item_id, @Valid @RequestBody Item itemDetails){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\titem.setItem_id(itemDetails.getItem_id());\n\t\titem.setItem_name(itemDetails.getItem_name());\n\t\titem.setItem_discription(itemDetails.getItem_discription());\n\t\titem.setCategory(itemDetails.getCategory());\n\t\titem.setPrice(itemDetails.getPrice());\n\t\t\n\t\tItem upItem = itemDAO.save(item);\n\t\t\n\t\treturn ResponseEntity.ok().body(upItem);\n\t\t\n\t}", "public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}", "@Modifying(clearAutomatically = true)\n\t@Lock(value = LockModeType.OPTIMISTIC_FORCE_INCREMENT)\n @Query(\"UPDATE Item i SET i.quantity = i.quantity + ?1 WHERE i =?2\")\n int addToStock(double qty, Item item);", "public int getItemId()\r\n {\r\n return _itemId;\r\n }", "public String getCarid() {\n return carid;\n }", "@Override\n public void setEquippedItem(IEquipableItem item) {}", "public int getItemId() {\n return itemId;\n }", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void SetDefautValueCombo(Item item) \n {\n this.defautValueCombo=item;\n ;\n }", "public String updateByPrimaryKeySelective(Car record) {\n SQL sql = new SQL();\n sql.UPDATE(\"`basedata_car`\");\n \n if (record.getCarBrandId() != null) {\n sql.SET(\"car_brand_id = #{carBrandId,jdbcType=INTEGER}\");\n }\n \n if (record.getCarModel() != null) {\n sql.SET(\"car_model = #{carModel,jdbcType=VARCHAR}\");\n }\n \n if (record.getCarType() != null) {\n sql.SET(\"car_type = #{carType,jdbcType=TINYINT}\");\n }\n \n if (record.getAlias() != null) {\n sql.SET(\"alias = #{alias,jdbcType=VARCHAR}\");\n }\n \n if (record.getSeatType() != null) {\n sql.SET(\"seat_type = #{seatType,jdbcType=TINYINT}\");\n }\n \n if (record.getSeatNum() != null) {\n sql.SET(\"seat_num = #{seatNum,jdbcType=TINYINT}\");\n }\n \n if (record.getCarClass() != null) {\n sql.SET(\"car_class = #{carClass,jdbcType=INTEGER}\");\n }\n \n if (record.getGuestNum() != null) {\n sql.SET(\"guest_num = #{guestNum,jdbcType=INTEGER}\");\n }\n \n if (record.getLuggageNum() != null) {\n sql.SET(\"luggage_num = #{luggageNum,jdbcType=INTEGER}\");\n }\n \n if (record.getSpell() != null) {\n sql.SET(\"spell = #{spell,jdbcType=VARCHAR}\");\n }\n \n if (record.getEnName() != null) {\n sql.SET(\"en_name = #{enName,jdbcType=VARCHAR}\");\n }\n \n if (record.getUpdatedAt() != null) {\n sql.SET(\"updated_at = #{updatedAt,jdbcType=TIMESTAMP}\");\n }\n \n if (record.getCreatedAt() != null) {\n sql.SET(\"created_at = #{createdAt,jdbcType=TIMESTAMP}\");\n }\n \n sql.WHERE(\"car_id = #{carId,jdbcType=INTEGER}\");\n \n return sql.toString();\n }", "public Long getItemId() {\r\n return itemId;\r\n }", "@Override\n\t\tpublic void addRawitem(Rawitem Rawitem) {\n\t\t\tString sql=\"INSERT INTO rawitem(suppliedby,rquantity,riprice,rstock)\"\n\t\t\t\t\t+ \" values (:suppliedby,:rquantity,:riprice,:rstock)\";\n\t\t\tnamedParameterJdbcTemplate.update(sql,getSqlParameterByModel(Rawitem));\n\t\t}", "public void setCarCode(String carCode)\r\n {\r\n this.carCode = carCode;\r\n }", "public void AddtoCart(int id){\n \n itemdb= getBooksById(id);\n int ids = id;\n \n for(Books k:itemdb){ \n System.out.println(\"Quantity :\"+k.quantity); \n if (k.quantity>0){\n newcart.add(ids);\n System.out.println(\"Added to cartitem list with bookid\"+ ids);\n setAfterBuy(ids);\n System.out.println(\"Quantity Updated\");\n setCartitem(newcart);\n System.out.println(\"setCartitem :\"+getCartitem().size());\n System.out.println(\"New cart :\"+newcart.size());\n test.add(k);\n }\n else{\n System.out.println(\"Quantity is not enough !\");\n }\n }\n setBookcart(test);\n }", "void setValueOfColumn(ModelColumnInfo<Item> column, @Nullable Object value);", "protected void setItemPrice(Double itemPrice) {\n this.itemPrice = itemPrice;\n }", "public Item(Car car, Type type) {\n\t\tthis.type = type;\n\t\tthis.car = car;\n\t\tid = 1;\n\t}", "public void setItemPrice(AmountType itemPrice) {\n\t this.itemPrice = itemPrice;\n\t}", "public void setItemCode(String itemCode) {\n this.itemCode = itemCode;\n }", "public void setItem(T item) {\n this.item = item;\n }", "public void setHotelID(int value) {\n this.hotelID = value;\n }", "public void setSellerItemInfoId(Long sellerItemInfoId) {\r\n this.sellerItemInfoId = sellerItemInfoId;\r\n }", "public void setOrderItemId(Integer orderItemId) {\n this.orderItemId = orderItemId;\n }", "public void setM_Inventory_ID (int M_Inventory_ID)\n{\nif (M_Inventory_ID <= 0) set_Value (\"M_Inventory_ID\", null);\n else \nset_Value (\"M_Inventory_ID\", new Integer(M_Inventory_ID));\n}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId() {\n return itemId;\n }", "public void stockItem(String upc, int qty) \n\n\t\t\tthrows SQLException, ClassNotFoundException, IOException\n\n\t\t\t{\n\n\t\tif(qty < 0 )\n\n\t\t\t//sanity check\n\n\t\t\tthrow new IOException(\"Quantity input cannot be less than 0.\");\n\n\n\n\t\tif(this.conn == null)\n\n\t\t\tthis.conn = JDBCConnection.getConnection();\n\n\n\n\t\tPreparedStatement stmt = conn.prepareStatement(\n\n\t\t\t\t\"UPDATE Item \" +\n\n\t\t\t\t\t\t\"SET stock = stock + ? \" +\n\n\t\t\t\t\"WHERE upc = ? \");\n\n\t\tstmt.setInt(1, qty);\n\n\t\tstmt.setString(2, upc);\n\n\t\ttry\n\n\t\t{\n\n\t\t\tint update = stmt.executeUpdate();\n\n\t\t\tif(update == 1)\n\n\t\t\t\treturn;\n\n\t\t\telse if(update == 0)\n\n\t\t\t\t//if none is update\n\n\t\t\t\tthrow new SQLException(\"The Item with upc \" + upc + \" does \" +\n\n\t\t\t\t\t\t\"not exist.\");\n\n\t\t\telse\n\n\t\t\t\t//Fatal error: more than 1 tuple is updated -> duplicate upc!!!\n\n\t\t\t\tthrow new SQLException(\"Fatal Error: Duplicate UPC!\");\n\n\t\t}\n\n\t\tfinally\n\n\t\t{\n\n\t\t\tstmt.close();\n\n\t\t}\n\n\t\t\t}", "public String getItemId() {\r\n return itemId;\r\n }", "public void setItemSeq(Integer itemSeq) {\n this.itemSeq = itemSeq;\n }", "public void setBeanBagPrice(String id, int priceInPence)\r\n throws InvalidPriceException, BeanBagIDNotRecognisedException, IllegalIDException {\n Check.validID(id);\r\n // If the \"priceinPence\" integer is less than 1.\r\n if (priceInPence < 1) {\r\n // Throw exception \"InvalidPriceException\", as the price is not correctly formatted.\r\n throw new InvalidPriceException(\"Price must be 1 pence or higher\");\r\n }\r\n // Define integer \"counter\" and set the value to 0.\r\n int counter = 0;\r\n // Loop through every object in the \"stockList\" object array list.\r\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the ID of the beanBag in the stockList matches the passed parameter ID\r\n // AND the beanBag is NOT already reserved.\r\n if ((((BeanBag) stockList.get(i)).getID()).equals(id)\r\n && !((BeanBag) stockList.get(i)).getReserved()) {\r\n // Set the \"price\" integer in the \"stockList\" to the \"priceInPence\" integer parameter.\r\n ((BeanBag) stockList.get(i)).setPrice(priceInPence);\r\n // Increment the \"counter\" integer by 1.\r\n counter++;\r\n }\r\n }\r\n // If the \"counter\" integer is less than or equal to 0.\r\n if (counter <= 0) {\r\n // Throw exception \"BeanBagIDNotRecognisedException\", as the beanbag ID doesn't exist.\r\n throw new BeanBagIDNotRecognisedException(\"No BeanBags with ID: \" + id + \" were found.\");\r\n }\r\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "@Override\n @Transactional\n public void update(Item item) {\n Produto produto = item.getProduto();\n produtoDao.updateEstoqueProduto(produto.getQuantidade() - item.getQuantidade(), produto.getId());\n }", "public void setItemLocationId(Long itemLocationId) {\r\n this.itemLocationId = itemLocationId;\r\n }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }" ]
[ "0.5891923", "0.5875752", "0.5741289", "0.57221425", "0.5656474", "0.55689627", "0.55498993", "0.5490245", "0.54892975", "0.5485818", "0.5447222", "0.54304045", "0.5404637", "0.53849196", "0.5331623", "0.5195279", "0.518984", "0.5181468", "0.5176356", "0.5164039", "0.5153912", "0.51418597", "0.51309294", "0.5115955", "0.51117885", "0.51117885", "0.5110106", "0.5110106", "0.50869876", "0.5046722", "0.50465393", "0.50378835", "0.5029627", "0.5024281", "0.5007058", "0.50038016", "0.50025934", "0.50017565", "0.49975947", "0.4983119", "0.4978796", "0.4973026", "0.49717072", "0.49701154", "0.49670392", "0.49599236", "0.49574146", "0.4947281", "0.49433514", "0.49398297", "0.49323946", "0.49158886", "0.49151024", "0.49151024", "0.491121", "0.49057394", "0.49046308", "0.48987532", "0.4896628", "0.4896628", "0.48854452", "0.48804358", "0.48799688", "0.4878842", "0.48764443", "0.4865602", "0.48621714", "0.48612368", "0.4856048", "0.48544046", "0.48491177", "0.48455274", "0.48440963", "0.48440963", "0.4842102", "0.48408765", "0.4840422", "0.48183727", "0.48164737", "0.48160848", "0.481561", "0.48155585", "0.48097998", "0.47983032", "0.4797512", "0.47921234", "0.4789414", "0.4783834", "0.47825125", "0.4778175", "0.47749975", "0.47712132", "0.47675058", "0.47596142", "0.47520006", "0.4748321", "0.47458863", "0.4743758", "0.47384435" ]
0.5958889
1
This method was generated by MyBatis Generator. This method returns the value of the database column buycar.userid
public Integer getUserid() { return userid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public Long getUserid() {\r\n return userid;\r\n }", "public Integer getCarUserId() {\n return carUserId;\n }", "Integer getUserId();", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "Long getUserId();", "public Integer getUserid() {\n\t\treturn this.userid;\n\t}", "long getUserId();", "long getUserId();", "String getUserId();", "String getUserId();", "@Override\n\tpublic long getUserId();", "@Override\n\tpublic long getUserId();", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}", "public int getUserId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}", "public Integer getUserId() {\r\n return userId;\r\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "@Override\n\tpublic String getUserIdById(HashMap<String, Object> map) {\n\t\treturn sqlSession.selectOne(PATH + \"getUserIdById\", map);\n\t}", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "public long getUserId() {\r\n return userId;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}", "@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}", "@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}", "public Integer getUserID() {\n return userID;\n }", "@Override\r\n\tpublic int useridselect(String userid) {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".select_userid_list\", userid);\r\n\t}", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public int getUserId() {\r\n return this.UserId;\r\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public long getUserId() {\n return userId;\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public BigDecimal getUserId() {\r\n return userId;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public Integer getUserId() {\n\t\treturn userId;\n\t}", "public int getUserId() {\n return userId_;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }" ]
[ "0.69425184", "0.69425184", "0.69425184", "0.6939789", "0.68206334", "0.67502826", "0.67244375", "0.67163205", "0.67163205", "0.67163205", "0.67163205", "0.6710002", "0.6709762", "0.66800255", "0.66800255", "0.6644314", "0.6644314", "0.6548846", "0.6548846", "0.6472918", "0.6472918", "0.6466871", "0.645491", "0.6452038", "0.6452038", "0.6442045", "0.64403033", "0.6427931", "0.64185286", "0.6408761", "0.6408761", "0.6408761", "0.64067924", "0.64056224", "0.64030135", "0.64030135", "0.64030135", "0.6401458", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63899416", "0.63881457", "0.63881457", "0.63881457", "0.6381", "0.63746434", "0.6354386", "0.63475937", "0.63446456", "0.6344162", "0.6343418", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.6342031", "0.63403136", "0.6336988", "0.6336988" ]
0.681996
13
This method was generated by MyBatis Generator. This method sets the value of the database column buycar.userid
public void setUserid(Integer userid) { this.userid = userid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCarUserId(Integer carUserId) {\n this.carUserId = carUserId;\n }", "public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}", "private void setUserId(long value) {\n \n userId_ = value;\n }", "public void setUserId(int value) {\n this.userId = value;\n }", "public void setUserId(long value) {\r\n this.userId = value;\r\n }", "@Override\n\tpublic void setUserId(long userId);", "@Override\n\tpublic void setUserId(long userId);", "private void setUserId(long value) {\n\n userId_ = value;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "public void setUserId(long value) {\n this.userId = value;\n }", "void setUserId(Long userId);", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setUserID(int value) {\n this.userID = value;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "public void setUserid(java.lang.String userid) {\n this.userid = userid;\n }", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }", "void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}", "public void setUserId(int userId)\r\n\t{\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "@Override\n public void setUserId(long userId) {\n _usersCatastropheOrgs.setUserId(userId);\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_employee.setUserId(userId);\n\t}", "public void setUserId(int userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId( Integer userId ) {\n this.userId = userId;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserId(int userId) {\n this.mUserId = userId;\n }", "public void setUserId(int userId) {\n this.mUserId = userId;\n }", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public void setUserId(Long userId) {\n this.userId = userId;\n }", "public Integer getCarUserId() {\n return carUserId;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}" ]
[ "0.7027567", "0.6800919", "0.666672", "0.666672", "0.666672", "0.666672", "0.6604922", "0.65840083", "0.6578495", "0.65756685", "0.6558686", "0.6558686", "0.65422714", "0.65391", "0.6534276", "0.6524816", "0.6514791", "0.64647233", "0.64516836", "0.6449257", "0.6439916", "0.6435521", "0.6433882", "0.6425191", "0.64231205", "0.63967395", "0.6351802", "0.6339576", "0.6302887", "0.62981826", "0.62981826", "0.62981826", "0.62841475", "0.62841475", "0.62663037", "0.6255951", "0.6255951", "0.624124", "0.624124", "0.624124", "0.6220069", "0.62107986", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.619712", "0.6190327", "0.6166148", "0.61639726", "0.61477053", "0.61454326", "0.61454326", "0.61454326", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61378676", "0.61326885", "0.6119326", "0.6119326", "0.6119326" ]
0.66122156
16
This method was generated by MyBatis Generator. This method returns the value of the database column buycar.price
public Integer getPrice() { return price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getPrice() {\n return price;\n }", "public String getBuyprice() {\n return buyprice;\n }", "public double getBuyPrice() {\n return buyPrice;\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public Integer getPrice() {\r\n return price;\r\n }", "public Integer getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public long getPrice() {\n return price;\n }", "@Element \n public Long getPrice() {\n return price;\n }", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "@Import(\"price\")\n\tint getPrice();", "public double getPrice(){\n\t\treturn this.price;\n\t}", "public Double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\n return this.price;\n }", "public int getPrice() {\n return price;\n }", "public double getPrice(){\n\t\t\treturn price;\n\t\t}", "public double getPrice() {\n return price;\n }", "BigDecimal getPrice();", "public double getPrice()\n {\n return this.price;\n }", "public double getPrice(){\n\t\treturn price;\n\t}", "public int getPrice() {\n return price_;\n }", "public String getPrice() {\n return price;\n }", "public String getPrice() {\n return price;\n }", "public BigDecimal\tgetPrice();", "public Double getPrice() {\n return price;\n }", "public Double getPrice() {\n return price;\n }", "public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public int getPrice() {\r\n return price;\r\n }", "public int getPrice() {\n return price;\n }", "long getPrice();", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public int getPrice() {\n return price;\n }", "public int getPrice() {\n return price;\n }", "public int getPrice(){\n\n return this.price;\n }", "public double getPrice()\r\n {\r\n return this.price;\r\n }", "public double price() {\n return price;\n }", "public double getPrice(){\n\t\t\n\t\treturn price;\n\t}", "public double getPrice() {\n return price_;\n }", "public int getPrice ( ) {\n return price;\n }", "public int getVehiclePrice() {\n return itemPrice;\n }", "public Double getPrice();", "public java.lang.Integer getPrice()\n {\n return price;\n }", "public int getPrice() {\n return price_;\n }", "public Long getTotalprice() {\n return totalprice;\n }", "public Money getPrice() {\n return price;\n }", "public Money getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n return price_;\n }", "public Double getPrice() {\r\n\t\treturn price;\r\n\t}", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice() {\n\t\treturn this.price;\n\t\t\n\t}", "public Date getPrice() {\n return price;\n }", "public int getPrice() {\n\treturn price;\n}", "public double getPrice();", "public double getPrice()\r\n {\r\n return price;\r\n }", "public BigDecimal getVehiclePrice() {\n\t\treturn vehiclePrice;\n\t}", "public int getPrice() {\r\n\t\treturn price;\r\n\t}", "public java.math.BigDecimal getPrice() {\n return price;\n }", "public double getPrice()\n {\n \treturn price;\n }", "double getPrice();", "double getPrice();", "double getPrice();", "public int getPrice()\n {\n return price;\n }", "@Basic\r\n\tpublic DukatAmount getPrice(){\r\n\t\treturn price;\r\n\t}", "public Double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice()\n {\n return price;\n }", "public double getPrice() {\n\t\treturn this.price;\n\t}", "String getPrice() {\n return Double.toString(price);\n }", "public float getPrice() {\n return _price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public double getPrice()\n\t{\n\t\treturn this.price;\n\t}", "String getPrice();", "public java.lang.String getPrice() {\n return price;\n }", "@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}", "public int getPrice(){\n return 80;\n }" ]
[ "0.6725149", "0.6646438", "0.6538665", "0.6507671", "0.6507671", "0.65009546", "0.65009546", "0.6472228", "0.6472228", "0.6472228", "0.6472228", "0.6472228", "0.64647406", "0.6460426", "0.64157933", "0.6412232", "0.64117455", "0.6395212", "0.63944983", "0.63902444", "0.63891095", "0.63700056", "0.63695604", "0.63693714", "0.6354355", "0.63504857", "0.634972", "0.634972", "0.63455987", "0.63431364", "0.63431364", "0.6338599", "0.63384455", "0.63384455", "0.63384455", "0.63384455", "0.63327676", "0.63135165", "0.63125926", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.63124543", "0.6309654", "0.6309654", "0.6297603", "0.62940884", "0.628919", "0.6286634", "0.62864816", "0.62844574", "0.6284145", "0.62763196", "0.62703806", "0.6262389", "0.62565243", "0.6253891", "0.6249967", "0.624957", "0.624766", "0.62433", "0.62433", "0.62433", "0.6238229", "0.6237533", "0.6233432", "0.6231194", "0.6220591", "0.6220023", "0.6219669", "0.6218851", "0.61997765", "0.61934596", "0.61934596", "0.61934596", "0.61905134", "0.6184037", "0.61726147", "0.6171427", "0.617137", "0.61713344", "0.61634165", "0.6158419", "0.6158419", "0.6158419", "0.6146586", "0.6145782", "0.6131721", "0.6131387", "0.613065" ]
0.6491661
10
This method was generated by MyBatis Generator. This method sets the value of the database column buycar.price
public void setPrice(Integer price) { this.price = price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(int price) {\r\n this.price = price;\r\n }", "public void setPrice(int price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Long price) {\n this.price = price;\n }", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(int price) {\n this.price = (double)price;\n }", "public void setPrice(int price) {\n\tthis.price = price;\n}", "public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(final BigDecimal price) {\n this.price = price;\n }", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public void setPrice(Double price);", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "public void setPrice(double price){this.price=price;}", "public void setPrice(Date price) {\n this.price = price;\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }", "public void setPrice(String price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(java.lang.String price) {\n this.price = price;\n }", "public void setVehiclePrice(int vehiclePrice) {\n this.itemPrice = vehiclePrice;\n }", "public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}", "protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "@Element \n public void setPrice(Long price) {\n this.price = price;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}", "public void setPrice(int value) {\n this.price = value;\n }", "public void setVehiclePrice(BigDecimal vehiclePrice) {\n\t\tthis.vehiclePrice = vehiclePrice;\n\t}", "public void setBuyPrice(double buyPrice) {\n double oldPrice = this.buyPrice;\n this.buyPrice = buyPrice;\n if(oldPrice == -1) {\n originalPrice = buyPrice;\n } else {\n fluctuation += (buyPrice - oldPrice);\n }\n }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}", "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }", "protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}", "public void setPrice(Money price) {\n\t\tif (price == null) {\n\t\t\tthis.price = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.price = price;\n\t\t}\n\t}", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}", "public void setPrice(int price)\n {\n if(checker.isString(Integer.toString(price)))\n this.price = price;\n else\n this.price = 0;\n }", "public void updatehotelincome(double price ){\n String query = \"update Hotel set Income = Income + ? \";\n \n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setDouble(1,price);\n Query.execute();\n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void setBookPrice(Float bookPrice) {\n this.bookPrice = bookPrice;\n }", "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "public void setPrice(double p) {\n\t\tprice = p;\n\t}", "public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}", "public void setCarProfitMoney(BigDecimal carProfitMoney) {\n this.carProfitMoney = carProfitMoney;\n }", "public void setPriceActual (BigDecimal PriceActual);", "public void setCarbuydate(Date carbuydate) {\n this.carbuydate = carbuydate;\n }", "public void setPriceEntered (BigDecimal PriceEntered);", "public void setBuyprice(String buyprice) {\n this.buyprice = buyprice == null ? null : buyprice.trim();\n }", "public void changePrice(TripDTO trip, BigDecimal price);", "public void setProductPrice(double productPrice) {\n this.productPrice = productPrice;\n }", "public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}", "public void setGoodsPrice(Double goodsPrice) {\n this.goodsPrice = goodsPrice;\n }", "public void setM_price(BigDecimal m_price) {\n this.m_price = m_price;\n }", "public void setpPrice(double pPrice) {\n this.pPrice = pPrice;\n }", "public void setPrice(String price) {\n this.price = price == null ? null : price.trim();\n }", "public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}", "public void setpPrice(BigDecimal pPrice) {\n this.pPrice = pPrice;\n }", "public void setPriceLimit (BigDecimal PriceLimit);", "public void setOptionPrice(double optionPrice)\n {\n this.optionPrice = optionPrice;\n }", "public Long getPrice() {\n return price;\n }", "public void setPriceList (BigDecimal PriceList);", "public void changePrice(Product p, int price){\r\n\t\tp.price = price;\r\n\t}", "public void setPrice(ArrayList priceColumn) {\n ArrayList<String> priceArray = new ArrayList<String>();\n this.priceArray = priceColumn;\n }", "public void setShopPrice(BigDecimal shopPrice) {\n this.shopPrice = shopPrice;\n }", "public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }" ]
[ "0.69853926", "0.6973571", "0.69537693", "0.69537693", "0.69537693", "0.69537693", "0.69537693", "0.69537693", "0.69537693", "0.6952301", "0.6952301", "0.6952301", "0.6946411", "0.69010097", "0.6889439", "0.6888009", "0.6888009", "0.68789124", "0.68789124", "0.6857577", "0.6845688", "0.6811338", "0.6811338", "0.67854935", "0.6783087", "0.6783087", "0.67527217", "0.6743274", "0.673838", "0.6726039", "0.6726039", "0.67251664", "0.67251664", "0.67203903", "0.6700044", "0.6700044", "0.6700044", "0.66512626", "0.66499203", "0.6615325", "0.66135037", "0.66115814", "0.6606397", "0.6600539", "0.65685636", "0.65516245", "0.6513488", "0.65001607", "0.64722633", "0.64694875", "0.64379454", "0.6428306", "0.64174175", "0.64174175", "0.6411323", "0.6395233", "0.63919383", "0.6345322", "0.63361794", "0.6328442", "0.6328069", "0.6303941", "0.62964773", "0.6286453", "0.62738717", "0.6225259", "0.6212647", "0.6190538", "0.61863893", "0.6151236", "0.61356443", "0.61331564", "0.6124019", "0.6078758", "0.60665756", "0.6035626", "0.6033935", "0.6014424", "0.60010976", "0.5999562", "0.59885496", "0.598549", "0.5967459", "0.59297836", "0.59130925", "0.5910785", "0.58998525", "0.58906", "0.58880997", "0.58861524", "0.5880695", "0.58570504", "0.5849334", "0.58443326", "0.5840097", "0.58008355", "0.58008355" ]
0.67253417
34
This method was generated by MyBatis Generator. This method returns the value of the database column buycar.itemcount
public Integer getItemcount() { return itemcount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\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 (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}", "@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\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 (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}", "public int queryVipCarAmount(VipCar car) {\n\t Criteria criteria = getSession().createCriteria(VipCar.class);\n\t criteria.add(Restrictions.eq(\"parkId\", car.getParkId()));\n\t return Integer.valueOf(criteria.setProjection(Projections.rowCount()).uniqueResult().toString());\n}", "public int getSoupKitchenCount() {\n\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT COUNT(*) FROM cs6400_sp17_team073.Soup_kitchen\";\n\n Integer skcount = jdbc.queryForObject(sql,params,Integer.class);\n\n return skcount;\n }", "public Integer getBuyCount() {\n return buyCount;\n }", "public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\n\tpublic Integer findCount() {\n\t\tInteger total;\n\t\tString hql=\"from Commodity\";\n\t\tList<Commodity> commoditylist=(List<Commodity>) this.getHibernateTemplate().find(hql, null);\n\t\ttotal=commoditylist.size();\n\t\treturn total;\n\t}", "@Override\n public long count() {\n String countQuery = \"SELECT COUNT(*) FROM \" + getTableName();\n return getJdbcTemplate().query(countQuery, SingleColumnRowMapper.newInstance(Long.class))\n .get(0);\n }", "public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}", "int count(IDynamoDBMapper mapper);", "long countNumberOfProductsInDatabase();", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Integer queryCount() {\n\t\tInteger count = musicdao.selectCount();\r\n\t\treturn count;\r\n\t}", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "@Override\n\tpublic int selectCount() {\n\n\t\tint res = session.selectOne(\"play.play_count\");\n\n\t\treturn res;\n\t}", "public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }", "@GetMapping(value=\"/Count/v1\")\n\tpublic String getCountOfCars() {\n\t\tlong carsCount = carElasticRepository.count();\n\t\treturn \"Number Of Cars In Elastic Search are \" + carsCount;\n\t}", "public int selectListCount() {\n\t\tConnection conn = getConnection();\n\t\tint listCount = new SaleDao().selectListCount(conn);\n\t\tclose(conn);\n\t\treturn listCount;\n\t}", "public int count() {\r\n Session session = getSession();\r\n Long count = new Long(0);\r\n try {\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \").uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }", "public Long getCount() {\n return count;\n }", "public Long getCount() {\r\n return count;\r\n }", "@Override\n\tpublic Long count() {\n\t\treturn SApplicationcategorydao.count(\"select count(*) from \"+tablename+\" t\");\n\t}", "public Integer getCount() {\n return this.count;\n }", "@Override\n\tpublic int getNoofProduct() {\n\t\tString sql=\"SELECT COUNT(product_product_id) FROM supplier_product\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "@Override\n\tpublic int countByGoodsItemCode(String goodsItemCode)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_GOODSITEMCODE;\n\n\t\tObject[] finderArgs = new Object[] { goodsItemCode };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_DMHISTORYGOODS_WHERE);\n\n\t\t\tboolean bindGoodsItemCode = false;\n\n\t\t\tif (goodsItemCode == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_GOODSITEMCODE_GOODSITEMCODE_1);\n\t\t\t}\n\t\t\telse if (goodsItemCode.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_GOODSITEMCODE_GOODSITEMCODE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindGoodsItemCode = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_GOODSITEMCODE_GOODSITEMCODE_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindGoodsItemCode) {\n\t\t\t\t\tqPos.add(goodsItemCode);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}", "public long getCount()\n\t{\n\t\treturn count;\n\t}", "@Transactional\r\n\tpublic Integer countBudgetAccounts() {\r\n\t\treturn ((Long) budgetAccountDAO.createQuerySingleResult(\"select count(o) from BudgetAccount o\").getSingleResult()).intValue();\r\n\t}", "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "@GetMapping(path = \"/count\")\r\n\tpublic ResponseEntity<Long> getCount() {\r\n\t\tLong count = this.bl.getCount();\r\n\t\treturn ResponseEntity.status(HttpStatus.OK).body(count);\r\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "public Integer getCount() {\n\t\treturn count;\n\t}", "public Integer getCount() {\n return count;\n }", "@Override\r\n\tpublic int findtotalbooks() {\n\t\t\r\n\t\tString sql=\"select count(*) from books where tag=1\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tObject query = runner.query(sql, new ScalarHandler<Object>(1));\r\n\t\t\tLong long1=(Long)query;\r\n\t\t\treturn long1.intValue();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public Long getCount() {\n return this.Count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public Integer getCount() {\n return count;\n }", "public int getNumOfTravellingBikes(){\n int numberOfBikes = 0;\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TRAVEL_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n numberOfBikes++;\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return numberOfBikes;\n }", "@Override\n\tpublic int getNoofQuantity() {\n\t String sql=\"SELECT SUM(quantity) FROM supplier_product\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}", "public Long count(DatasetItem dataset) {\n\n logTrace(\"Getting Number of Transactions in Dataset with query :: \" + COUNT_QUERY);\n\n Long numResults = (Long)getHibernateTemplate().find(\n COUNT_QUERY, dataset.getId()).get(0);\n return numResults;\n }", "public int query() {\n return totalcount;\n }", "public int listAmount() {\n return count;\n }", "public int DetailComentListCount(HashMap<String, Object> param) {\n\t\treturn sqlSession.selectOne(\"main.DetailComentListCount\",param);\r\n\t}", "public String getBulletinCount(String companyId) {\n\t\tlong count = 0;\n\t\tSession session = getSession();\n\t\tString hql = \"select count(id) from AuctionBulletin a \" +\n\t\t\t\"where a.deleteFlag=0 and a.companyId=:companyId \";\n\t\tcount = Long.parseLong(session.createQuery(hql).setString(\"companyId\", companyId)\n\t\t\t\t.uniqueResult().toString());\n\t\tsession.close();\n\t\treturn \"\" + count;\n\t}", "public String getCount() {\r\n\t\treturn this.count;\r\n\t}", "long getTotalProductsCount();", "public long getCount() {\r\n return count;\r\n }", "@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery);\n\t}", "public int getProductCount();", "@Override\r\n\tpublic int getCount(PageBean bean) {\n\t\treturn session.selectOne(\"enter.getCount\", bean);\r\n\t}", "int getItemsCount();", "int getItemsCount();", "public int resultCount(){\n\n int c = 0;\n\n try{\n if(res.last()){\n c = res.getRow();\n res.beforeFirst();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return c;\n }", "@Override\n\tpublic Integer getRoleCount() {\n\t\tfinal String sql =\"select count(id) from role\";\n\t\treturn jdbcTemplate.queryForObject(sql, Integer.class);\n\t}", "int getTransactionsCount();", "@XmlAttribute\r\n public Integer getCount() {\r\n return count;\r\n }", "public int totalCount(int inOrOut) throws Exception {\n\t\t\tConnection conn=Tool.getDBCon();\n\t\t\tString sql=\"select count(*) from Itemcategory ic where ic.inOrOut=?\";\n\t\t\tint count=0;\n\t\t\ttry {\n\t\t\t\tPreparedStatement pstmt=conn.prepareStatement(sql);\n\t\t\t\tpstmt.setInt(1,inOrOut);\n\t\t\t\tResultSet rs=pstmt.executeQuery();\n\t\t\t\tif(rs.next()){\n\t\t\t\t\tcount=rs.getInt(1);\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t\tpstmt.close();\n\t\t\t\tconn.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"sqlException\");\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t\treturn count;\n\t\t}", "public long getCount() {\n return count;\n }", "public long getCount() {\n return count;\n }", "public Flowable<Integer> counts() {\n return createFlowable(b.updateBuilder, db) //\n .flatMap(Tx.flattenToValuesOnly());\n }", "int getPriceCount();", "public int getItemCount() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n }", "public int get_count();", "@Transactional\n\tpublic Integer countProductImagess() {\n\t\treturn ((Long) productImagesDAO.createQuerySingleResult(\"select count(o) from ProductImages o\").getSingleResult()).intValue();\n\t}", "public long getCount() {\n return count.get();\n }", "public Long getMainCount() {\n\t\tString sql_select_count=\"select count(main_id) as count from my_main\";\n\t\treturn (Long) jdbc.queryForMap(sql_select_count).get(\"count\");//Map的get方法\n\t}", "public int getCoffeeShopCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.CoffeeShopTable.TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(sqlCountQuery, null);\n cursor.close();\n int count = cursor.getCount();\n return count;\n }", "@Override\r\n\tpublic Integer getBind_car_cnt() {\n\t\treturn super.getBind_car_cnt();\r\n\t}", "@Override\n\tpublic Integer findMaxCount() {\n\t\tString maxCountSql = \"select count(noticeid) from notice where status=1\";\n\t\treturn (Integer) this.jdbcTemplate.queryForObject(maxCountSql, Integer.class);\n\t}", "public Integer getTotalItemCount() {\n return totalItemCount;\n }", "public String countByExample(CarExample example) {\n SQL sql = new SQL();\n sql.SELECT(\"count(*)\").FROM(\"`basedata_car`\");\n applyWhere(sql, example, false);\n return sql.toString();\n }", "@Override\r\n\tpublic int inallcount() {\n\t\treturn productRaw_InDao.allCount();\r\n\t}", "@Override\n public long getTotalDoctors() {\n List<Long> temp=em.createNamedQuery(\"DoctorTb.getTotalDoctors\").getResultList();\n long count=0;\n for(long i:temp)\n {\n count=i;\n }\n return count;\n }", "@Override\n\tpublic int NoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_id) FROM supplier\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}", "@Query(value = \"SELECT COUNT(*) FROM coupons\", nativeQuery = true)\n int countAllCoupons();", "public String get_count() {\n\t\treturn count;\n\t}", "@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "@Override\n\tpublic int selectCount(Object ob) {\n\n\t\tint res = session.selectOne(\"play.all_count\", ob);\n\n\t\treturn res;\n\t}", "@Override\n\tpublic int selectCount(Object ob) {\n\t\t\n\t\tint res = session.selectOne(\"party.party_list_total_count\",ob);\n\t\t\n\t\treturn res;\n\t}", "private static int carCount(List<UsedCar> carList) {\n int i = 0;\n for (Car count : carList) {\n i++;\n }\n return i; // returns i+1 to accommodate for list starting at zero\n }", "public int count() {\n return this.count;\n }", "@Transactional\r\n\tpublic Integer countUserss() {\r\n\t\treturn ((Long) usersDAO.createQuerySingleResult(\"select count(o) from Users o\").getSingleResult()).intValue();\r\n\t}", "public int getCountCol() {\n\treturn countCol;\n}", "int getCouponListCount();", "@Override\n\tpublic Long count(Map<String, Object> params) {\n\t\tString hql=\"select count(*) from \"+tablename+\" t\";\n\t\treturn SApplicationcategorydao.count(hql, params);\n\t}", "@Override\n\t//获得当前数据库的总行数\n\tpublic int totalColum() {\n\t\tConnection connection = null;\n\t\tint total_count = 0;\n\t\tPreparedStatement pStatement = null;\n\t\tResultSet rSet = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tpStatement = connection.prepareStatement(COUNT);\n\t\t\trSet = pStatement.executeQuery();\n\t\t\twhile (rSet.next()) {\n\t\t\t\ttotal_count = rSet.getInt(\"totalCount\");\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tMySQLConnectUtil.closeResultset(rSet);\n\t\t\tMySQLConnectUtil.closePreparestatement(pStatement);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn total_count;\n\t}", "@Override\r\n\tpublic int priceallcount() {\n\t\treturn productRaw_PriceDao.allCount();\r\n\t}", "@Accessor(qualifier = \"itemsMaxCount\", type = Accessor.Type.GETTER)\n\tpublic Integer getItemsMaxCount()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ITEMSMAXCOUNT);\n\t}", "public int getNoOfReservations(int userID) throws ClassNotFoundException{\n //sql statement\n String No_OF_Reservation_SQL = \"SELECT COUNT(*) as 'rcount' FROM reservation WHERE user_ID = ?\";\n\n int count=0;\n\n try(\n //initialising the database connection\n Connection conn = DatabaseConnection.connectDB();\n PreparedStatement statement = conn.prepareStatement(No_OF_Reservation_SQL);)\n { \n statement.setInt(1, userID);\n\n //executing the query and getting data\n ResultSet userdetails = statement.executeQuery(); \n\n userdetails.next();\n count = userdetails.getInt(\"rcount\");\n \n //closing the database connection\n conn.close();\n\n } catch (SQLException | ClassNotFoundException e){\n e.printStackTrace();\n } \n\n return count;\n }", "@Query(value = \"SELECT COUNT(*) FROM customers_coupons AS cvc INNER JOIN coupons AS c On cvc.coupons_id = c.id WHERE company_id = ?1\" , nativeQuery = true)\n int countAllCouponsPurchasedByCompany(int companyId);", "public long getCount() {\n return count_;\n }", "@Override\r\n\tpublic int listCount(Map<String, Object> map) throws SQLException {\n\t\treturn 0;\r\n\t}" ]
[ "0.70168895", "0.70168895", "0.6725987", "0.6603586", "0.6534091", "0.6476045", "0.6423098", "0.6423098", "0.63741654", "0.63067853", "0.6292361", "0.6282365", "0.61853206", "0.617572", "0.6153531", "0.6147734", "0.61440384", "0.6117944", "0.61166215", "0.61114454", "0.6102899", "0.60743177", "0.60637957", "0.602213", "0.6018317", "0.6006694", "0.6004013", "0.59977674", "0.5989713", "0.5981622", "0.5979008", "0.59676313", "0.59676313", "0.5959529", "0.59591913", "0.5952898", "0.595034", "0.595034", "0.595034", "0.595034", "0.595034", "0.595034", "0.59366095", "0.59356767", "0.59190017", "0.5891219", "0.5880363", "0.5871747", "0.5862153", "0.5857746", "0.5846008", "0.5833395", "0.5832105", "0.58302486", "0.5826678", "0.58266115", "0.58254904", "0.58254904", "0.5824484", "0.5822287", "0.581411", "0.5813399", "0.58120143", "0.58113533", "0.58113533", "0.5809467", "0.5806452", "0.5794964", "0.57786214", "0.57714087", "0.5767587", "0.5766337", "0.5757761", "0.57565355", "0.5750027", "0.5748682", "0.5744122", "0.57428813", "0.5741699", "0.5739277", "0.57386327", "0.5728084", "0.5720745", "0.57206005", "0.5719867", "0.5707961", "0.5699127", "0.56846035", "0.56833386", "0.5669319", "0.56530744", "0.56497884", "0.5646302", "0.5645659", "0.5645317", "0.5645116", "0.56325805", "0.5625146", "0.56240374", "0.56177235" ]
0.5769097
70
This method was generated by MyBatis Generator. This method sets the value of the database column buycar.itemcount
public void setItemcount(Integer itemcount) { this.itemcount = itemcount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBuyCount(Integer buyCount) {\n this.buyCount = buyCount;\n }", "public void setCount(Integer count) {\r\n this.count = count;\r\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n this.count = count;\n }", "public void setCount(Integer count) {\n\t\tthis.count = count;\n\t}", "public void setCount(int count){\n\t\tthis.count = count;\n\t}", "public void setCount(int count)\n {\n this.count = count;\n }", "public Integer getBuyCount() {\n return buyCount;\n }", "public void setCount(int count)\r\n {\r\n this.count = count;\r\n }", "public void setCount(int count) {\r\n this.count = count;\r\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count) {\n this.count = count;\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void setCount(int count) {\n\t\tthis.count = count;\n\t}", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(java.math.BigInteger count)\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(COUNT$8);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COUNT$8);\n }\n target.setBigIntegerValue(count);\n }\n }", "public void setCount(int count) {\n\t\t\tthis.count = count;\n\t\t}", "public void setCount(Long count) {\r\n this.count = count;\r\n }", "public void setItemNo(int value) {\n this.itemNo = value;\n }", "public void setBuyModel(Integer buyModel) {\r\n this.buyModel = buyModel;\r\n }", "public void setVehiclePrice(int vehiclePrice) {\n this.itemPrice = vehiclePrice;\n }", "public void set_count(int c);", "public void setCount(final int count)\n {\n this.count = count;\n }", "@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\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 (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}", "@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\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 (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}", "public int queryVipCarAmount(VipCar car) {\n\t Criteria criteria = getSession().createCriteria(VipCar.class);\n\t criteria.add(Restrictions.eq(\"parkId\", car.getParkId()));\n\t return Integer.valueOf(criteria.setProjection(Projections.rowCount()).uniqueResult().toString());\n}", "public void setCount(final int count) {\n this.count = count;\n }", "public void setItemsQuantity(Integer itemsQuantity) {\r\n this.itemsQuantity = itemsQuantity;\r\n }", "public void setCount(Long Count) {\n this.Count = Count;\n }", "public void setCount(final int count) {\n\t\t_count = count;\n\t}", "public void setBuy_num(Integer buy_num) {\n this.buy_num = buy_num;\n }", "public void updateCartCount(int count)\n {\n if (count>=0)\n cartCountText.setText(String.valueOf(count));\n }", "public void updateCarsParkedCount(int count) {\r\n\t\tcarsParked.setText(\"Cars Parked: \" + Integer.toString(count));\r\n\t}", "public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }", "public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}", "public void setBuyNum(Integer buyNum) {\n this.buyNum = buyNum;\n }", "public void setNumOfCarbons(Integer numOfCarbons) {\n this.numOfCarbons = numOfCarbons;\n }", "int count(IDynamoDBMapper mapper);", "public Builder count(Integer count) {\n\t\t\tthis.count = count;\n\t\t\treturn this;\n\t\t}", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public void setSellRatingTotalCount(int value) {\n this.sellRatingTotalCount = value;\n }", "public void updateQuantity(DrinkItem temp, int val) throws SQLException{\n\t\t\n\t\tPreparedStatement myStmt = null;\n\t\ttry{\n\t\t\tmyStmt = myConn.prepareStatement(\"update drink set quantity=? where drink_code=?\");\n\t\t\tmyStmt.setInt(1, val);\n\t\t\tmyStmt.setInt(2, temp.getDrinkCode());\n\t\t\tmyStmt.executeUpdate();\n\t\t}\n\t\tfinally{\n\t\t\tif(myStmt != null)\n\t\t\t\tmyStmt.close();\n\t\t}\n\t\t\n\t}", "public void setCartCount() {\n mProductDetailsViewModel.setCartStatus();\n }", "public void add(CartItem cartItem){\n\t\tString book_id = cartItem.getBook().getBook_id();\n\t\tint count = cartItem.getCount();\n\t\t// if book exist in cart , change count\n\t\tif(map.containsKey(book_id)){ \n\t\t\tmap.get(book_id).setCount( map.get(book_id).getCount() + count); \n\t\t\t\t\t\n\t\t}else{\n\t\t\t// book not exist in cart, put it to map\n\t\t\tmap.put(cartItem.getBook().getBook_id(), cartItem);\n\t\t}\n\t\t\n\t}", "public void xsetCount(com.a9.spec.opensearch.x11.QueryType.Count count)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Count target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Count)get_store().find_attribute_user(COUNT$8);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Count)get_store().add_attribute_user(COUNT$8);\n }\n target.set(count);\n }\n }", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "private void setLikesCount(int value) {\n \n likesCount_ = value;\n }", "public Integer getItemcount() {\n return itemcount;\n }", "public void setITEM(int value) {\r\n this.item = value;\r\n }", "public void setCarparktypeid(Integer carparktypeid) {\n this.carparktypeid = carparktypeid;\n }", "public void setTruckQuantity(int truckQuantity) \n {\n this.truckQuantity = truckQuantity;\n }", "public void setGoodsBalanceCount(Integer goodsBalanceCount) {\n this.goodsBalanceCount = goodsBalanceCount;\n }", "public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}", "public void setProductCount(Integer productCount) {\n this.productCount = productCount;\n }", "public void setNumOfGoods(int numOfGoods) {\n this.numOfGoods = numOfGoods;\n }", "public int getSoupKitchenCount() {\n\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT COUNT(*) FROM cs6400_sp17_team073.Soup_kitchen\";\n\n Integer skcount = jdbc.queryForObject(sql,params,Integer.class);\n\n return skcount;\n }", "@XmlAttribute\r\n public Integer getCount() {\r\n return count;\r\n }", "public void setPageItemCount(Integer pageItemCount) {\n this.pageItemCount = pageItemCount;\n }", "public void setQuantityToNull(DrinkItem drinkItem) throws SQLException{\n\t\tPreparedStatement myStmt = null;\n\t\ttry{\n\t\t\tmyStmt = myConn.prepareStatement(\"update drink set quantity = null where drink_code =?\");\n\t\t\tmyStmt.setInt(1, drinkItem.getDrinkCode());\n\t\t\tmyStmt.executeUpdate();\n\t\t}\n\t\tfinally{\n\t\t\tif(myStmt != null)\n\t\t\t\tmyStmt.close();\n\t\t}\n\t}", "void setNumberOfArtillery(int artillery);", "public int selectListCount() {\n\t\tConnection conn = getConnection();\n\t\tint listCount = new SaleDao().selectListCount(conn);\n\t\tclose(conn);\n\t\treturn listCount;\n\t}", "@attribute(value = \"\", required = false, defaultValue=\"SWT default\")\r\n\tpublic void setVisibleItemCount(Integer count) {\r\n\t\tcombo.setVisibleItemCount(count);\r\n\t}", "@Override\r\n\tpublic Integer getBind_car_cnt() {\n\t\treturn super.getBind_car_cnt();\r\n\t}", "public void setVoteupCount(Integer voteupCount) {\n this.voteupCount = voteupCount;\n }", "public void count() \r\n\t{\r\n\t\tcountItemsLabel.setText(String.valueOf(listView.getSelectionModel().getSelectedItems().size()));\r\n\t}", "public void addToRowCounts(entity.LoadRowCount element);", "public void setNbTotalItems(long value) {\n this.nbTotalItems = value;\n }", "long countNumberOfProductsInDatabase();", "public void incrementCount() {\n count++;\n }", "@Test\n public void setProductCount() throws NegativeValueException {\n cartItem.setProductCount(56);\n int expected = 56;\n int actual = cartItem.getProductCount();\n assertEquals(expected, actual);\n }", "public Builder setCount(int value) {\n \n count_ = value;\n onChanged();\n return this;\n }", "public void setItemRangeCount(Long itemRangeCount) {\n\t\tthis.itemRangeCount = itemRangeCount;\n\t}", "@Override\n\t//查询购物车商品总数\n\tpublic int checkedQuantity(Integer userid) throws CartDaoException {\n\t\tSqlSessionFactory factory=MyBatisUtils.getSqlSessionFactory();\n\t\tSqlSession session=factory.openSession(true);\n\t\tint result=session.selectOne(\"com.neusoft.entity.Cart.checkedQuantity\", userid);\n\t\treturn result;\n\t}", "public static void setCount(int aCount) {\n count = aCount;\n }", "@Override\n\tpublic int countByGoodsItemCode(String goodsItemCode)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_GOODSITEMCODE;\n\n\t\tObject[] finderArgs = new Object[] { goodsItemCode };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_DMHISTORYGOODS_WHERE);\n\n\t\t\tboolean bindGoodsItemCode = false;\n\n\t\t\tif (goodsItemCode == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_GOODSITEMCODE_GOODSITEMCODE_1);\n\t\t\t}\n\t\t\telse if (goodsItemCode.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_GOODSITEMCODE_GOODSITEMCODE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindGoodsItemCode = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_GOODSITEMCODE_GOODSITEMCODE_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindGoodsItemCode) {\n\t\t\t\t\tqPos.add(goodsItemCode);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "void SetItemNumber(int ItemNumber);", "@Override\n\tpublic int countByItemId(int itemId) {\n\t\treturn customerBrowseMapper.countByItemId(itemId);\n\t}", "public void setCoinCount(int newCount) {\n\t\tpreferences().putInteger(username() + COIN_COUNT, newCount);\n\t\tsave();\n\t}", "public Input setCount(int count) {\n definition.putNumber(COUNT, count);\n return this;\n }", "public int getNumOfTravellingBikes(){\n int numberOfBikes = 0;\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TRAVEL_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n numberOfBikes++;\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return numberOfBikes;\n }", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Integer queryCount() {\n\t\tInteger count = musicdao.selectCount();\r\n\t\treturn count;\r\n\t}", "public void setTotalCount(int totalCount) {\n this.totalCount = totalCount;\n }", "public abstract void setCntCod(int cntCod);", "public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}", "public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}", "public int insert(CabinetItemInventoryCountBean cabinetItemInventoryCountBean)\n\t\tthrows BaseException {\n\n\t\tConnection connection = null;\n\t\tint result = 0;\n\t\ttry {\n\t\t\tconnection = getDbManager().getConnection();\n\t\t\tresult = insert(cabinetItemInventoryCountBean, connection);\n\t\t}\n\t\tfinally {\n\t\t\tthis.getDbManager().returnConnection(connection);\n\t\t}\n\t\treturn result;\n\t}", "public void setCar(long value) {\r\n this.car = value;\r\n }", "public void setQuantite(int quantite) {\r\n this.quantite = quantite;\r\n }", "public void incrementAmountBought() {\n amountBought++;\n }", "@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery);\n\t}", "private static int carCount(List<UsedCar> carList) {\n int i = 0;\n for (Car count : carList) {\n i++;\n }\n return i; // returns i+1 to accommodate for list starting at zero\n }" ]
[ "0.6554298", "0.5898408", "0.58610773", "0.58610773", "0.58610773", "0.58610773", "0.58610773", "0.58610773", "0.5801242", "0.57602215", "0.57534814", "0.57533306", "0.57478213", "0.5739651", "0.5700949", "0.5700949", "0.5700949", "0.5700949", "0.5700949", "0.56442547", "0.56103224", "0.5608357", "0.5608357", "0.5608357", "0.56030554", "0.5570952", "0.5534762", "0.5513479", "0.54946506", "0.54813886", "0.54754174", "0.5473932", "0.5464347", "0.5464347", "0.5444662", "0.542755", "0.54098684", "0.535956", "0.5351775", "0.5349328", "0.5343618", "0.5343034", "0.5340097", "0.53195935", "0.530431", "0.5276633", "0.5255458", "0.5232484", "0.5173379", "0.5149474", "0.51478994", "0.51472026", "0.51436394", "0.51235086", "0.50951904", "0.5085113", "0.5084633", "0.50768405", "0.50685936", "0.50621814", "0.50573355", "0.50530463", "0.5047461", "0.50329095", "0.5026889", "0.5013232", "0.50090814", "0.49979642", "0.49969465", "0.49877095", "0.49859866", "0.49743095", "0.4971789", "0.49703002", "0.49686328", "0.49617374", "0.49596766", "0.49532294", "0.49515623", "0.49476314", "0.4947335", "0.49467543", "0.49452034", "0.4936877", "0.49264637", "0.49244547", "0.4914086", "0.4910489", "0.4908039", "0.48950508", "0.4887772", "0.48839208", "0.48822734", "0.48805195", "0.4875853", "0.48721448", "0.48716664", "0.48657846", "0.48635817", "0.48552027" ]
0.6976212
0
This method was generated by MyBatis Generator. This method returns the value of the database column buycar.totalprice
public Integer getTotalprice() { return totalprice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTotalprice() {\n return totalprice;\n }", "public int getTotalPrice()\n {\n return totalPrice;\n }", "public float getProductTotalMoney(){\n connect();\n float total = 0;\n String sql = \"SELECT SUM(subtotal) + (SUM(subtotal) * (SELECT iva FROM configuraciones)) FROM productos\";\n ResultSet result = null;\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n result = ps.executeQuery();\n //result = getQuery(sql);\n if(result != null){\n while(result.next()){\n total = result.getFloat(1);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return total; \n }", "public double getTotalPrice(){\n return totalPrice;\n }", "@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}", "@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}", "public int getTotalPrice() {\n\t\treturn this.totalPrice;\n\t}", "public int sumofPrice(){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString selectQuery = \"SELECT SUM(price) FROM \" + TABLE_SHOP;\n\t\tCursor cur = db.rawQuery(selectQuery, null);\n\t\tint total=0;\n\t\tif(cur.moveToFirst())\n\t\t{\n\t\t\ttotal = cur.getInt(0);\n\t\t}\n\t\treturn total;\n\t}", "public double obtenerTotalCarrito() throws DBException {\r\n\t\tdouble precioTotal = 0;\r\n\t\tString sentSQL = \"SELECT SUM(precio) FROM carrito\";\r\n\t\ttry {\r\n\t\t\tStatement st = conexion.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(sentSQL);\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tprecioTotal = rs.getDouble(1);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\tLOG.log(Level.INFO,\"Precio total obtenido\");\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\tLOG.log(Level.WARNING,e.getMessage());\r\n\t\t\tthrow new DBException(\"No se ha podido ejecutar la query\");\r\n\t\t}\r\n\t\treturn precioTotal;\r\n\t}", "public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }", "public double totalprice()\n {\n \tthis.caltotalprice();\n \tdouble res = Math.round(mTotalPrice);\n \t return res;\n }", "public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}", "public String getTotalPrice(){\n String price = driver.findElement(oTotalFlightCost).getText();\n logger.debug(\"total flight cost is \" + price);\n return price;\n }", "public double getTotalPrice() {\n\t\treturn totalPrice;\n\t}", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public float getTotalPrice(){\n return price * amount;\n }", "public int queryVipCarAmount(VipCar car) {\n\t Criteria criteria = getSession().createCriteria(VipCar.class);\n\t criteria.add(Restrictions.eq(\"parkId\", car.getParkId()));\n\t return Integer.valueOf(criteria.setProjection(Projections.rowCount()).uniqueResult().toString());\n}", "public void setTotalprice(Long totalprice) {\n this.totalprice = totalprice;\n }", "public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "public BigDecimal getCarProfitMoney() {\n return carProfitMoney;\n }", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "public String getBuyprice() {\n return buyprice;\n }", "public Long getPrice() {\n return price;\n }", "float getTotalCost() throws SQLException;", "BigDecimal getPrice();", "public double getBuyPrice() {\n return buyPrice;\n }", "public int priceOfCarPark() {\n carPark.setPosition(0);\n int price = 0;\n while (carPark.hasNext()){\n price += carPark.next().getPrice();\n }\n return price;\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public void setTotalprice(Integer totalprice) {\n this.totalprice = totalprice;\n }", "public Double getTotalBuyNum() {\r\n return totalBuyNum;\r\n }", "public BigDecimal\tgetPrice();", "private static BigDecimal summaryPrice(Car car) {\n BigDecimal result = car.getBasePrice(); // najpierw dajemy cene poczatkowa auta to co mamy i znamy\n CarOption[] carOptions = car.getOptions(); // wyciagamy za pomoca getOptions z Obiektu CAR(Car) , tablice z wyposazeniem czyli skora i radiem bo potrzebujemy ich ceny znac zeby potem dodac do ceny basePrice\n for (int i = 0; i < carOptions.length; i++) { // musimy kazdy indeks po kolei sumowac za pomoca petli\n result = result.add(carOptions[i].getOptionPrice());\n }\n return result;\n }", "long getPrice();", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public int getVehiclePrice() {\n return itemPrice;\n }", "@Override\n public double getTotalPrice() {\n return getTotalPrice(0);\n }", "@Import(\"price\")\n\tint getPrice();", "public long getPrice() {\n return price;\n }", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public Double getTotalPrice()\n {\n Double total = 0.0;\n for(DrinkAndQuantity d : drinksAndQuantities){\n Drink drink = d.getDrink();\n double tempPrice = drink.getPrice();\n Integer quantity = d.getQuantity();\n total += (tempPrice * quantity);\n }\n\n return total;\n }", "public int getPrice ( ) {\n return price;\n }", "public double getPrice(){\n\t\treturn this.price;\n\t}", "public int getPrice() {\n return price_;\n }", "public int getPrice(){\n\n return this.price;\n }", "public int getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n BigDecimal price = BigDecimal.ZERO;\n for (int i = 0; i < flights.size(); i++) {\n price = price.add(flights.get(i).getPrice(seatClass.get(i)));\n }\n return price;\n }", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "public int getPrice() {\r\n return price;\r\n }", "public Integer getPrice() {\r\n return price;\r\n }", "public Integer getPrice() {\r\n return price;\r\n }", "public double getPrice(){\n\t\t\treturn price;\n\t\t}", "public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}", "public double totalPrice() {\n\t\tdouble result = 0.0;\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tresult += itemCart.getQuantity() * itemCart.getP().getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public int getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public BigDecimal getCarActualPrice() {\n\t\treturn carActualPrice;\n\t}", "public double price() {\n return price;\n }", "public int getPrice() {\n return price;\n }", "public int getPrice() {\n return price;\n }", "@Override\n\tpublic double getPrice() {\n\n\t\tfor(Car temPart:listPart){\n\t\t\tthis.totalCost +=temPart.getPrice();\n\t\t}\n\t\treturn totalCost;\n\t}", "public int getProductPrice(){\n return this.productRelation.getCost();\n }", "BigDecimal calculateTotalPrice(Order order);", "public int getPrice(){\n return 80;\n }", "double getPrice();", "double getPrice();", "double getPrice();", "public double getPrice() {\n return this.price;\n }", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public double getPrice() {\n return souvenir.getPrice() + 20;\n }", "public double getPrice(){\n\t\treturn price;\n\t}", "public double getPrice(){\n\t\t\n\t\treturn price;\n\t}", "public BigDecimal getM_price() {\n return m_price;\n }", "public double getTotal() {\n double amount = 0;\n amount = (this.getQuantity() * product.getPrice().doubleValue());\n return amount;\n }", "public BigDecimal getPriceActual();", "public int getPrice();", "public BigDecimal getVehiclePrice() {\n\t\treturn vehiclePrice;\n\t}", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public int salePrice(){\n return this.salePrice;\n }", "public double getPrice();", "public int getPrice()\n {\n return price;\n }", "public BigDecimal getTotal() {\n return total;\n }", "public BigDecimal getTotal() {\n return total;\n }", "public double getPrice()\n {\n return this.price;\n }", "@Override\r\n\tpublic double getPrice() {\n\t\treturn pizza.getPrice()+ 12.88;\r\n\t}", "public java.math.BigDecimal getPrice() {\n return price;\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public static int getPrice() {\n return PRICE_TO_BUY;\n }" ]
[ "0.72120047", "0.6526267", "0.65226597", "0.64962393", "0.64922816", "0.6403158", "0.6343171", "0.6318942", "0.630534", "0.63046235", "0.6285776", "0.6264561", "0.6233797", "0.62267226", "0.6222926", "0.6176696", "0.6173655", "0.61690295", "0.6121457", "0.610294", "0.60717195", "0.6054651", "0.6053051", "0.6047929", "0.604418", "0.6027081", "0.6005521", "0.6001723", "0.5993809", "0.5993809", "0.5980967", "0.5973844", "0.5965614", "0.5962248", "0.595444", "0.5953978", "0.5953978", "0.5953978", "0.5953978", "0.5953978", "0.5931688", "0.58943343", "0.5883438", "0.5868987", "0.586689", "0.5833015", "0.5832357", "0.5831331", "0.5824943", "0.5822373", "0.5819913", "0.58186275", "0.5813929", "0.5805829", "0.5803978", "0.5802342", "0.5802342", "0.58015275", "0.58010143", "0.5798364", "0.5791936", "0.5786521", "0.5786521", "0.5786521", "0.5786521", "0.5784535", "0.5778287", "0.5772076", "0.5772076", "0.5770676", "0.5770422", "0.57649726", "0.5760289", "0.57587093", "0.57587093", "0.57587093", "0.5758497", "0.57555765", "0.5750055", "0.5749159", "0.57488966", "0.57487667", "0.5746818", "0.5745418", "0.57425964", "0.57311726", "0.5728767", "0.57219005", "0.5719391", "0.5719267", "0.5714031", "0.5714031", "0.5713499", "0.5710818", "0.5708178", "0.5707461", "0.5707461", "0.5707461", "0.5707461", "0.57052195" ]
0.69559044
1
This method was generated by MyBatis Generator. This method sets the value of the database column buycar.totalprice
public void setTotalprice(Integer totalprice) { this.totalprice = totalprice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalprice(Long totalprice) {\n this.totalprice = totalprice;\n }", "public abstract void setTotalPrice();", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public Long getTotalprice() {\n return totalprice;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void totalprice(float tprice)\n {\n \t this.mTotalPrice=tprice;\n }", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setTotalBuyMoney(Double totalBuyMoney) {\r\n this.totalBuyMoney = totalBuyMoney;\r\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(final BigDecimal price) {\n this.price = price;\n }", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(int price) {\r\n this.price = price;\r\n }", "public void setPrice(Long price) {\n this.price = price;\n }", "public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(int price) {\n this.price = price;\n }", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public void setPriceActual (BigDecimal PriceActual);", "public void setPrice(int price) {\n this.price = (double)price;\n }", "public Integer getTotalprice() {\n return totalprice;\n }", "public void setCarProfitMoney(BigDecimal carProfitMoney) {\n this.carProfitMoney = carProfitMoney;\n }", "public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public void setVehiclePrice(BigDecimal vehiclePrice) {\n\t\tthis.vehiclePrice = vehiclePrice;\n\t}", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "public void setVehiclePrice(int vehiclePrice) {\n this.itemPrice = vehiclePrice;\n }", "public void setTotalBuyNum(Double totalBuyNum) {\r\n this.totalBuyNum = totalBuyNum;\r\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}", "public void setPrice(double price){this.price=price;}", "public void changePrice(TripDTO trip, BigDecimal price);", "public void setPrice(Double price);", "public void setPrice(int price) {\n\tthis.price = price;\n}", "@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}", "public double getTotalPrice(){\n return totalPrice;\n }", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}", "public void setPriceEntered (BigDecimal PriceEntered);", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "public void setCarActualPrice(BigDecimal carActualPrice) {\n\t\tthis.carActualPrice = carActualPrice;\n\t}", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void setPrice(Integer price) {\n this.price = price;\n }", "public void updatehotelincome(double price ){\n String query = \"update Hotel set Income = Income + ? \";\n \n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setDouble(1,price);\n Query.execute();\n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public int getTotalPrice()\n {\n return totalPrice;\n }", "public void setM_price(BigDecimal m_price) {\n this.m_price = m_price;\n }", "void setTotal(BigDecimal total);", "protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}", "public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void setBuyPrice(double buyPrice) {\n double oldPrice = this.buyPrice;\n this.buyPrice = buyPrice;\n if(oldPrice == -1) {\n originalPrice = buyPrice;\n } else {\n fluctuation += (buyPrice - oldPrice);\n }\n }", "public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }", "@Element \n public void setPrice(Long price) {\n this.price = price;\n }", "public void setPrice(String price) {\n\t\tthis.price = price;\n\t}", "public void setPrice(Date price) {\n this.price = price;\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public void setPrice(int value) {\n this.price = value;\n }", "@Override\r\n\tpublic void addTotal() {\n\t\ttotalPrice += myPrice;\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(OBSERVABLE_EVENT_ADD_TOTAL);\r\n\t}", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }", "public float getTotalPrice(){\n return price * amount;\n }", "public void setBookPrice(Float bookPrice) {\n this.bookPrice = bookPrice;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public void setPrice(Money price) {\n\t\tif (price == null) {\n\t\t\tthis.price = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.price = price;\n\t\t}\n\t}", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "public Long getPrice() {\n return price;\n }", "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "public void setTotalBuyFee(Double totalBuyFee) {\r\n this.totalBuyFee = totalBuyFee;\r\n }" ]
[ "0.70231545", "0.65234274", "0.64077604", "0.64077604", "0.6390424", "0.63837206", "0.63837206", "0.6330548", "0.629756", "0.6252102", "0.6223505", "0.6223505", "0.6223505", "0.6221994", "0.6219754", "0.62127787", "0.62127787", "0.62127787", "0.62127787", "0.62127787", "0.62127787", "0.62127787", "0.61966395", "0.6181754", "0.61413413", "0.6117894", "0.6117894", "0.61058116", "0.6097408", "0.6089355", "0.6085471", "0.6085471", "0.608521", "0.60823625", "0.60823625", "0.60779405", "0.6057267", "0.6034862", "0.6031386", "0.602937", "0.6020733", "0.60159004", "0.60159004", "0.60159004", "0.6013519", "0.6003462", "0.59877634", "0.5973778", "0.59646523", "0.5964587", "0.5957857", "0.595226", "0.59440315", "0.5940416", "0.593451", "0.5920048", "0.59009105", "0.58873916", "0.58829087", "0.5877428", "0.58730495", "0.5866832", "0.5851664", "0.5851664", "0.5843442", "0.584066", "0.584066", "0.584066", "0.584066", "0.5838167", "0.5827784", "0.58248395", "0.5822452", "0.58180076", "0.5809152", "0.57965374", "0.57965374", "0.57815164", "0.5780674", "0.57425237", "0.5742417", "0.5723083", "0.57182163", "0.57182163", "0.5711501", "0.5694113", "0.5685226", "0.56664133", "0.5660201", "0.5650424", "0.5636495", "0.5636495", "0.5636495", "0.5636495", "0.5636495", "0.56335336", "0.56317943", "0.5623671", "0.5616699", "0.5615023" ]
0.6946094
1
Interface for all required DB calls. Short explanation given in the Interface implementation class WorkloadManagementServiceImpl
public interface WorkloadManagementService { /** * @return for a given project a WorkloadManager object. Also applicable for older INCEpTION * version where the workload feature was not present. Also, if no entity can be found, * a new entry will be created and returned. * @param aProject * a project */ WorkloadManager loadOrCreateWorkloadManagerConfiguration(Project aProject); WorkloadManagerExtension<?> getWorkloadManagerExtension(Project aProject); void saveConfiguration(WorkloadManager aManager); List<AnnotationDocument> listAnnotationDocumentsForSourceDocumentInState( SourceDocument aSourceDocument, AnnotationDocumentState aState); Long getNumberOfUsersWorkingOnADocument(SourceDocument aDocument); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CoffeeProcessorDbService {\n void loadData();\n}", "public interface DBManager {\n\n\t// Populate Data can have different Implementations\n\tvoid populateData();\n}", "public interface WorkerDAO {\r\n \r\n\tpublic List<Worker> findById(Integer id);\r\n\tpublic List<Worker> findAll();\r\n\tpublic void save(Worker worker);\r\n\tpublic void edit(Worker worker);\r\n\tpublic void delete(Worker worker);\r\n public int getNextPrimaryKey(); \r\n}", "public interface IDataBaseOperation{\r\n\r\n boolean prepare();\r\n\r\n void close();\r\n\r\n\r\n}", "public interface DatabaseAPI {\n\n /**\n * Подключиться к базе данных.\n * Этот метод должен использоваться единожды и его результат нужно хранить, как зеницу ока.\n * @param host адрес\n * @param port порт\n * @param username имя пользователя\n * @param password пароль\n * @param databaseName имя базы данных\n * @param threads максимальное количество потоков, которое может использоваться для асинхронного доступа\n * к базе данных. Этот параметр может быть проигнорирован на серверах, где мы не предусматриваем\n * многопоточного доступа к базе данных.\n * Если не уверены, что сюда ставить, пишите двойку.\n * @return держатель подключения к базе данных.\n */\n DatabaseConnectionHolder getDatabaseConnection(String host, int port, String username, String password, String databaseName, int threads);\n\n}", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "public interface ReWelfareDAO {\n int deleteByPrimaryKey(Long welfareId);\n\n void insert(ReWelfare record);\n\n void insertSelective(ReWelfare record);\n\n void insertBatch(List<ReWelfare> records);\n\n ReWelfare selectByPrimaryKey(Long welfareId);\n\n int updateByPrimaryKeySelective(ReWelfare record);\n\n int updateByPrimaryKey(ReWelfare record);\n\n /**\n * 精选列表\n * @param platform\n * @return\n */\n List<ReWelfare> selectSelectionListByPlatform(int platform);\n\n /**\n * 福利\n *\n * @param platform\n * @param welfareId\n * @param welfareType\n * @return\n */\n List<ReWelfare> selectListByPlatform(int platform, Long welfareId, Integer welfareType);\n\n /**\n * 从mysql中获取福利id列表\n * @param platform 平台\n * @param welfareType 类型\n * @return\n */\n List<Long> selectWelfareIdListOrderByUpdateTimeDesc(int platform,Integer welfareType);\n}", "public interface DatabaseAccessManager {\r\n\r\n /**\r\n * Method which create index on column process_name in table debug_log. \r\n * @throws ServiceFailureException in case of error while creating index in database.\r\n */\r\n public void createIndexOnProcessName() throws ServiceFailureException;\r\n \r\n /**\r\n * Method which drop index of column process_name in table debug_log. \r\n * @throws ServiceFailureException in case of error while dropping index in database.\r\n */\r\n public void dropProcessNameIndex() throws ServiceFailureException;\r\n \r\n /**\r\n * Method which retrieve all process names from database.\r\n * @return list of all unique process names in database.\r\n * @throws ServiceFailureException in case of error during processing.\r\n */\r\n public List<String> getAllProcessNamesFromDatabase() \r\n throws ServiceFailureException;\r\n \r\n /**\r\n * Method which access all logs associated with process name \r\n * \"name\" in table debug_log in database.\r\n * @param name represents name of specific process.\r\n * @return list of all logs which process name NAME. \r\n * @throws ServiceFailureException in case of error while working with database.\r\n * @throws java.sql.SQLException in case of error while\r\n * closing connection/statement/resultSet.\r\n */\r\n public List<DatabaseRow> accessDebugLogTableByName(String name) \r\n throws ServiceFailureException, SQLException;\r\n \r\n /**\r\n * Method which retrieves all logs from database associated with process\r\n * names in processNames list.\r\n * @param processNames represents list of all process name which should be analyzed.\r\n * @throws ServiceFailureException in case of error while retieving data.\r\n */\r\n public void accessDebugLogTable(List<String> processNames) \r\n throws ServiceFailureException;\r\n \r\n /**\r\n * Check database if contains verbose logs.\r\n * @return true if database contains verbose logs, false otherwise.\r\n * @throws ServiceFailureException in case of error while retieving data.\r\n */\r\n public boolean containsVerboseLogs() throws ServiceFailureException;\r\n}", "public interface DatabaseTool {\r\n\r\n\t\r\n\t/**\r\n\t * Get all objects from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will default follow\r\n\t * complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed..\r\n\t * @param clazz to be retrieved.\r\n\t * @return of all classes that is retrieved.\r\n\t */\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> clazz);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param id of the object to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(Class<E> clazz, int id);\r\n\t\r\n\t/**\r\n\t * Set a single object from the values. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> void setObject(String sql, E e);\r\n\t\r\n\t/**\r\n\t * Get all objects from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed..\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return of all classes that is retrieved.\r\n\t */\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param id of the object to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(Class<E> clazz, int id, boolean follow);\r\n\t\r\n\t/**\r\n\t * Set a single object from the values. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> void setObject(String sql, E e, boolean follow);\r\n\t\r\n\t/**\r\n\t * This will help write a object to a persistent store. \r\n\t * \r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Writeable> void storeObject(String sql, E e);\r\n\t\r\n\t/**\r\n\t * This will remove a object from the database. \r\n\t * \r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Writeable> void write(String sql);\r\n\r\n\t/**\r\n\t * Read from the database. It will return a cached result set. This result set is closed\r\n\t * and does not keep connection to the database.\r\n\t * \r\n\t * @param sql to be executed.\r\n\t * @return a cached result set.\r\n\t */\r\n\tpublic <E extends Writeable> ResultSet read(CharSequence sql);\r\n\t\r\n\t/**\r\n\t * Read from the database. It will first create a prepared statement before doing the read.\r\n\t * \r\n\t * @param sql to be executed. It must contain the amount ? as the length of the objects.\r\n\t * @return a cached result set.\r\n\t */\r\n\tpublic <E extends Retrievable> ResultSet read(CharSequence sql, Object... objects);\r\n\t\r\n\tpublic <E extends Retrievable> List<E> getObjects(ResultSet resultSet, Class<E> clazz, boolean follow);\r\n\t\r\n\tpublic <E extends Retrievable> E getObject(ResultSet resultSet, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * @param sql that is update/insert or both\r\n\t * @param objects that is to be used in store as parameters to the sql..\r\n\t * @return number of rows updated.\r\n\t */\r\n\tpublic int write(String sql, Object... objects);\r\n\t\r\n\tpublic int writeGetID(String sql, Object... objects);\r\n\t\r\n\tpublic QueryRunner getQueryRunner();\r\n\t\r\n\tpublic Retriver getRetriver();\r\n\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz, Object... objects);\r\n\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> class1, Object... objects);\r\n\r\n\tpublic <E> E getValue(final String sql, final Class<E> clazz, final String column, final Object... objects);\r\n\t\r\n\tpublic List<Object> getValues(final String sql, final Object... objects);\r\n\t\r\n\tpublic String getServer();\r\n}", "public interface DatabaseManager {\r\n\r\n // NOTE: this is a draft of the interface. More methods will likely be\r\n // added.\r\n\r\n /**\r\n * Uploads the specified feature to the database.\r\n * \r\n * @param file the shapefile (*.shp) to upload\r\n * @param project the project to associate the shapefile with\r\n * @return the id of the feature in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadFeature(File file, String project) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified modis tile to the database.\r\n * \r\n * @param file the .hdf to upload\r\n * @param product the modis product\r\n * @param date the date the data was captured\r\n * @param downloaded the date the data was downloaded from the host\r\n * @param horz the horizontal tile number\r\n * @param vert the vertical tile number\r\n * @return the id of the Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadModis(File file, ModisProduct product, DataDate date, DataDate updated, int horz, int vert) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETo file to the database.\r\n * \r\n * @param file the\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEto(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified TRMM file to the database.\r\n * \r\n * @param file\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadTrmm(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected Modis product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param product\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedModis(File file, String project, ModisProduct product, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected ETo product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedEto(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the projected TRMM product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedTrmm(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETa product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETa raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEta(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified EVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the EVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI5 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI5 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI6 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI6 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi6(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified SAVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the SAVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified feature and places it in the specified file in\r\n * the shapefile.\r\n * \r\n * @param file the location to save the feature\r\n * @param id the id of the feature\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadFeature(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified Modis tile from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETo raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified TRMM raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected Modis product from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected ETo product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected TRMM product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETa product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEta(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified EVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI5 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi5(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI6 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi6(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified SAVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadSavi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Returns the id of the MODIS raster for the specified product and date.\r\n * \r\n * @param product\r\n * @param date\r\n * @param horz\r\n * @param vert\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETo for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtoId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the TRMM for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getTrmmId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected Modis raster for the specified\r\n * project, product, and date.\r\n * \r\n * @param project\r\n * @param product\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedModisId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected ETo raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedEtoId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected TRMM raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedTrmmId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETa raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtaId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the EVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEviId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI5 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi5Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI6 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi6Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the SAVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getSaviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Uploads the specified zonal statistics.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @param zonalStatistics\r\n */\r\n void uploadZonalStatistic(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index,\r\n ZonalStatistic zonalStatistics) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the zonal statistics for the specified parameters.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @return the id or -1 if it is not found\r\n */\r\n int getZonalStatisticId(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index)\r\n throws SQLException;\r\n\r\n /**\r\n * Returns zonal statistics for the specified zonal statistic id.\r\n * \r\n * @param id\r\n * @return zonal statistics\r\n * @throws SQLException\r\n */\r\n ZonalStatistic getZonalStatistic(int id) throws SQLException;\r\n}", "public interface IDataBaseRepository {\r\n\r\n /**\r\n * Get DataBase object\r\n *\r\n * @return obj\r\n */\r\n //DataBase getDataBase();\r\n\r\n /**\r\n * Save new clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void save(Clothes clothes);\r\n\r\n /**\r\n * Delete clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void delete(Clothes clothes);\r\n\r\n /**\r\n * Update clothes\r\n *\r\n * @param oldClothes obj\r\n * @param newClothes ojb\r\n */\r\n void update(Clothes oldClothes, Clothes newClothes);\r\n\r\n /**\r\n * Get all clothes\r\n *\r\n * @return list\r\n */\r\n List<Clothes> getAll();\r\n\r\n /**\r\n * Get all clothes by type of the office\r\n *\r\n * @param officeType obj\r\n * @return list\r\n */\r\n List<Clothes> getByOffice(OfficeType officeType);\r\n\r\n /**\r\n * Get clothes by ID\r\n *\r\n * @param id int\r\n * @return clothes obj\r\n */\r\n Clothes getById(int id);\r\n\r\n}", "public interface OrderService {\n\n List<Long> insertData() throws SQLException;\n\n void deleteData(final List<Long> orderIds) throws SQLException;\n\n void updateData(final Order order) throws SQLException;\n\n void printData() throws SQLException;\n\n List<Order> selectAll() throws SQLException;\n\n}", "public interface MysqldataQueryDao {\n public List<Map<String, Object>> Querydata(String sql);\n public List<Map<String, Object>> Querymaindata(String sql);\n\n}", "public interface IBaseService {\n\n\n /**\n * 根据id获取\n * @param tableName 表名\n * @param id\n */\n Map<String,Object> findById(String tableName, Integer id);\n\n /**\n * 修改状态\n * @param tableName 表名\n * @param status 状态\n * @param id\n */\n int updateStatus(String tableName, Integer status, Integer id);\n\n /**\n * 修改\n * @param tableName 表名\n * @param params 要修改的字段\n */\n int update(String tableName, Map<String, Object> params);\n /**\n * 根据sql删除或更改\n * @param sql 表名\n */\n int deleteOrUpdate(String sql);\n /**\n * 根据id删除\n * @param tableName 表名\n * @param id\n */\n int delete(String tableName, Integer id);\n /**\n * 插入一条数据,返回主键\n * @Date 2016/7/20 15:20\n * @author linyb\n */\n int save(String tableName, Map<String, Object> params);\n /**\n * 获取分页信息\n * @Date 2016/7/21 16:15\n * @param coloumSql 要查询的列的信息\n * @param fromSql 从哪些表查询\n * @param pageNum 第几页\n * @param pageSize 查询多少条\n */\n PageModel findPage(String coloumSql, String fromSql, Integer pageNum, Integer pageSize);\n /**\n * 获取分页信息\n * @Date 2016/7/21 16:15\n * @param offset 偏移\n * @param pageSize 查询多少条\n * @param coloumSql 要查询的列的信息\n * @param fromSql 从哪些表查询\n */\n PageModel findPage(Integer offset, Integer pageSize, String coloumSql, String fromSql);\n\n /**\n * 不分页获取列表信息\n * @Date 2016/7/26 08:46\n * @author linyb\n * @param coloumSql 列信息\n * @param fromSql 从哪里查询\n */\n List findList(String coloumSql, String fromSql);\n /**\n * 根据sql获取符合条件的第一条数据\n * @Date 2016/7/28 16:24\n * @author linyb\n */\n Map<String,Object> findFirstBySql(String sql);\n\n}", "public interface RepoTempHumService {\n\n Map<String, Object> selectById(Integer repositoryId,int offset, int limit) throws RepoTempHumServiceException;\n\n Map<String, Object> selectAll(int offset, int limit) throws RepoTempHumServiceException;\n\n boolean addRepoTempHumRecord(RepoTempHumDO repoTempHumDO) throws RepoTempHumServiceException;\n\n public File exportRecord(List<RepoTempHumDTO> rows);\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "public interface ClerkShiftRecordDAO {\n\n int insert(ClerkShiftDO clerkShiftDO);\n\n Page<ClerkShiftVO> query(ClerkShiftBO clerkShiftBO,RowBounds build);\n}", "public interface LoadDataService {\npublic void execute();\n}", "public interface ScheduleDao {\n int crewTally();\n ArrayList<avail> getAllAvailibility();\n ArrayList<ShiftDetails> getShiftDetails();\n int updateShiftSwapStatus();\n}", "@Transactional\npublic interface ProteinDatabaseManagement {\n /**\n * Persists protein Id search database. This database could be available for everyone in case experiment param is null\n **/\n long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);\n\n long updateDatabaseDetails(long actor, long database, String databaseName, long databaseType);\n\n\n void deleteDatabase(long actor, long db);\n\n long getMaxDatabaseSize();\n\n void specifyProteinDatabaseContent(long userId, long proteinDb, String contentUrl);\n\n void markDatabasesInProgress(Iterable<Long> dbs);\n\n void updateDatabaseSharing(long actor, boolean bPublic, long databaseId);\n\n DuplicateResponse duplicateDatabase(long actor, long database);\n\n class DuplicateResponse{\n public final Long id;\n public final String errorMessage;\n\n public DuplicateResponse(Long id, String errorMessage) {\n this.id = id;\n this.errorMessage = errorMessage;\n }\n }\n}", "public Emp_Payroll_JDBC_Main() {\n\t\temployeePayrollDBServicebj = EmpPayrollDBService.getInstance();\n\t\tnormalisedDBServiceObj = EmpPayrollDBServiceNormalised.getInstance();\n\t}", "public interface DbConnectService {\r\n\t\r\n\tpublic void GetDbConnectSSO() throws Exception;\r\n\tpublic Connection getConnection();\r\n\tpublic boolean executeSqlBatch(List<String> sqlBatch);\r\n\tpublic boolean executeSql(String sqlBatch);\r\n\t\r\n\tpublic boolean GetDbConnectState();\r\n\t\r\n\tpublic List<ConnectorTable> getAllConnector();\r\n\tpublic PageInfo<ConnectorTable> findSqlPageFilter(int pageNum, int pageSize);\r\n\tpublic int addSelective(ConnectorTable connectorTable);\r\n\tpublic int editSelective(ConnectorTable connectorTable);\r\n\tpublic boolean deleteByConIds(List<String> dbIds);\r\n\r\n}", "public interface DbServices {\n\n String getLocalStatus();\n\n void save(UserEntity userEntity);\n\n UserEntity read(long id);\n\n UserEntity readByName(String name);\n\n List<UserEntity> readAll();\n\n void shutdown();\n}", "public interface DbLoader {\n\n /**\n * prepares the database\n */\n void prepareDatabase();\n}", "public interface DatabaseAccessInterface {\n\t\n\t/**\n\t * Closes the database connection.\n\t * @throws SQLException\n\t */\n\tpublic void closeConnection() throws SQLException;\n\t\n\t/**\n\t * Registers the action on Raspberry Pi into database.\n\t * @param rpiId\n\t * @param time\n\t * @param action\n\t * @param level\n\t * @throws SQLException\n\t */\n\tpublic void addRpiAction(String rpiId, String time, String action, String level) throws SQLException;\n\t\n\t/**\n\t * Adds photo to the database.\n\t * @param rpiId\n\t * @param time\n\t * @param name\n\t * @param photo\n\t * @throws SQLException\n\t */\n\tpublic void addRpiPhoto(String rpiId, String time, String name, byte[] photo) throws SQLException, IOException;\n\t\n\t/**\n\t * Registers the user for the given Raspberry Pi.\n\t * @param rpiId\n\t * @param user\n\t * @throws SQLException\n\t */\n\tpublic void addRpiUserRelation(String rpiId, String user) throws SQLException;\n\t\n\t\n\t/**\n\t * Adds user credentials to the database.\n\t * @param login\n\t * @param password\n\t */\n\tpublic void addUserCredentials(String login, String password) throws SQLException;\n\t\n\t/**\n\t * Adds user token for communication authorization with the token.\n\t * @param login\n\t * @param token\n\t */\n\tpublic void addUserToken(String login, String token) throws SQLException;\n\t\n\t/**\n\t * Deletes photo from the database.\n\t * @param rpiId\n\t * @param time\n\t * @throws SQLException\n\t */\n\tpublic void deleteRpiPhoto(String rpiId, String time) throws SQLException;\n\t\n\t/**\n\t * Deletes user credentials and all data connected to the user from the database.\n\t * @param login\n\t */\n\tpublic void deleteUserCredentials(String login) throws SQLException;\n\t\n\t/**\n\t * Returns the time of most recent action on Raspberry Pi registered in the database.\n\t * @param rpiId\n\t * @return formatted date string\n\t * @throws SQLException\n\t * @throws IOException when converting the database output.\n\t */\n\tpublic String getLatestDateOnActions(String rpiId) throws SQLException, IOException;\n\t\n\t/**\n\t * Returns the time of most recent photo on Raspberry Pi registered in the database.\n\t * @param rpiId\n\t * @return formatted date String\n\t * @throws SQLException\n\t */\n\tpublic String getLatestDateOnPhotos(String rpiId) throws SQLException;\n\t\n\t/**\n\t * Gets the photo from the database.\n\t * @param rpiId\n\t * @param time\n\t * @return byte array\n\t * @throws SQLException\n\t * @throws IOException when converting the database output.\n\t */\n\tpublic byte[] getPhoto(String rpiId, String time) throws SQLException, IOException;\n\t\n\t/**\n\t * Gets the list of time stamps of most recent photos before the given date.\n\t * @param rpiId\n\t * @param time\n\t * @param numberOfDates\n\t * @return byte array of JSON string\n\t * @throws SQLException\n\t * @throws IOException when converting the database output.\n\t */\n\tpublic byte[] getPhotoTimesBefore(String rpiId, String time, int numberOfDates) throws SQLException, IOException;\n\t\n\t/**\n\t * Gets the list of time stamps of most recent actions before the given date.\n\t * @param rpiId\n\t * @param time\n\t * @param numberOfActions\n\t * @return byte array of JSON string\n\t * @throws SQLException\n\t * @throws IOException when converting the database output.\n\t */\n\tpublic byte[] getRpiActionsBefore(String rpiId, String time, int numberOfActions) throws SQLException, IOException;\n\t\n\t/**\n\t * Retrieves information about user and Rpi relation.\n\t * @param user\n\t * @return Rpi ID for the given user\n\t * @throws SQLException\n\t */\n\tpublic String getRpiByUser(String user) throws SQLException;\n\t\n\t/**\n\t * Gets the user, which is identified be the token.\n\t * @param token\n\t * @return user name or empty string, if the user does not exist.\n\t */\n\tpublic String getUserByToken(String token) throws SQLException;\n\t\n\t\n\t/**\n\t * Validates user's login and password.\n\t * @param login\n\t * @param password\n\t * @return true, if data are valid, false otherwise.\n\t */\n\tpublic boolean validateUserCredentials(String login, String password) throws SQLException;\n\t\n\t/**\n\t * Validates user's token for communication.\n\t * @param login\n\t * @param token\n\t * @return true, if token is valid, false otherwise.\n\t */\n\tpublic boolean validateUserToken(String login, String token) throws SQLException;\n\t\n\t/**\n\t * Validates that such Raspberry Pi is registered.\n\t * @param rpiId\n\t * @return true, if such id exists in the database and device is active.\n\t */\n\tpublic boolean verifyRpiRegistration(String rpiId) throws SQLException;\n\t\n}", "abstract protected DatabaseResponse<E> executeOperation( Connection connection ) throws LauncherPersistenceException;", "public interface ComponentDAO {\r\n /**\r\n * Retrieves all coverage components\r\n *\r\n * @param record input record\r\n * @param recordLoadProcessor an instance of the load processor to set page entitlements\r\n * @return\r\n */\r\n RecordSet loadAllComponents(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Retrieves all pending prior act coverage components\r\n *\r\n * @param record input record\r\n * @param recordLoadProcessor an instance of the load processor to set page entitlements\r\n * @return\r\n */\r\n RecordSet loadAllPendPriorActComp(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Save all input component records with the Pm_Nb_End.Save_Covg_Component stored procedure.\r\n * Set the rowStatus field to NEW for records that are newly added in this request.\r\n * Set the rowStatus field to MODIFIED for records that have already been saved in this WIP transaction,\r\n * and are just being updated.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int addAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Update all given input records with the Pm_Endorse.Change_Covg_Component stored procedure.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int updateAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Delete all given input records with the Pm_Nb_Del.Del_Covg_Component stored procedure.\r\n *\r\n * @param inputRecords a set of Records, each with the PolicyHeader, PolicyIdentifier,\r\n * and Component Detail info matching the fields returned from the loadAllComponents method.\r\n * @return the number of rows updated.\r\n */\r\n int deleteAllComponents(RecordSet inputRecords);\r\n\r\n /**\r\n * Get the Cancel WIP rule\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getCancelWipRule(Record record);\r\n\r\n /**\r\n * Get the component cycle years\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public int getCycleYearsForComponent(Record record);\r\n\r\n /**\r\n * Get the component num days\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public int getNumDaysForComponent(Record record);\r\n\r\n /**\r\n * To load all dependent components\r\n *\r\n * @param record\r\n * @param recordLoadProcessor\r\n * @return\r\n */\r\n public RecordSet loadAllAvailableComponent(Record record, RecordLoadProcessor recordLoadProcessor);\r\n\r\n /**\r\n * Get the earliest contiguous coverage effective date with the function Pm_Dates.Nb_Covg_Startdt(coverage_fk, check_dt)\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getCoverageContiguousEffectiveDate(Record record);\r\n\r\n /**\r\n * Get component PK and base record FK\r\n *\r\n * @param record\r\n * @return\r\n */\r\n public Record getComponentIdAndBaseId(Record record);\r\n\r\n /**\r\n * Load Cycle Detail\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllCycleDetail(Record inputRecord);\r\n\r\n /**\r\n * Load Surcharge Points\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllSurchargePoint(Record inputRecord);\r\n\r\n /**\r\n * Save all surcharge points data.\r\n *\r\n * @param inputRecords intput record\r\n * @return the number of row updateds\r\n */\r\n public int saveAllSurchargePoint(RecordSet inputRecords);\r\n\r\n /**\r\n * validate component copy\r\n * @param inputRecord\r\n * @return validate status code statusCode\r\n */\r\n String validateCopyAllComponent(Record inputRecord);\r\n\r\n /**\r\n * delete all component from coverage for delete risk all\r\n * @param compRs\r\n */\r\n void deleteAllCopiedComponent(RecordSet compRs);\r\n\r\n /**\r\n * Load all processing event.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessingEvent(Record inputRecord, RecordLoadProcessor entitlementRLP);\r\n\r\n /**\r\n * Load all processing detail.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessingDetail(Record inputRecord);\r\n\r\n /**\r\n * Save all processing event.\r\n *\r\n * @param inputRecords\r\n * @return the number of row updated\r\n */\r\n public int saveAllProcessingEvent(RecordSet inputRecords);\r\n\r\n /**\r\n * Set RMT Classification indicator.\r\n *\r\n * @param inputRecord\r\n */\r\n public void setRMTIndicator(Record inputRecord);\r\n\r\n /**\r\n * Process RM Discount\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record processRmDiscount(Record inputRecord);\r\n\r\n /**\r\n * Load all Corp/Org discount member.\r\n *\r\n * @param inputRecord\r\n * @param entitlementRLP\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllCorpOrgDiscountMember(Record inputRecord, RecordLoadProcessor entitlementRLP);\r\n\r\n /**\r\n * Process Corp/Org discount\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record processCorpOrgDiscount(Record inputRecord);\r\n\r\n /**\r\n * Load all processing event history\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessEventHistory(Record inputRecord);\r\n\r\n /**\r\n * Load all processing detail history\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadAllProcessDetailHistory(Record inputRecord);\r\n\r\n /**\r\n * Apply the component\r\n *\r\n * @param inputRecord\r\n * @return Record\r\n */\r\n public Record applyMassComponet(Record inputRecord);\r\n\r\n /**\r\n * Check if it is a problem policy\r\n *\r\n * @param inputRecord\r\n * @return String\r\n */\r\n public String isProblemPolicy(Record inputRecord);\r\n\r\n /**\r\n * Check if add component allowed\r\n *\r\n * @param inputRecord\r\n * @return\r\n */\r\n String isAddComponentAllowed(Record inputRecord);\r\n\r\n /**\r\n * Get short term component's effective from and effective to date\r\n *\r\n * @param inputRecord Input record containing risk and coverage level details\r\n * @return Record that contains component effective from date and effective to date.\r\n */\r\n Record getShortTermCompEffAndExpDates(Record inputRecord);\r\n\r\n /**\r\n * Check if the official component record has a temp record exists for the specific transaction.\r\n *\r\n * @param inputRecord include component base record id and transaction id\r\n * @return true if component temp record exists\r\n * false if component temp record does not exist\r\n */\r\n boolean isComponentTempRecordExist(Record inputRecord);\r\n\r\n /**\r\n * Check if changing component expiring date in OOSE is allowed\r\n *\r\n * @param inputRecord\r\n * @return\r\n */\r\n String isOoseChangeDateAllowed(Record inputRecord);\r\n\r\n /**\r\n * Load effective to date with PM_Dates.NB_Covg_ExpDt stored procedure.\r\n * <p/>\r\n *\r\n * @param inputRecord a Record with information to load the effective to date.\r\n * @return Coverage effective to date.\r\n */\r\n String getCoverageExpirationDate(Record inputRecord);\r\n\r\n /**\r\n * Validate component duplicate.\r\n * @param inputRecord\r\n * @return\r\n */\r\n Record validateComponentDuplicate(Record inputRecord);\r\n\r\n /**\r\n * Check if the NDD expiration date is configured for the component.\r\n *\r\n * @param inputRecord include component base record id and transaction id\r\n * @return true if configured\r\n * false if not configured\r\n */\r\n boolean getNddSkipValidateB(Record inputRecord);\r\n\r\n /**\r\n * Load experience discount history information.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadExpHistoryInfo(Record inputRecord);\r\n\r\n /**\r\n * Load claim information for a specific period of the risk.\r\n *\r\n * @param inputRecord\r\n * @return RecordSet\r\n */\r\n public RecordSet loadClaimInfo(Record inputRecord);\r\n}", "public interface DAOjdbc\n{\n Boolean admin_log(String u,String p) throws SQLException, ClassNotFoundException;\n Boolean add_topic(String l,String n,String r) throws SQLException, ClassNotFoundException;\n List<Topic> topic(String t) throws SQLException, ClassNotFoundException;\n List<Topic> Select_topic(String i) throws SQLException, ClassNotFoundException;\n Boolean add_tou(String p) throws SQLException, ClassNotFoundException;\n Boolean add_Info(String n,String c,String t,String m) throws SQLException, ClassNotFoundException;\n Boolean add_user(String n,String p,String pw,String t,String m) throws SQLException, ClassNotFoundException;\n User select_user(String u,String p) throws SQLException, ClassNotFoundException;\n}", "public interface BusinessDao {\n\n public List<Business> getAllBusiness() throws Exception;\n public Business getBusinessbyId(Long businessId) throws Exception;\n public void addBusiness (Business business) throws Exception;\n public void updateBusiness(Business business) throws Exception;\n public void deleteBusiness(Business business) throws Exception;\n}", "public interface ITrainMonitorService {\r\n\r\n //查询称重\r\n public GridModel qryWeightList(TrainWeightEntity weightEntity);\r\n\r\n //查询采样\r\n public GridModel qrySampleList(TrainWeightRptEntity sampleEntity);\r\n\r\n //查询制样结果动态信息\r\n public GridModel qrySampling();\r\n\r\n //提交控制设备命令\r\n public void commitCtrlCmd(CtrlEntity ctrlEntity);\r\n\r\n //今日来煤信息汇总查询\r\n public GridModel qryTodayArrivedCoal();\r\n\r\n //燃料指标\r\n public GridModel qryFuelIndicator();\r\n\r\n //查询今日汽车动态信息\r\n public GridModel qryCarDynamic();\r\n\r\n public GridModel qryTrainOveriew();\r\n\r\n public GridModel qryTrainComeIn();\r\n\r\n public GridModel qryCarDumperList();\r\n}", "public interface DataWarehouseRepository {\n\tList<DwPerson> searchPeople(String query);\n\n\tList<DwTerm> getTerms();\n\n\tDwPerson getPersonByLoginId(String loginId);\n\n\tDwCourse findCourse(String subjectCode, String courseNumber, String effectiveTermCode);\n\n\tList<DwCourse> searchCourses(String query);\n\n\tList<DwSection> getSectionsByTermCodeAndUniqueKeys(String termCode, List<String> uniqueKeys);\n\n\tList<DwSection> getSectionsBySubjectCodeAndYear(String subjectCode, Long year);\n\n\tList<DwSection> getSectionsBySubjectCodeAndTermCode(String subjectCode, String termCode);\n\n\tList<DwCensus> getCensusBySubjectCodeAndTermCode(String subjectCode, String termCode);\n\n\tList<DwCensus> getCensusBySubjectCodeAndCourseNumber(String subjectCode, String courseNumber);\n}", "public interface OpenNetworkDB extends Database, CRUD<OpenNetwork, Integer>{\r\n\r\n Collection<OpenNetwork> getAllFromCity( String city ) throws DatabaseException;\r\n}", "public interface DB2PermataFavoriteService {\n\n public abstract List<PermataFavorite> getPermataFavorite(int data);\n public abstract List<PermataFavorite> getPermataFavoriteByGcn(String gcn);\n public abstract List<PermataFavorite> getPermataFavoriteduplicate(int data);\n public abstract PermataFavorite savePermataFavorite(PermataFavorite permataFavorite);\n public abstract List<PermataFavorite> getAllPermataFavorite();\n}", "public interface PlanService {\n\n public List<Plan> getAllPlans() throws SQLException;\n public boolean deletePlanById(Integer id) throws SQLException;\n void addPlan(Date date, Integer idProduct, Integer quantity, Integer cost) throws SQLException;\n void updatePlan(Integer idPlan, Date date, Integer idProduct, Integer quantity, Integer cost) throws SQLException;\n}", "interface IDbScheduleEndpoint {\n\n /**\n * 查询所有可用定时器\n *\n * @param hasCorrect 是否纠正数据库状态\n * {hasCorrect为true}查询实际已经注册定时器并纠正数据库中定时器状态\n * @return List\n */\n List<DbSchedule> availableTimerHasCorrect(Boolean hasCorrect);\n\n /**\n * 动态注册定时器\n *\n * @param iRunnable 线程接口\n * @param model 注册信息\n * @param hasPersistent 是否持久化\n */\n void dynamicRegistration(IRunnable iRunnable, RegistrerParams model, Boolean hasPersistent);\n}", "public interface WarehouseService {\n\n /**\n * This method returns all warehouses data from database by calling respective repository methods.\n *\n * @return set of {@link Warehouse}s\n */\n Set<Warehouse> getAllWarehouses();\n\n}", "public interface TravelGroupDAO {\r\n\r\n /**\r\n * 从数据库取得指定id的Travel Group\r\n * \r\n * @param id\r\n * Travel Group的id\r\n * @return 返回指定的Travel Group\r\n */\r\n public TravelGroup getTravelGroup(Integer id);\r\n\r\n /**\r\n * get Travel Group List Count according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @return list count\r\n */\r\n public int getTravelGroupListCount(Map conditions);\r\n\r\n /**\r\n * get Travel Group List according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @param pageNo\r\n * start page no(0 based), ignored if -1\r\n * @param pageSize\r\n * page size, ignored if -1\r\n * @param order\r\n * search order\r\n * @param descend\r\n * asc or desc\r\n * @return Travel Group list\r\n */\r\n public List getTravelGroupList(Map conditions, int pageNo, int pageSize, TravelGroupQueryOrder order, boolean descend);\r\n\r\n /**\r\n * insert Travel Group to database\r\n * \r\n * @param travel\r\n * Group the Travel Group inserted\r\n * @return the Travel Group inserted\r\n */\r\n public TravelGroup insertTravelGroup(TravelGroup travelGroup);\r\n\r\n /**\r\n * update Travel Group to datebase\r\n * \r\n * @param travelGroup\r\n * the Travel Group updated\r\n * @return the Travel Group updated\r\n */\r\n public TravelGroup updateTravelGroup(TravelGroup travelGroup);\r\n\r\n}", "public interface SmPreprocessingLogsDaoInterface {\r\n\r\n /**\r\n * saves given PreprocessingLog-Data to the database.\r\n *\r\n * @param preprocessingLog preprocessingLog-Hibernate Object.\r\n * @return Integer primary key of created Object\r\n * @throws SqlDatabaseSystemException Thrown in case of an internal database access error.\r\n */\r\n String savePreprocessingLog(final PreprocessingLog preprocessingLog) throws SqlDatabaseSystemException;\r\n\r\n /**\r\n * retrieves all PreprocessingLogs from the database with given aggregationDefinitionId.\r\n *\r\n * @param aggregationDefinitionId aggregationDefinitionId\r\n * @return Collection of PreprocessingLogs as Hibernate-Objects\r\n * @throws SqlDatabaseSystemException Thrown in case of an internal database access error.\r\n */\r\n Collection<PreprocessingLog> retrievePreprocessingLogs(final String aggregationDefinitionId)\r\n throws SqlDatabaseSystemException;\r\n\r\n /**\r\n * retrieves all PreprocessingLogs from the database with given processingDate.\r\n *\r\n * @param processingDate processingDate\r\n * @return Collection of PreprocessingLogs as Hibernate-Objects\r\n * @throws SqlDatabaseSystemException Thrown in case of an internal database access error.\r\n */\r\n Collection<PreprocessingLog> retrievePreprocessingLogs(final Date processingDate) throws SqlDatabaseSystemException;\r\n\r\n /**\r\n * retrieves all PreprocessingLogs from the database with given aggregationDefinitionId and processingDate.\r\n *\r\n * @param aggregationDefinitionId aggregationDefinitionId\r\n * @param processingDate processingDate\r\n * @return Collection of PreprocessingLogs as Hibernate-Objects\r\n * @throws SqlDatabaseSystemException Thrown in case of an internal database access error.\r\n */\r\n Collection<PreprocessingLog> retrievePreprocessingLogs(\r\n final String aggregationDefinitionId, final Date processingDate) throws SqlDatabaseSystemException;\r\n\r\n /**\r\n * retrieves all PreprocessingLogs from the database with given aggregationDefinitionId and error or not.\r\n *\r\n * @param aggregationDefinitionId aggregationDefinitionId\r\n * @param hasError hasError\r\n * @return Collection of PreprocessingLogs as Hibernate-Objects\r\n * @throws SqlDatabaseSystemException Thrown in case of an internal database access error.\r\n */\r\n Collection<PreprocessingLog> retrievePreprocessingLogs(final String aggregationDefinitionId, final boolean hasError)\r\n throws SqlDatabaseSystemException;\r\n\r\n /**\r\n * retrieves all PreprocessingLogs from the database with given processingDate and error or not.\r\n *\r\n * @param processingDate processingDate\r\n * @param hasError hasError\r\n * @return Collection of PreprocessingLogs as Hibernate-Objects\r\n * @throws SqlDatabaseSystemException Thrown in case of an internal database access error.\r\n */\r\n Collection<PreprocessingLog> retrievePreprocessingLogs(final Date processingDate, final boolean hasError)\r\n throws SqlDatabaseSystemException;\r\n\r\n /**\r\n * retrieves all PreprocessingLogs from the database with given processingDate and aggregationDefinitionId and error\r\n * or not.\r\n *\r\n * @param aggregationDefinitionId aggregationDefinitionId\r\n * @param processingDate processingDate\r\n * @param hasError hasError\r\n * @return Collection of PreprocessingLogs as Hibernate-Objects\r\n * @throws SqlDatabaseSystemException Thrown in case of an internal database access error.\r\n */\r\n Collection<PreprocessingLog> retrievePreprocessingLogs(\r\n final String aggregationDefinitionId, final Date processingDate, final boolean hasError)\r\n throws SqlDatabaseSystemException;\r\n\r\n}", "public interface WorkService {\n\n /**\n * Crea un nuevo servicio de trabajo en una transaccion de base de datos.\n * @param work\n * @return true si se crea correctamente el servicio y false en caso\n * de tratar de agregar un servicio de trabajo en null\n */\n boolean createWork(Work work);\n\n /**\n * Remueve un trabajo segun el folio que se pase por parametro.\n * @param folio\n * @return true si se elimina el trabajo de forma correcta, y false\n * en caso de pasar un folio igual o menor a cero y que el folio\n * no exista en la base de datos.\n */\n boolean removeWorkByFolio(int folio);\n\n /**\n * Actualiza un trabajo por obeto, y se obtiene el folio dentro del\n * proceso.\n * @param work\n * @return true en caso de actualizarce correctamente el trabajo,\n * y en false en caso de que el folio sea menor o igual a cero y\n * que no exista el trabajo en la base de datos.\n */\n boolean updateWorkByObject(Work work);\n\n /**\n * Se obtiene un trabajo segun su folio.\n * @param folio\n * @return <code>Work</code> en caso de encontrarse el trabajo\n * en la base de datos, en caso de apuntar a null se retorna\n * un Optional.\n */\n Work getWorkByFolio(int folio);\n\n /**\n * Se obtiene una lista de trabajos.\n * @return List<Work>\n */\n List<Work> getAllWorks();\n}", "public interface VolunteerworkService {\n Iterable<Volunteerwork> listAllVolunteerworks();\n\n Volunteerwork getVolunteerworkById(Integer id);\n\n Volunteerwork saveVolunteerwork(Volunteerwork volunteerwork);\n}", "public interface DBManager {\n public void add(Context c,String... arg0);\n public void add(Context c,Patient p,String... arg0);\n public void change(Context c, Patient p, String... arg0);\n public void change(Context c, Patient p, Appointment a, String... arg0);\n public void delete(Context c, Patient p, Appointment a);\n}", "public interface SummaryDao {\n\n public List<String> getBatchCount(String startDate);\n\n public List<String> getBatchCountAll();\n\n public List<CustBatchDetail> getTradedCust(String batchNo);\n\n public boolean saveFundIncomes(List<SyncIncomeStat> list);\n\n public boolean saveTradeRecords(List<SyncTrade> list);\n\n public boolean saveBatchLog(SyncBatchLog batchLog);\n\n public boolean isTaskFinished(String taskName, String date);\n}", "public interface TradeRecordManager {\n /**\n * 插入充值记录\n * @param tradeRecordDTO 订单记录对象\n * @return 充值记录ID\n * @throws UserException\n * */\n Long addTradeRecord(TradeRecordDTO tradeRecordDTO) throws UserException;\n\n /**\n * 根据用户ID查询充值记录\n * @param userId 用户编号\n * @return 更新是否成功\n * @throws UserException\n * */\n TradeRecordDTO queryTradeRecordByUserId(Long userId) throws UserException;\n\n /**\n * 查询充值记录\n * */\n List<TradeRecordDTO> queryAll() throws UserException;\n\n /**\n * 条件查询充值记录\n * */\n List<TradeRecordDTO> query(TradeRecordQTO tradeRecordQTO) throws UserException;\n\n /**\n * 查询总量\n * */\n Long totalCount(TradeRecordQTO tradeRecordQTO) throws UserException;\n\n /**\n * 通过用户ID删除充值记录\n * */\n int deleteByUserId(Long userId) throws UserException;\n\n /**\n * 通过用户ID进行更新\n * */\n int updateByUserId(Long userId, TradeRecordDO tradeRecordDO) throws UserException;\n}", "public interface IListService {\n\n public List<HomeDto> getListFromTable() throws SQLException;\n\n}", "@Repository(\"exhaustBDataDAO\")\npublic interface ExhaustBDataDAO {\n List<ExhaustBData> queryExhaustBData();\n\n Integer queryKeyStatusNum(@Param(\"key\") String key,@Param(\"status\") String status);\n\n int updateStatusData(SyncExhaustBData exhaustBData);\n\n int insertStatusData(SyncExhaustBData exhaustBData);\n\n SyncExhaustBData queryStatusByKey(@Param(\"key\") String key);\n}", "public interface UserBusinessServiceI {\n\n List<TBasicCompany> queryCompany(String companyCode);\n List<TBasicUser> queryUserinfo(String usercode);\n List<TBasicDepartment> queryloginDepartmentinfo(String departmentCode);\n\n\n}", "public interface PdbDao {\n\n /**\n * List of company codes for the given ownership codes.\n *\n * @param ownCodes map of own codes with their segments.\n * @return list of OLBCompanyMigration objects.\n * @throws PopulateDataException is thrown.\n */\n List getCompanies(OwnCodes ownCodes) throws PopulateDataException;\n\n}", "public interface PersistenceFinalTaskDao {\n\t\n\t/**\n\t * Persiste el total de operaciones en la tabla\n\t * de reporte final\n\t */\n\tpublic void persisteMontoOperaciones(BigDecimal montoTotal, String idProceso);\n\n\t/**\n\t * \n\t * obtiene la sumatoria de los montos de todas las\n\t * operaciones correspondienes a la carga de \n\t * un archivo de operaciones\n\t * \n\t */\n\tpublic BigDecimal conteoTotalDeOperaciones(String idProceso, String schema);\n\n\t/**\n\t * \n\t * Metodo para obtener el numero de errores\n\t * contenidos en un proceso @idProceso\n\t * \n\t * @param idProceso\n\t * @param schema\n\t * @return numero de errores correspontienes al proceso\n\t */\n\tpublic int numeroDeRegistrosCargadosConError(String idProceso, String schema);\n\n\t/**\n\t * Recibe sentencias sql para persistir,\n\t * el metodo itera la lista de sentencias\n\t * regresa el numero de registros insertados\n\t * el cual deberia ser igual al numero de sentencias recibidas\n\t * entro de la lista\n\t *\n\t * @param listQuriesToPersistence\n\t * @return\n\t */\n\tpublic int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);\n\t\n\t/**\n\t * Metodo que contiene el llamado a base de datos para hacer \n\t * el select inser de los registros que no fueron marcados\n\t * como update y tampoco fueron rechazados.\n\t * \n\t * @param queryInserSelect\n\t * @param idProceso\n\t * @return numero de registros afectados\n\t * @throws Exception \n\t */\n\tpublic int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;\n\t\n}", "public interface MaintenanceDao extends JpaRepository<Maintenance, Long> {\n}", "public interface CalApptDAO {\n\n public List<CalApptBO> getAllCalAppts();\n public CalApptBO getCalApptById(int id);\n public int updateCalAppt(CalApptBO calApptBO);\n public int insertCalAppt(CalApptBO calApptBO);\n public int deleteCalAppt(int apptId);\n\n}", "public interface ItemSettlementConditionDAO {\n List<ItemSettlementConditionDO> queryItemSettlementCondition(ItemSettlementConditionQTO itemSettlementConditionQTO);\n\n Long deleteItemSettlementConditionByConfig(Long id, String bizCode);\n\n Object addItemSettlementCondition(ItemSettlementConditionDO itemSettlementConditionDO);\n}", "public interface DbHelper {\n List<HistoryData> loadAllHistoryData();\n List<HistoryData> addHistoryData(String data);\n void clearHistoryData();\n}", "public interface DatabaseAdminRepository\n{\n /**\n * The specified map must contain below keys,\n *\n * key: id\n * key: tableName\n * key: columnIds\n * key: columnValues\n *\n * @param mapParams\n * @return\n */\n Integer insertByMap(Map mapParams);\n\n Integer insertByProps(\n @Param(\"tableName\") String tableName,\n @Param(\"columnIds\") String columnIds,\n @Param(\"columnValues\") String columnValues);\n\n Integer update(\n //@Param(\"tableName\") String tableName,\n //@Param(\"id\") Integer id,\n Map params);\n\n Integer createTableIfNotExist(\n @Param(\"tableName\") String tableName);\n\n Integer addTableColumn(\n @Param(\"tableName\") String tableName,\n @Param(\"columnName\") String columnName,\n @Param(\"columnLength\") Integer columnLength);\n\n Integer removeTableColumn(\n @Param(\"tableName\") String tableName,\n @Param(\"columnId\") String columnId);\n\n Integer delete(\n @Param(\"tableName\") String tableName,\n @Param(\"id\") Integer id);\n\n Integer deleteByCategory(\n @Param(\"tableName\") String tableName,\n @Param(\"categoryId\") Integer categoryId);\n\n Integer update (\n @Param(\"tableName\") String tableName);\n\n List<Map<String, Object>> getRecordByCategory(\n @Param(\"tableName\") String tableName,\n @Param(\"categoryId\") Integer categoryId,\n @Param(\"conditionParams\") List<Pair<String, String>> conditionParams);\n\n Map<String, Object> getRecordById(\n @Param(\"tableName\") String tableName,\n @Param(\"id\") Integer recordId);\n\n Integer empty(\n @Param(\"tableName\") String tableName);\n\n Integer updateColumnLength (\n @Param(\"tableName\") String tableName,\n @Param(\"columnId\") String columnId,\n @Param(\"columnLength\") Integer columnLength);\n\n Integer deleteTable(\n @Param(\"tableName\") String tableName);\n\n}", "public interface ClientUpLoadsDao {\r\n\r\n public void saveClientUpload(Clientupload clientupload) throws HelixDaoException;\r\n\r\n public List<Clientupload> getClientUploads(Integer idClient) throws HelixDaoException;\r\n\r\n public void deleteClientUpload(int idClientupload) throws HelixDaoException;\r\n\r\n public void updateClientUpload(Clientupload clientupload) throws HelixDaoException;\r\n\r\n\r\n}", "public interface Useful_LinksDAO {\n public void addUseful_Links(Useful_Links useful_links) throws SQLException;\n public void updateUseful_Links(Useful_Links useful_links) throws SQLException;\n public void deleteUseful_Links(Useful_Links useful_links) throws SQLException;\n}", "public interface DAOCompanies {\n\n void create(Company company);\n boolean update (int companyId, Company company);\n Company read(int companyId);\n boolean delete(int companyId);\n void addCompanyToDeveloper(int compId, int devId);\n\n}", "public interface DBConfig_I {\r\n\r\n /**\r\n * Dateformat the user sends<br/>\r\n * If the DAO receives a DTO that has a column of type DATE/TIMESTAMP\r\n * then it looks up this format to \"know\" the syntax.\r\n * \r\n * @return Java Dateformat\r\n */\r\n public String getGUIDateFormat();\r\n \r\n/**\r\n * This is how the SQL database wants a date to be<br/>\r\n * This depends on the datasource one is using.<br/>\r\n * And it only applies, if one uses a String coded Date,\r\n * recommended is *always* to use a PreparedStatement and a\r\n * setDate()<br/>\r\n * \r\n * @return format of the SQL date\r\n */\r\n public String getSQLDateFormat();\r\n \r\n /**\r\n * User set a Timestamp (as String) inside a DTO<br/>\r\n * \r\n * @return Java Dateformat \r\n */\r\n \r\n public String getGUITimestampFormat();\r\n \r\n/**\r\n * This is how the database \"wants\" a Timestamp in String representation\r\n * \r\n * @return sql timestamp format, *very* database and country dependend...\r\n */\r\n public String getSQLTimestampFormat();\r\n \r\n public String getSQLTimestampFormatQuery();\r\n \r\n/**\r\n * java.sql.Connection\r\n * \r\n * For each instance of this class -> only one connection\r\n * \r\n * This means every call to \"getConnection\" will return the *same*\r\n * Connection object.\r\n * \r\n * This saves massively ressources, but has some other severe drawbacks!\r\n * \r\n * @return instance of java.sql.Connection\r\n */\r\n public Connection getConnection();\r\n \r\n public String getDatabaseType();\r\n \r\n/**\r\n * Class that creates a unique primary key<br/>\r\n * \r\n * Needed, since almost every database has its own mechanism\r\n * to provide a unique numeric value (Autonum, Sequence...)\r\n * \r\n * @return fully qualified classname of the primary key creator\r\n */\r\n public String getPKCClass();\r\n \r\n}", "public interface ICarSupportDAO {\n\n\t/**\n\t * Saving feebdback.\n\t *\n\t * @param feedback the feedback\n\t * @throws Exception the exception\n\t */\n\tpublic void savingFeebdback(FeedbackDetail feedback)throws Exception;\n\t\n\t/**\n\t * Gets the ting booking history.\n\t *\n\t * @return the ${e.g(1).rsfl()}\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<BookingDetail> gettingBookingHistory() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available users.\n\t *\n\t * @return the ting all available users\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available feedbacks.\n\t *\n\t * @return the ting all available feedbacks\n\t * @throws Exception the exception\n\t */\n\tpublic ArrayList<FeedbackDetail> gettingAllAvailableFeedbacks() throws Exception;\n\t\n\t/**\n\t * Gets the ting all available cars.\n\t *\n\t * @return the ting all available cars\n\t * @throws Exception the void editing car( car detail detail)\n\t */\n\tpublic ArrayList<CarDetail> gettingAllAvailableCars() throws Exception;\n\t\n\n}", "public interface QuestionnaireDAO {\r\n /**\r\n * Loads questionnaire data\r\n *\r\n * @return\r\n */\r\n public Questionnaire load();\r\n}", "public interface IStrategyUserStockDAO {\n public int batchSaveStrategyUserStock(List<StrategyUserStock> list);\n\n public int deleteStocks(int userId, int strategyId, List<String> codeList);\n\n public List<StrategyUserStock> findStockByStrategyAndUser(int userId, int strategyId);\n\n public List<String> findStockCodeList(int userId, int strategyId);\n\n public List<StrategyUserStock> findStockByStrategyAndStock(int strategyId, String stockCode);\n\n public List<StrategyUserStock> findAllValidRelation();\n\n /**\n * 关注股票\n * @param userId\n * @param strategyId\n * @param stockCode\n * @return\n */\n public int saveStrategyUserStock(int userId, int strategyId, String stockCode);\n\n /**\n * 取消关注股票\n * @param userId\n * @param strategyId\n * @param stockCode\n * @return\n */\n public int deleteStrategyUserStock(int userId, int strategyId, String stockCode);\n\n /**\n * 查询关注股票数量\n * @param userId\n * @param strategyId\n * @return\n */\n public int selectFollowNum(int userId, int strategyId);\n\n /**\n * 查询用户是否关注某个股票\n * @param userId\n * @param strategyId\n * @param stockCode\n * @return\n */\n public StrategyUserStock findStrategyUserStock(int userId, int strategyId, String stockCode);\n\n public List<String> findUserFollowStock(int userId, int strategyId);\n}", "public interface DBAccessInterface {\r\n\tpublic ConnectionPoolDataSource getDataSource () throws DBAccessException ;\r\n\t//public PooledConnection getDataSource () throws DBAccessException ;\r\n\tpublic Connection getConnection() throws DBAccessException;\r\n\tpublic void reconnect()throws DBAccessException;\r\n\tpublic void dbConnect()throws DBAccessException;\r\n\t\r\n}", "public interface BuildDAO {\r\n\t\r\n\t/**\r\n\t * @return List of all builds for all projects\r\n\t */\r\n\tpublic List<Build> getBuilds();\r\n\t\r\n\t/**\r\n\t * Returns List of all builds for a specified project\r\n\t * @param projectId - unique Id of a project\r\n\t * @return List<Build> \r\n\t */\r\n\tpublic List<Build> getBuildsForProject(int projectId);\r\n\t\r\n\t/**\r\n\t * Returns Build object with stated buildId\r\n\t * @param buildId\r\n\t * @return Build \r\n\t */\r\n\tpublic Build getBuildById(int buildId);\r\n\t\r\n\t/**\r\n\t * Adds new build in a data storage\r\n\t * @param Build\r\n\t * @return boolean - true, if it was successful\r\n\t */\r\n\tpublic boolean createBuild(Build build);\r\n\t\r\n\t/**\r\n\t * Update the build's data \r\n\t * @param Build\r\n\t * @return boolean - true, if it was successful\r\n\t */\r\n\tpublic boolean updateBuild(Build build);\r\n\t\r\n\t/**\r\n\t * Delete build from a data storage by the unique buildId\r\n\t * @param buildId\r\n\t * @return boolean - true, if it was successful\r\n\t */\r\n\tpublic boolean deleteBuild(int buildId);\r\n}", "public interface EmployeeDetailDAO {\r\n\t/**\r\n\t * Saves a employee detail.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @return The identifier saved.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tEmployeeDetail save(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Updates a employee detail.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid update(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Deletes a module.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid delete(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Gets detail by identifier.\r\n\t * \r\n\t * @return The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tEmployeeDetail getById(long identifier) throws DBException;\r\n}", "public interface DAOOperations<T> {\n\t\n\t\n\t/**\n\t * Executes the SQL insert, update or delete statements and return the\n\t * number of affected rows.\n\t * @param sql the SQL statement\n\t * @return the number of executed inserts/deletes/updates\n\t * @throws DataAccessException\n\t */\n\tpublic int updateDb (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets the row count number given the sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return the row count number.\n\t * @throws DataAccessException\n\t */ \n\tpublic int selectRowCount (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets a list of beans given a sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return a list of beans.\n\t * @throws DataAccessException\n\t */\n\t@SuppressWarnings(\"hiding\")\n\tpublic <T> List<T> selectDb (final String sql, T bean) throws DataAccessException;\n\t\n\n}", "public interface PortionedDAO {\n\n String getDataPortion() throws DAOException;\n\n}", "public interface ProductDAO {\n\n /**\n * 添加商品\n * @param product\n */\n public void addProduct(Product product);\n\n /**\n * 分页查询\n * @param pager\n * @param fileId\n * @param fType\n * @param days1\n * @return\n */\n public Pager4EasyUI<ProductInfo> pager(Pager4EasyUI<ProductInfo> pager, String fileId, String fType);\n\n /**\n * 计数\n * @param fileId\n * @return\n */\n public int count(String fileId);\n\n /**\n * 批量添加\n */\n public void addProducts(List<Product> products);\n\n}", "public interface IMasterDataService {\n\t\n\t\n\t\n\t/**\n\t * Call web service asynchronously and get Language Response. \n\t * @param context\n\t * @return List<CollectionItem>\n\t * @throws InvalidJsonError\n\t * @throws JSONException\n\t * @throws TimeOutError\n\t * @throws ParseException\n\t * @throws RequestFail\n\t * @throws IOException\n\t */\n\t\n\tpublic List<CollectionItem> executeLanguageCollection(Context context, String languageBeforSetting) \n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError, ParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\n\t\n\t/**\n\t * Call web service asynchronously and get Station Response.\n\t * @param context\n\t * @return List<Station>\n\t * @throws InvalidJsonError\n\t * @throws JSONException\n\t * @throws TimeOutError\n\t * @throws ParseException\n\t * @throws RequestFail\n\t * @throws IOException\n\t */\n\tpublic List<Station> executeStationCollection(Context context, String languageBeforSetting, List<OriginDestinationRule> originDestinationRules) \n\tthrows InvalidJsonError, JSONException, TimeOutError, ParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic List<OriginDestinationRule> executeOriginDestinationRules(Context context, String languageBeforSetting) \n\tthrows InvalidJsonError, JSONException, TimeOutError, ParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\n\tpublic GeneralSetting executeGeneralSetting(Context context, String languageBeforSetting)throws Exception;\n\n\tpublic void executeClickToCallScenario(\n\t\t\tContext context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\tpublic WizardResponse executeWizard(\n\t\t\tContext context, String languageBeforSetting, String whichContext)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic HomeBannerResponse executeHomeBanner(\n\t\t\tContext context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic TrainIconResponse executeTrainIcons(\n\t\t\tContext context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\n\tpublic void encryptDatabase(Context context);\n\tpublic void storeDefaultData(Context context, boolean isChangeLanguage);\n\tpublic void storeGeneralSettings( Context context, String language) throws IOException, Exception;\n\tpublic MasterDataResponse executeMasterData(Context context, String languageBeforSetting)\n\t\t\tthrows InvalidJsonError, JSONException, TimeOutError,\n\t\t\tParseException, RequestFail, IOException, ConnectionError, BookingTimeOutError;\n\t\n\tpublic void insertStationMatrix(Context context, List<OriginDestinationRule> originDestinationRules);\n\tpublic void insertStations(Context context, List<Station> stations);\n\n\tpublic void cleanLastModifiedHomeBanner(Context context);\n\tpublic TrainIconResponse storeTrainIcon(Context context) throws InvalidJsonError, JSONException;\n\tpublic GeneralSettingResponse getGeneralSettingFromPackage(Context context, String language)throws Exception;\n\n\n}", "public interface WorkService {\n}", "public interface JobsDao {\n\n void saveJob(Job job);\n\n Job getJob(String jobId) throws DataAccessException;\n\n void updateJobProgress(String jobId, String componentName, int progress, Status status) throws DataAccessException;\n\n void removeJob(String jobId) throws DataAccessException;\n\n void addError(String jobId, String errorCode, String error, Status status);\n\n void updateJobPhase(String jobId, Status status);\n\n List<Job> getJobsByPhases(List<Status> statuses, Type jobType);\n}", "public interface OrderDAOI{ \r\n\r\n \r\n enum SQL {\r\n\t\tGETALLUSERSORDERSBYID(\"SELECT * FROM TSR_ADMIN.TSR_ORDER WHERE CUSTOMER_ID=?\"),\r\n GETORDERBYDATE(\"SELECT * FROM TSR_ADMIN.TSR_ORDER WHERE ORDER_DATE=?\"),\r\n GETORDERBYID(\"SELECT * FROM TSR_ADMIN.TSR_ODER WHERE ORDER_ID=?\");\r\n\t\t\r\n\t\tString query;\r\n\t\t\r\n\t\tSQL(String givenQuery){\r\n\t\t\tquery = givenQuery;\r\n\t\t}\r\n\t\t\r\n\t\tString getQuery() {\r\n\t\t\treturn query;\r\n\t\t}\r\n }\r\n\r\n /**\r\n * getAllUsersOrdersById gets all of a users orders.\r\n * @param userId the user's ID \r\n * @return A list of orders type List\r\n */\r\n public List<Order> getAllUsersOrdersById(long userId);\r\n\r\n /**\r\n * getOrdersByDate gets all orders on a specified date\r\n * @param date the date of the order(s)\r\n * @return a List of Orders type List\r\n */\r\n public List<Order> getOrdersByDate(Date date);\r\n\r\n /**\r\n * getOrderByid returns an order specified by the ID\r\n * @param orderId the order's Id\r\n * @return a list of Orders type List\r\n */\r\n public Order getOrderById(long orderId);\r\n\r\n}", "public interface PolicyDetailDAO {\n \n /**\n * Add Policy Detail. \n * @param policyDetail - Policy Detail\n * @return boolean\n */\n boolean addPolicyDetail(PolicyDetail policyDetail);\n \n /**\n * Check Policy Detail exists or not.\n * @param policyDetail - Policy Detail\n * @return boolean\n */\n boolean policyDetailExist(PolicyDetail policyDetail);\n \n /**\n * Update Policy Detail.\n * @param policyDetail - Policy Detail\n * @return boolean\n */\n boolean updatePolicyDetail(PolicyDetail policyDetail);\n \n /**\n * View Policy Detail based on Lender ID.\n * @param lenderId - Lender ID\n * @return boolean\n */\n List<PolicyDetail> viewpolicyDetail(int lenderId);\n \n /**\n * Find Policy Detail based on Lender ID and Policy ID.\n * @param policyId - Policy ID\n * @param lender - Lender\n * @return Policy Detail\n */\n PolicyDetail findPolicyDetail(int policyId, Lender lender);\n \n /**\n * Find Policy Detail according to Policy ID and Lender ID.\n * @param policyId - Policy ID\n * @param lenderId - Lender ID\n * @return Policy Detail\n */\n PolicyDetail findPolicyByID(int policyId, int lenderId);\n}", "public interface PreparedDishHistoryDAO {\n int addPreparedDish(PreparedDish dish);\n List<PreparedDish> getAll();\n}", "public interface MetricDayDao extends BaseDao<MetricDay> {\n List<MetricDay> queryByProjectIdList(Map<String, Object> params);\n\n List<MetricDay> findByProjectIds(List<String> idList);\n\n void insertDataByParentId(Map<String, Object> params);\n\n int deleteByProjectId(Map<String, Object> params);\n\n void batchUpdateByProjectNumAndDate(List<MetricDay> list);\n \n void batchUpdateShopSales(List<BsShopSales> list);\n\n int insertOrUpdateUserMetrics(MetricDay metricDay);\n \n int batchUpdateByMemberAndPotential(String runDate);\n \n List<MetricDay> queryMetricMonthByDate(Map<String, Object> params);\n \n List<MetricDay> queryMetricWeekByDate(Map<String, Object> params);\n \n List<BsShopSales> listShopSalesByDateList(List<String> dates);\n \n}", "public interface DatabaseOperations {\n\n public static final String DATABASE_NAME = \"ghost_database\";\n\n public static final String TABLE_SIGHTINGS = \"SIGHTINGS\";\n\n public static final String ROW_ID = \"_id\";\n\n public static final String TITLE = \"title\";\n public static final String DESCRIPTION = \"DESCRIPTION\";\n public static final String LATITUDE = \"lat\";\n public static final String LONGITUDE = \"lon\";\n public static final String RATING = \"rating\";\n}", "public interface TaskSynchronizedNewDataDAO<T extends SynchronizedData> {\n boolean createTable(Connection conn) throws SQLException;\n\n boolean insert(Connection connection, T sync) throws SQLException ;\n\n boolean update(Connection connection, T sync) throws SQLException ;\n\n boolean delete(Connection connection, Integer taskId, Integer wallId) throws SQLException;\n\n T getById(Connection connection, Integer taskId, Integer wallId) throws SQLException;\n}", "public interface ColumnDAO {\r\n public List queryObjs(Map condition) throws Exception;\r\n public List queryObjs(Map condition, int offset, int limit) throws Exception;\r\n public Column queryObj(String colid) throws Exception;\r\n public int queryCountObjs(Map condition) throws Exception;\r\n public int queryCountObj(String colid) throws Exception;\r\n public void execInsert(Column column) throws Exception;\r\n public void execUpdate(Column column) throws Exception;\r\n public void execDelete(String colid) throws Exception;\r\n}", "public interface ICIBaseDAO {\r\n\r\n public void save(Connection conn, String data) throws SQLException;\r\n\r\n public String getUpdateSql();\r\n\r\n public String checkException(Exception e) throws Exception;\r\n\r\n public void closeConnection(Connection conn);\r\n\r\n}", "public interface Database {\n\n /**\n * connect mongo\n */\n public void connect();\n\n\n public void load();\n\n\n /**\n * close connection\n */\n public void close();\n\n\n\n}", "public interface TbItemServiceAnno {\n //获取所有\n List<TbItem> getAll();\n\n //根据id进行查询\n TbItem getById(Long id);\n\n //插入\n int insertObj(TbItem tbItem);\n\n //更新\n int updateObj(TbItem tbItem);\n}", "public interface AppHealthDataDao {\n public AppHealthData findByType(String type, String idNo) throws Exception;\n\n public AppHealthData findByPatientId(String patientId, String ghh000,String type) throws Exception;\n\n public void addHealthDataImplements(JSONObject jsonall,String idNo,String card,String type,String requestUserId,String requestUserName,String userType) throws Exception;\n}", "public interface DBController {\n// String getUserByName(String Name);\n// String getAppleByName(String name);\n}", "public interface SpuDetailService {\n List<SpuDetail> selectBySPUId(String spuId);\n public Integer insert(String spuId,String urlList);\n public Integer delete(String spuId);\n public Integer update(String spuId,String urlList);\n}", "public interface VisitBLService {\n\n\n //得到一个新的id\n public int getID();\n\n //增加一条师生出访记录\n public String addItem(AcademicVO academicVO);\n\n //删除一条师生出访的记录\n public UniversalState deleteItem(int id);\n\n //更新一条师生出访的记录\n public UniversalState updateItem(AcademicVO academicVO);\n\n //获取一条师生出访的记录\n public AcademicVO getItem(int id);\n\n //获取全部师生出访的记录\n public ArrayList<AcademicVO> getAllItems(String language);\n\n\n\n}", "public interface DBStructure {\n\n String save(DataSource dataSource);\n\n void update(DataSource dataSource, String fileMask) throws UpdateException;\n\n void dropAll(DataSource dataSource) throws DropAllException;\n\n String getSqlScript(DataSource dataSource);\n\n void unlock(DataSource dataSource);\n}", "public interface BaseDao {\n\n int getTotalCount(SelectArgs selectArgs);\n\n List<Map<String,Object>> queryList(SelectArgs selectArgs);\n\n int addRecord (InsertArgs insertArgs);\n}", "public interface RefuelingDAO extends DataAccessObject<Refueling> {\n \n /**\n * \n * @param ride the ride in which the car was refueled\n * @param price the cost of the new refueling\n * @return a Refueling object representing the refueling in the db\n * @throws DataAccessException \n */\n public Refueling createRefueling(Ride ride, Integer price) throws DataAccessException;\n \n public Refueling createRefueling(Ride ride, Integer price, Double litre, String type, Boolean approved, Double mileage, Integer proof) throws DataAccessException;\n \n /**\n *\n * @param rideId \n * @param price\n * @param litre\n * @param type\n * @return\n * @throws DataAccessException\n */\n public Refueling createRefueling(Integer rideId, Integer price, Double litre, String type) throws DataAccessException;\n /**\n * \n * @param id the id of the Refueling to find in the db\n * @return a Refueling object representing the Refueling in the db; null if not found\n * @throws DataAccessException \n */\n public Refueling getRefueling (Integer id) throws DataAccessException;\n \n /**\n * \n * @param ride the Ride for which Refuelings are sought\n * @return a list of all Refuelings done during the given Ride \n * @throws DataAccessException \n */\n public List<Refueling> getRefuelingsByRide(Ride ride) throws DataAccessException;\n \n /**\n * Returns all refuelings that are still pending, so approved = null\n * \n * @return a list of all Refuelings done during the given Ride \n * @throws DataAccessException \n */\n public List<Refueling> getPendingRefuelings() throws DataAccessException; \n /**\n * \n * @param refueling an adapted Refueling object to update in the db\n * @throws DataAccessException \n */\n public void updateRefueling (Refueling refueling) throws DataAccessException;\n \n /**\n * \n * @param type the new type for the refueling\n * @param id the db id of the refueling to change its type \n * @throws DataAccessException \n */\n public void updateRefuelingType (String type, Integer id) throws DataAccessException;\n \n /**\n * \n * @param price the new price for the refueling\n * @param id the db id of the refueling to change its price\n * @throws DataAccessException \n */\n public void updateRefuelingPrice (Integer price, Integer id) throws DataAccessException;\n \n /**\n * \n * @param litre the new number of litres for the refueling\n * @param id the db id of the refueling to update\n * @throws DataAccessException \n */\n public void updateRefuelingLitre (Double litre, Integer id) throws DataAccessException;\n \n /**\n * \n * @param id the id of the Refueling to delete from the db\n * @throws DataAccessException \n */\n public void deleteRefueling (Refueling refueling) throws DataAccessException;\n \n public Refueling createRefueling(Integer rideId, Integer price, Double litre, String type, Boolean approved, Double mileage, Integer proof) throws DataAccessException;\n\n public void deleteRefueling (Integer id) throws DataAccessException;\n \n public List<Refueling> getRefuelingsByUser(Integer user, Long from, Long to) throws DataAccessException;\n\n}", "public interface IShiftHandle\r\n{\r\n /**\r\n * Add a new shift to the model\r\n * @param shiftToAdd a shift to add\r\n */\r\n void addShift(Shift shiftToAdd);\r\n\r\n /**\r\n *\r\n * @param userName the represent the all shifts for the specific user\r\n * @return ResultSet that represent all the shifts for the specific user\r\n * @throws GetAllException\r\n */\r\n ResultSet getAllShift(String userName) throws GetAllException;\r\n}", "public interface IFsFarmStudyService {\n\n List<FsFarmStudy> getAllFarmStudy();\n\n FsFarmStudy getFarmStudyById(Integer farmstudyId);\n\n List<FsFarmStudy> getFsFarmnewsByName(String farmstudyName);\n\n int insertSelective(FsFarmStudy record);\n\n int updateByPrimaryKeySelective(FsFarmStudy record);\n\n}", "public interface WorkerJvmStateService {\n\n Boolean insert(WorkerJvmStateInfo jvmMonitorInfo);\n\n List<WorkerJvmStateInfo> getLatestList();\n\n WorkerJvmStateInfo getLatestByWorkerId(Long workerId);\n\n List<WorkerJvmStateInfo> getListByWorkerIdForQuery(@Param(\"workerId\") Long workerId, @Param(\"startTime\") Date startTime, @Param(\"endTime\") Date endTime);\n}", "interface StuffDao {\n List<Stuff> loadAllStuff();\n}", "public interface OnMyMovieBusinessLogic {\n Movie getSearch(Movie movie) throws SQLException;\n\n List<Movie> getMovies() throws SQLException;\n\n List<Movie> getSearchMovies(String item) throws SQLException;\n\n void insertMovie(Movie research) throws SQLException, ObjectAlreadyExistException;\n\n void updateMovie(Movie movie) throws SQLException;\n\n void deleteMovie(Movie movie) throws SQLException;\n}", "public interface RdbStorage extends ReadonlyRdbStorage {\n /**\n * insert new record into rdb.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return new object\n */\n Object insert(String key, Object param);\n\n /**\n * update records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer update(String key, Object param);\n\n /**\n * delete records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer delete(String key, Object param);\n}", "public abstract TasksDAO tasksDAO();", "public interface IPLMBasicInfoPoolSupplyService {\n\n void save(IMetaObjectImpl object);\n void delete(int objid );\n void deleteByIds_(String objids);\n Map getMapInfoById(int objid);\n IMetaDBQuery getSearchList(Map<String, String> map);\n IPLMBasicInfoPoolSupply getById(int objid);\n public IMetaDBQuery queryByids(String objids);\n\n\n IMetaDBQuery selectModel(Map<String, Object> param);\n\n\n void deleteByEntityId(int EntityId,String entitName);\n IMetaDBQuery getSearchListByEntityId(int EntityId,String entitName);\n List<IMetaObjectImpl> getEntitySearchListByEntityId(int EntityId,String entitName);\n Map getOnlyOneByEntityId(int EntityId,String entitName);\n\n\n}", "public interface StockDAO {\n public int getAmountAvailable(String stockName); //Retrieves amount of stock available from stock_initial table\n public List<StockItem> getStockList(); //Retrieves list of stocks for initial wallet values\n}", "public interface DrugShopService {\n// -- 表关系:\n// -- 药品商店\n\n//-- 1\n//-- (查询农药)\n public List<Drug> selectDrugList(Integer startNum, Integer cellCount) throws Exception;\n// -- userinfo drug person_drug\n\n// 显示总页数\n public Integer selectDrugCount() throws Exception;\n//\n// -- 2 显示后继页内容\n //同上\n//-- 3 点击后传送商品id\n public Drug selectDrugInfo(Integer drugId) throws Exception;\n//-- ` 查询商品信息是否存在(商品不存在)\n\n//-- ` 根据信息判断商品数量\n//-- ` 判断余额\n//-- 4 更新商品剩余数量\n public void updateDrugYpcount(Integer YpcountChange) throws Exception;\n//-- 8 插入背包\n public void insertDrugInfo(Drug drug) throws Exception;\n//-- 9 更新余额\n public void updateUserMoney(Integer uMoneyChange) throws Exception;\n}", "public interface PromulgatorService {\n\n //修改发布者信息\n int updateByPrimaryKeySelective(Promulgator record);\n\n //得到用户总点赞数\n List<Map<String,Object>> guidLikecount(String saleGuid);\n\n //根据proId查找数据\n Promulgator selectByPrimaryKey(String proId);\n\n //修改用户总点赞数\n int upLikecount(Integer likeCount,String proId);\n\n\n int insertSelective(Promulgator record);\n\n Integer selectPlikeCount(String saleGuid);\n}", "public interface DBDao {\n /**\n * 添加本地缓存\n * @param url 插入的数据的url\n * @param content 插入的数据的json串\n */\n public void insertData(String url,String content,String time);\n\n /**\n * 删除指定的本地存储数据\n * @param url 指定url\n */\n public void deleteData(String url);\n\n /**\n * 更新本地缓存数据\n * @param url 指定url\n * @param content 需要更新的内容\n * @param time 更新的时间\n */\n public void updateData(String url,String content,String time);\n\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据content\n */\n public String queryData(String url);\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据的存储时间\n */\n public String queryDataTime(String url);\n}", "public interface LobbyDataAccess {\n\n public void addLobby(String lobby, String id) throws Exception;\n\n public List<String> getLobbies()throws Exception;\n\n public void removeLobbies(String lobbyID) throws Exception;\n\n public void clear() throws Exception;\n\n public void addDeltas(String command, String lobbyID) throws Exception;\n\n public List<String> getDeltas(String id) throws Exception;\n public void clearDeltas() throws Exception;\n\n}", "public interface UpLoadElemService\n{\n int selectMonthTotalOnStations(List<RbacDep> departments);\n\n int selectMonthNoneReCheckOnActiveUserStations(List<RbacDep> departments);\n\n ArrayList<VehMonthCount> selectVehMonthCountOnActiveUserStations(List<RbacDep> departments);\n\n ArrayList<UpLoadUnit> selectByTermsOnActiveUser(Integer length, Integer start, Integer station_id, String license_plate, Integer axle_num,\n Integer whole_weight_from, Integer whole_weight_to, Integer recheck_wholeWeight_from,\n Integer recheck_wholeWeight_to, Integer whole_over_from, Integer whole_over_to, Integer whole_overrate_from,\n Integer whole_overrate_to, String check_dt_from, String check_dt_to, String recheck_dt_from, String recheck_dt_to,\n Integer isover, String vehowner_name, List<RbacDep> stations);\n\n ArrayList<UpLoadUnit> selectByTermsAllOnActiveUser( Integer station_id, String license_plate, Integer axle_num,\n Integer whole_weight_from, Integer whole_weight_to, Integer recheck_wholeWeight_from,\n Integer recheck_wholeWeight_to, Integer whole_over_from, Integer whole_over_to, Integer whole_overrate_from,\n Integer whole_overrate_to, String check_dt_from, String check_dt_to, String recheck_dt_from, String recheck_dt_to,\n Integer isover, String vehowner_name, List<RbacDep> stations);\n\n\n int selectWhereCountOnActiveUser(Integer station_id, String license_plate, Integer axle_num, Integer whole_weight_from, Integer whole_weight_to,\n Integer recheck_wholeWeight_from, Integer recheck_wholeWeight_to, Integer whole_over_from, Integer whole_over_to,\n Integer whole_overrate_from, Integer whole_overrate_to, String check_dt_from, String check_dt_to, String recheck_dt_from,\n String recheck_dt_to, Integer isover, String vehowner_name, List<RbacDep> stations);\n\n ArrayList<MonthlyStatistic> selectStatisticBaseYearMonrh(Integer year ,Integer month, List<RbacDep> departments);\n\n int selectIsExist(String checkCode, Integer wholeWeight, Integer recheckWholeweight);\n\n int insertUpLoadElem(UpLoadUnit upLoadUnit);\n\n int deleteByCheckCode(String checkCode);\n\n}" ]
[ "0.6867287", "0.677244", "0.66719735", "0.6532975", "0.6521919", "0.64489055", "0.64196646", "0.64194626", "0.64131314", "0.6405175", "0.6382426", "0.6379278", "0.6341792", "0.6336364", "0.63321865", "0.6327888", "0.63214004", "0.6310391", "0.62903017", "0.6277125", "0.6257806", "0.6252468", "0.6212974", "0.6206221", "0.62060446", "0.62058854", "0.6194859", "0.61702806", "0.6167075", "0.614632", "0.61434126", "0.61417645", "0.6131853", "0.6128317", "0.6125607", "0.61202335", "0.61187243", "0.6108659", "0.6103999", "0.61023694", "0.6099408", "0.60951716", "0.6089307", "0.60787445", "0.6076707", "0.60730046", "0.60729754", "0.6061594", "0.60592896", "0.60551804", "0.60466504", "0.60369486", "0.6033805", "0.60334015", "0.6032667", "0.60282993", "0.6018267", "0.6008838", "0.60070777", "0.60013026", "0.5999735", "0.5998245", "0.59972245", "0.59921163", "0.5990672", "0.5986632", "0.5984237", "0.59751445", "0.5967946", "0.5966959", "0.5960521", "0.5958364", "0.5957702", "0.5957322", "0.5957211", "0.59565866", "0.59556466", "0.5950103", "0.5944664", "0.59435934", "0.59407604", "0.59397846", "0.59395945", "0.593466", "0.5931731", "0.59316623", "0.5928509", "0.59279674", "0.59277886", "0.5925996", "0.5925172", "0.5922009", "0.5919877", "0.5919684", "0.59181094", "0.5915122", "0.59096944", "0.59094244", "0.5907539", "0.5906291" ]
0.65300536
4
Manages the reading of the file and stores items in the inventory as a list.
private void loadInventory(String fileName){ List<String> list = new ArrayList<String>(); try (Stream<String> stream = Files.lines(Paths.get(fileName))) { //Convert it into a List list = stream.collect(Collectors.toList()); } catch (IOException e) { e.printStackTrace(); } for(String itemList : list){ String[] elements = itemList.split("--"); try{ switch(elements[0].toUpperCase()){ case "BURGER": inventory.add(createBurger(elements));; break; case "SALAD": inventory.add(createSalad(elements));; break; case "BEVERAGE": inventory.add(createBeverage(elements));; break; case "SIDE": inventory.add(createSide(elements));; break; case "DESSERT": inventory.add(createDessert(elements));; break; } }catch(Exception e){ System.err.println(e.getMessage()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "private void populateItems() {\n \t try {\n \t File myObj = new File(\"items.txt\");\n \t Scanner myReader = new Scanner(myObj);\n \t while (myReader.hasNextLine()) {\n\t \t String data = myReader.nextLine();\n\t \t String[] variables = data.split(\",\");\n\t \t int price = (int) Math.floor(Math.random() * 100); \n\t \t \n\t \t itemList += variables[0] + \",\"+ variables[1] +\",\" + \"0\" + \", \"+ \",\"+price + \",\";\n\t \t Item x = new Item(variables[0], 0, \"\", price, variables[1]);\n\t \t items.add(x);\n \t }\n \t myReader.close();\n \t } catch (FileNotFoundException e) {\n \t System.out.println(\"An error occurred.\");\n \t e.printStackTrace();\n \t }\n\t\t\n\t}", "private void readItems() {\n }", "public void data() {\n\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\"/Users/macbook_user/Desktop/OOP Project/List.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n\n String[] columnName\n = {\"Id\", \"Name\", \"Amount\", \"Shelf#\", \"Position\"};\n int i, index;\n String line;\n try {\n br.readLine();\n while ((line = br.readLine()) != null) {\n index = 0;\n String[] se = line.split(\" \");\n Map<String, Object> item = new HashMap<>();\n for (i = 0; i < se.length; i++) {\n if (\"\".equals(se[i])) {\n continue;\n }\n if (index >= columnName.length) {\n continue;\n }\n item.put(columnName[index], se[i]);\n index++;\n }\n\n //get the amount of the item from the list\n int amount = Integer.parseInt((String) item\n .get(columnName[2]));\n\n // if amount greater than 0, Existence is Y, else N\n if (amount > 0) {\n item.put(\"Existence\", \"Y\");\n } else {\n item.put(\"Existence\", \"N\");\n }\n\n inventory.add(item);// add item to ArrayList\n }\n br.close();\n\n outPutFile();\n } catch (IOException e) {\n }\n\n }", "private static ArrayList<String> readInventory(Scanner source) {\n\n\t\tArrayList<String> contents = new ArrayList<String>();\n\n\t\twhile (source.hasNext()) {\n\t\t\tString line = source.nextLine();\n\t\t\tcontents.add(line);\n\t\t}\n\n\t\treturn contents;\n\t}", "public static void initializeInventory(File initialInventory,\n CS145LinkedList<BookData> inventory) {\n Scanner input = null;\n\n // Try opening file object for initial listing of inventory\n try {\n input = new Scanner(initialInventory);\n\n // If failure occurs throw exception\n } catch (FileNotFoundException ex) {\n System.out.println(\"Error: File \" + initialInventory.getName()\n + \"not found. Terminating Program.\");\n }\n // Otherwise begin reading file\n while(input.hasNextLine()) {\n\n String line = input.nextLine();\n Scanner lineScanner = new Scanner(line);\n\n // Read lines of txt file as tokes delimited by commas\n lineScanner.useDelimiter(\",\");\n\n // Try reading tokens of lines and save data to BookData Objects\n // of inventory\n try {\n String title = lineScanner.next();\n String ISBN = lineScanner.next();\n double price = lineScanner.nextDouble();\n String format = lineScanner.next();\n int stock = lineScanner.nextInt();\n\n // Create new book object using collected data\n Book aNewBook = new Book(title,ISBN,price,format);\n aNewBook.changeStock(stock);\n\n // Pass created Book object to new BookData object\n inventory.add(new BookData(aNewBook));\n\n // If failure occurs trying to save tokens in given way occurs,\n // throw InputMismatchException\n } catch (InputMismatchException ex) {\n System.out.println(\"Line : \" + line);\n System.out.println(\"Mismatched Token\" + lineScanner.next());\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static ArrayList<Item> loadItems(String filename)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File(filename)));\r\n\t\t\tArrayList<Item> items = (ArrayList<Item>)ois.readObject();\r\n\t\t\tois.close();\r\n\t\t\tSystem.out.println(\"Loaded items from disk: \" + items.size());\r\n\t\t\treturn items;\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"No locally saved \" + filename + \" - creating a new one: \" + e2.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"IO Error: \" + e2.getMessage());\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"This copy of the program is missing some files: \" + e1.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ArrayList<Item> getItems(){\n\t\tArrayList<Item> items = new ArrayList<Item>();\n\t\tcreateFile(itemsFile);\n\t\ttry {\n\t\t\tString[] data;\n\t\t\treader = new BufferedReader(new FileReader(itemsFile));\n\n\t\t\tString strLine;\n\t\t\twhile((strLine = getLine()) != null){\n\t\t\t\tdata = strLine.split(\",\");\n\n\n\t\t\t\tItem item = new Item(Integer.parseInt(data[0]), data[1],data[2],Integer.parseInt(data[3]), data[4], data[5], data[6],data[7]);\n\t\t\t\titems.add(item);\n\n\t\t\t}\n\t\t}catch (IOException e){\n\t\t\t//TODO auto generated catch block\n\t\t\tSystem.err.println(e);\n\t\t}\n\n\t\treturn items;\n\t}", "public ArrayList<String> readItem();", "public static ArrayList<Item> readFromFile() {\n\t\t\n\t\tPath writeFile = Paths.get(\"list.txt\");\n\t\tFile file = writeFile.toFile();\n\t\tArrayList<Item> itemList = new ArrayList<Item>();\n\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\t// this is a buffer and the benefit of using this is to is to store a block of\n\t\t\t// memory that\n\t\t\t// we can read data from later -- more efficient than Scanner\n\n\t\t\tBufferedReader reader = new BufferedReader(fr);\n\t\t\t// this is attempting to read the first line from the text document\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\n\t\t\t\tString[] stringArray= line.split(\",\");\n\t\t\t\tItem item = new Item(Integer.parseInt(stringArray[0]), stringArray[1], stringArray[2],stringArray[3],Integer.parseInt(stringArray[4]),Double.parseDouble(stringArray[5]) );\n\t\t\t\titemList.add(item);\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"There were no items!\");\n\t\t}\n\t\treturn itemList;\n\t}", "private Runnable loadItems() {\n File file = new File(getFilesDir(), \"data.txt\");\n\n try {\n // Clears and adds appropriate items\n this._items.clear();\n this._items.addAll(FileUtils.readLines(file, Charset.defaultCharset()));\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error reading items\", e);\n }\n\n // Return a callback function for saving items\n return () -> {\n try {\n FileUtils.writeLines(file, this._items);\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error writing items\", e);\n }\n };\n }", "public void stockLoad() {\n try {\n File file = new File(stockPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String data = scanner.nextLine();\n String[] userData = data.split(separator);\n Stock stock = new Stock();\n stock.setProductName(userData[0]);\n int stockCountToInt = Integer.parseInt(userData[1]);\n stock.setStockCount(stockCountToInt);\n float priceToFloat = Float.parseFloat(userData[2]);\n stock.setPrice(priceToFloat);\n stock.setBarcode(userData[3]);\n\n stocks.add(stock);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public ArrayList loadItems (String file) {\n ArrayList<Item> itemList = new ArrayList<>();\n\n File itemFile = new File(file);\n\n Scanner scanner = null;\n\n try{\n scanner = new Scanner(itemFile);\n\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }\n\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n String [] oneItem = line.split(\"=\");\n itemList.add(new Item(oneItem[0],Integer.parseInt(oneItem[1])));\n }\n\n\n return itemList;\n }", "public Set<InventoryCarModel> loadInventoryItems() {\r\n\t\tSet<InventoryCarModel> items = new HashSet<InventoryCarModel>();\r\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(this.data_location))) {\r\n\t\t\tString line;\r\n\t\t\tint counter = 0;\r\n\t\t\twhile ((line = br.readLine()) != null && line != \"\\n\") {\r\n\t\t\t\tString[] values = line.split(\",\");\r\n\t\t\t\tif (values[0].equals(\"vin\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tInventoryCarModel Inventory = new InventoryCarModel(values[0], values[1], values[2], values[3], Integer.parseInt(values[4]));\r\n\t\t\t\t\titems.add(Inventory);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error adding vehicle to inventory: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn items;\r\n\t}", "public void loadItems(String filename) throws IOException, CSVException {\n\t\tinventory = new Stock();\n\n\t\tString[] itemProperties = Utilities.readCSV(filename, 5, 6);\n\t\tfor (String line : itemProperties) {\n\t\t\tString[] properties = line.split(\",\");\n\t\t\tItem item;\n\t\t\tif (properties.length == 5) {\n\t\t\t\titem = new Item(properties[0], Double.parseDouble(properties[1]), Double.parseDouble(properties[2]),\n\t\t\t\t\t\tInteger.parseInt(properties[3]), Integer.parseInt(properties[4]));\n\t\t\t} else {\n\t\t\t\titem = new ColdItem(properties[0], Double.parseDouble(properties[1]), Double.parseDouble(properties[2]),\n\t\t\t\t\t\tInteger.parseInt(properties[3]), Integer.parseInt(properties[4]),\n\t\t\t\t\t\tDouble.parseDouble(properties[5]));\n\t\t\t}\n\n\t\t\tinventory.add(item);\n\t\t}\n\n\t}", "public ItemGenerator()\n {\n itemList = new ArrayList<Item>();\n try\n {\n Scanner read = new Scanner(new File (\"ItemList.txt\"));\n while (read.hasNext())\n {\n String line = read.nextLine();\n Item i = new Item(line);\n itemList.add(i);\n }\n read.close();\n }\n catch (FileNotFoundException fnf)\n {\n System.out.println(\"File not found\");\n }\n }", "@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t\t_listId = readD();\r\n\t\tint count = readD();\r\n\t\tif (count <= 0 || count > Config.MAX_ITEM_IN_PACKET || count * BATCH_LENGTH != getByteBuffer().remaining())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_items = new Item[count];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tint objectId = readD();\r\n\t\t\tint itemId = readD();\r\n\t\t\tlong cnt = readQ();\r\n\t\t\tif (objectId < 1 || itemId < 1 || cnt < 1)\r\n\t\t\t{\r\n\t\t\t\t_items = null;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_items[i] = new Item(objectId, itemId, cnt);\r\n\t\t}\r\n\t}", "public ArrayList<Item> loadItems(String filename) {\n ArrayList<Item> itemsList = new ArrayList<>();\n try {\n File file = new File(filename);\n BufferedReader reader= new BufferedReader(new InputStreamReader(new FileInputStream(file), \"UTF-8\"));\n String line= reader.readLine();\n while (line != null){\n String[] splitedLine = line.split(\"=\");\n String name = splitedLine[0];\n int weight = Integer.parseInt(splitedLine[1]) / 1000; // on convertit en tonnes\n itemsList.add(new Item(name,weight));\n line = reader.readLine();\n }\n reader.close(); //pour arreter la memoire tampon\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n return itemsList;\n }", "public ArrayList<?> getItems(String filename){\n \n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n items = (ArrayList<?>) ois.readObject();\n ois.close();\n \n \n }catch(IOException e){\n System.out.println(e);\n }catch(ClassNotFoundException e){\n System.out.println(e);\n }\n \n return items;\n }", "private static ArrayList<String> loadShop(File file) {\n System.out.println(\"Loading shop \" + file.getName() + \"...\");\n\n ArrayList<String> temp = new ArrayList<>();\n\n try {\n //load file into a list of strings\n String lineRead;\n ArrayList<String> lines = new ArrayList<>();\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(\"./plugins/SkyblockShop/\" + file.getName()), \"UTF-8\"));\n while ((lineRead = bufferedReader.readLine()) != null) {\n lines.add(ChatColor.translateAlternateColorCodes('&', lineRead));\n }\n bufferedReader.close();\n\n //set what number the list is on for counting\n int itemNum = -1;\n\n //parse list of strings\n for (String line : lines) {\n //split line into args\n String[] args = line.trim().split(\":\");\n\n //check validity\n if (args.length == 2) {\n //switch for line\n switch(args[0].toUpperCase()) {\n case(\"ITEM\"):\n //move to next item and start adding it\n itemNum++;\n temp.add(args[1]);\n break;\n case(\"NAME\"):\n case(\"CATEGORY\"):\n case(\"SLOT\"):\n case(\"ACTION\"):\n case(\"VALUE\"):\n //add to current item\n temp.set(itemNum, temp.get(itemNum) + \"->\" + args[1]);\n break;\n default:\n break;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"Something went wrong while reading the file!\");\n }\n\n return temp;\n }", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }", "public List<Stock> readFile() throws IOException\n {\n \t //System.out.println(\"hhh\");\n \t //List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>() {});\n \t \n \t List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>(){});\n \t\n\t\treturn listStock;\n }", "public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n NBTTagList var2 = par1NBTTagCompound.getTagList(\"Items\");\n this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++var3)\n {\n NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);\n byte var5 = var4.getByte(\"Slot\");\n\n if (var5 >= 0 && var5 < this.furnaceItemStacks.length)\n {\n this.furnaceItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);\n }\n }\n\n this.fuel = par1NBTTagCompound.getShort(\"Fuel\");\n this.furnaceCookTime = par1NBTTagCompound.getShort(\"CookTime\");\n this.direction = par1NBTTagCompound.getShort(\"Direction\");\n this.furnaceTimeBase = par1NBTTagCompound.getShort(\"TimeBase\");\n this.maxFuel = par1NBTTagCompound.getShort(\"MaxFuel\");\n sync();\n }", "@Override\n public void loadFoodItems(String filePath) {\n file = new File(filePath);\n \n // Check the file existence\n try {\n scnr = new Scanner(file);\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n System.out.println(\"no such file\");\n }\n \n // Read the file and save the food info to food class\n try {\n while (scnr.hasNextLine()) {\n \t\n // read line by line\n String text = scnr.nextLine().trim();\n \n // if line is not empty\n \n // load the file to memory\n if (!text.isEmpty()) {\n \t\n String[] objects = text.split(\",\");\n \n //skip the data with wrong format\n if(objects.length != 12) continue;\n String id = objects[0];\n String name = objects[1];\n FoodItem food = new FoodItem(id, name);\n for(int i = 0; i < 5; i++) {\n \tfood.addNutrient(nutrition[i], Double.parseDouble(objects[2*(i+1)+1]));\n }\n foodItemList.add(food);\n \n }\n }\n \n // add the food item to nutrition BPTree\n \n Iterator<FoodItem> foodItr = foodItemList.iterator();\n while(foodItr.hasNext()) {\n \tIterator<BPTree<Double, FoodItem>> treeItr = nutriTree.iterator();\n \tFoodItem tempFood = foodItr.next();\n \tint i = 0;\n while(treeItr.hasNext()) {\n \ttreeItr.next().insert(tempFood.getNutrientValue(nutrition[i]), tempFood);\n \ti ++;\n }\n }\n \n \n scnr.close();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"Error in food data processing\");\n }\n }", "public void readDataFromFile(){\n try {\n weatherNow.clear();\n // Open File\n Scanner scan = new Scanner(context.openFileInput(fileSaveLoc));\n\n // Find all To Do items\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n\n // if line is not empty it is data, add item.\n if (!line.isEmpty()) {\n // first is the item name and then the item status.\n String[] readList = line.split(\",\");\n String city = readList[0];\n String countryCode = readList[1];\n double temp = Double.parseDouble(readList[2]);\n String id = readList[3];\n String description = readList[4];\n\n weatherNow.add(new WeatherNow(city,countryCode, temp, id, description));\n }\n }\n\n // done\n scan.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ArrayList<Item> getItemList(){\n\t\treturn inventoryList;\n\t}", "public void plzreadDataFiles(){\n\n //This line opens the file and returns an Input Stream data type\n InputStream itemIs = getResources().openRawResource(R.raw.card_data);\n\n //Read the file line by line\n BufferedReader reader = new BufferedReader(new InputStreamReader(itemIs, Charset.forName(\"UTF-8\")));\n\n //Initialize a var to track the line of the file being read in\n String line =\"\";\n\n // error proofing if the file is weird\n try {\n int i = 0;\n int k = 0;\n while ((line = reader.readLine()) != null){\n //split data by commas into an array of strings\n String[] token = line.split(\",\");\n\n itemArray[i] = new itemInfo();\n\n //Read the data\n itemArray[i].setCardType(token[0]);\n itemArray[i].setCardName(token[1]);\n itemArray[i].setItemType(token[2]);\n itemArray[i].setFrontText(token[3]);\n itemArray[i].setRearText(token[4]);\n itemArray[i].setDuration(token[5]);\n\n\n // Create a list of ITEM names for the autocomplete\n if ((itemArray[i].getCardType().intern()) == (\"Common Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Unique Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Spell\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n //Check that the damage column has a number in it, and write it in\n if (token[5].intern() != \"-\"){\n itemArray[i].setDamage(Integer.parseInt(token[5]));\n }\n else{\n //Set it to zero if the dash is detected\n itemArray[i].setDamage(0);\n }\n itemArray[i].setDuration(token[6]);\n\n i = i + 1;\n\n Log.d(\"My Activity\", \"Just added: \"+itemArray[i]);\n }\n\n } catch (IOException e) {\n Log.wtf(\"MyActivity\",\"Error reading data file on line\"+line,e);\n e.printStackTrace();\n }\n }", "List<InventoryItem> getInventory();", "public abstract List<String> getInventory();", "public void genLists() {\n\t\tItem noitem = new Item(\"nothing\", \"You don't see that here.\", \"no_item\", \"\", true);\r\n\t\titems.put(noitem.getId(), noitem);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataInputStream in = new DataInputStream(new FileInputStream(ITEM_FILE));\r\n\t\t\tDataInputStream in = new DataInputStream(getClass().getResourceAsStream(ITEM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tItem new_item = Item.readItem(in);\r\n\t\t\t\t\titems.put(new_item.getId(), new_item);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t\tin = new DataInputStream(getClass().getResourceAsStream(ROOM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tRoom new_room = Room.readRoom(in, items);\r\n\t\t\t\t\trooms.put(new_room.getId(), new_room);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tplayer.setCurrentRoom(getRoom(\"start\"));\r\n\t}", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "public void readInventoryFromNBT(CompoundNBT tag) {\n ListNBT nbttaglist = tag.getList(TAG_ITEMS, NBT.TAG_COMPOUND);\n\n int limit = this.getInventoryStackLimit();\n ItemStack stack;\n for (int i = 0; i < nbttaglist.size(); ++i) {\n CompoundNBT itemTag = nbttaglist.getCompound(i);\n int slot = itemTag.getByte(TAG_SLOT) & 255;\n if (slot < this.inventory.size()) {\n stack = ItemStack.read(itemTag);\n if (!stack.isEmpty() && stack.getCount() > limit) {\n stack.setCount(limit);\n }\n this.inventory.set(slot, stack);\n }\n }\n }", "public void load(){\n\t\t\tArrayList<String> entries = readEntriesFromFile(FILENAME);\n\t\t\t\n\t\t\tfor(int i = 1; i < entries.size(); i++){\n\t\t\t\tString entry = entries.get(i);\n\t\t\t\tString[] entryParts = entry.split(\",\");\n\t\t\t\tString name = entryParts[0];\n\t\t\t\tString power = entryParts[1];\n\t\t\t\tString gold = entryParts[2];\n\t\t\t\tString xp = entryParts[3];\n\t\t\t\tString location = entryParts[4];\n\t\t\t\tint powerInt = Integer.parseInt(power);\n\t\t\t\tint goldInt = Integer.parseInt(gold);\n\t\t\t\tint XPInt = Integer.parseInt(xp);\n\t\t\t\tRegion regionR = RM.getRegion(location);\n\t\t\t\tTrap trap = new Trap(name, powerInt, goldInt, XPInt, regionR);\n\t\t\t\ttrapList[i-1] = trap;\n\t\t\t}\n\t}", "public void setLoadItems(String borrowedFileName) \n\t{\n\t\trecordCount = RESET_VALUE;\n\n\t\ttry \n\t\t{\n\t\t\tScanner infile = new Scanner(new FileInputStream(borrowedFileName));\n\n\t\t\twhile(infile.hasNext() == true && recordCount < MAX_ITEMS) \n\t\t\t{\n\t\t\t\titemIDs[recordCount] = infile.nextInt();\n\t\t\t\titemNames[recordCount] = infile.next(); \n\t\t\t\titemPrices[recordCount] = infile.nextDouble(); \n\t\t\t\tinStockCounts[recordCount] = infile.nextInt();\n\t\t\t\trecordCount++;\n\t\t\t}\n\n\t\t\tinfile.close();\n\n\t\t\t//sort parallel arrays by itemID\n\t\t\tsetBubbleSort();\n\n\t\t}//END try\n\n\t\tcatch(IOException ex) \n\t\t{\n\t\t\trecordCount = NOT_FOUND;\n\t\t}\n\t}", "public void loadShoppingList(){\n try{\n //load the shopping list from the external file\n List<Ingredient> returnedList = Data.<Ingredient>loadList(shoppingListFile);\n if (returnedList != null){\n //convert list to an observableList\n shoppingListIngredients = FXCollections.observableList(returnedList);\n //set to the shopping list\n shoppingList.setItems(shoppingListIngredients);\n } else {\n System.out.println(\"No Shopping List Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load shopping list from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }", "private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }", "public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "private Object readResolve() {\n\t\titemsArray = new ItemDefinition[256];\n\t\tfor (ItemDefinition def : itemsList) {\n\t\t\titemsArray[def.getId()] = def;\n\t\t}\n\t\treturn this;\n\t}", "public ArrayList<String> loadRead() {\n\n\t\tSAVE_FILE = READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "private void addItems() {\n while (true) {\n ClothingItem item = readItem();\n if (item == null || item.getId() < 0) {\n break;\n }\n try {\n ctrl.addItem(item);\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }", "public ArrayList<Product> getCartContents() throws IOException, ClassNotFoundException {\n try {\n String fileName=userid+\"cart.txt\";\n File file=new File(fileName);\n if(file.exists()) {\n FileInputStream fis = new FileInputStream(fileName);//fileName);\n ObjectInputStream ois = new ObjectInputStream(fis);\n this.cartContents = (ArrayList<Product>) ois.readObject();\n }\n return cartContents;\n }\n catch(EOFException e)\n {\n System.out.println(\"Cart is empty.\");\n }\n return null;\n }", "public static ItemStack[] readInventory(List<CompoundTag> tagList, int start, int size) {\n ItemStack[] items = new ItemStack[size];\n for (CompoundTag tag : tagList) {\n tag.readByte(\"Slot\", slot -> {\n if (slot >= start && slot < start + size) {\n items[slot - start] = readItem(tag);\n }\n });\n }\n return items;\n }", "public void readFile(String filePath) \r\n\t{\r\n\t\ttry (BufferedReader read = new BufferedReader(new FileReader(filePath)))\r\n\t\t{\r\n\t\t\t//each line\r\n\t\t\tString item = null;\r\n\t\t\t\r\n\t\t\t//As long as each line(item) is not null\r\n\t\t\twhile ((item = read.readLine()) !=null)\r\n\t\t\t{\r\n\t\t\t\t//Split the item line into separate parts after tab characters and store in temp array\r\n\t\t\t\tString items[] = item.split(\"\\t\");\r\n\t\t\t\t\r\n\t\t\t\t//Assigning each part of the line item to a variable\r\n\t\t\t\tString name = items[0];\r\n\t\t\t\tString type = items[1];\r\n\t\t\t\tString description = items[2];\r\n\t\t\t\tdouble price = Double.parseDouble(items[3]);\r\n\t\t\t\tboolean toRemove;\r\n\t\t\t\t\r\n\t\t\t\t//Deciding the removal boolean\r\n\t\t\t\tif (items[4].equalsIgnoreCase(\"yes\"))\r\n\t\t\t\t{\r\n\t\t\t\t\ttoRemove = true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\ttoRemove = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Create MenuItem\r\n\t\t\t\tMenuItem newItem = new MenuItem(name, type, description, price, toRemove);\r\n\t\t\t\t//Add MenuItem to arraylist of menu items\r\n\t\t\t\tmenuItems.add(newItem);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t\r\n\t}", "public Item[] getInventoryItems(){\n\t\treturn inventoryItems;\n\t}", "@Override\n public void readFromNBT(NBTTagCompound nbt)\n {\n super.readFromNBT(nbt);\n pokedexNb = nbt.getInteger(\"pokedexNb\");\n time = nbt.getInteger(\"time\");\n NBTBase temp = nbt.getTag(\"Inventory\");\n if (temp instanceof NBTTagList)\n {\n NBTTagList tagList = (NBTTagList) temp;\n for (int i = 0; i < tagList.tagCount(); i++)\n {\n NBTTagCompound tag = tagList.getCompoundTagAt(i);\n byte slot = tag.getByte(\"Slot\");\n\n if (slot >= 0 && slot < inventory.length)\n {\n inventory[slot] = ItemStack.loadItemStackFromNBT(tag);\n }\n }\n }\n }", "public ArrayList<Item> getList() {\r\n\t\treturn inventory;\r\n\t}", "public void readFromHotelRoomListFile()\r\n {\r\n try(ObjectInputStream fromHotelRoomListFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/hotelRoomlist.dta\")))\r\n {\r\n hotelRoomList = (HotelRoomList) fromHotelRoomListFile.readObject();\r\n hotelRoomList.getSavedStaticPrice(fromHotelRoomListFile);\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av hotelrom \"\r\n + \"objektene.\\nOppretter ny liste for \"\r\n + \"hotelrommene.\\n\" + cnfe.getMessage(), \r\n \"Feilmelding\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter ny liste for hotelrommene.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter ny liste for hotelrommene.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "public void dumpInventory() {\n\t\tFileWriter writer;\n\t\ttry {\n\t\t\twriter = new FileWriter(inventoryFilePath);\n\t\t\tyaml.dump(testInventoryData, writer);\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void setList(ArrayList<Item> inventory) {\r\n\t\tthis.inventory = inventory;\r\n\t}", "public void readFile()\n {\n try {\n fileName = JOptionPane.showInputDialog(null,\n \"Please enter the file you'd like to access.\"\n + \"\\nHint: You want to access 'catalog.txt'!\");\n \n File aFile = new File(fileName);\n Scanner myFile = new Scanner(aFile);\n \n String artist, albumName; \n while(myFile.hasNext())\n { //first we scan the document\n String line = myFile.nextLine(); //for the next line. then we\n Scanner myLine = new Scanner(line); //scan that line for our info.\n \n artist = myLine.next();\n albumName = myLine.next();\n ArrayList<Track> tracks = new ArrayList<>();\n \n while(myLine.hasNext()) //to make sure we get all the tracks\n { //that are on the line.\n Track song = new Track(myLine.next());\n tracks.add(song);\n }\n myLine.close();\n Collections.sort(tracks); //sort the list of tracks as soon as we\n //get all of them included in the album.\n Album anAlbum = new Album(artist, albumName, tracks);\n catalog.add(anAlbum);\n }\n myFile.close();\n }\n catch (NullPointerException e) {\n System.err.println(\"You failed to enter a file name!\");\n System.exit(1);\n }\n catch (FileNotFoundException e) {\n System.err.println(\"Sorry, no file under the name '\" + fileName + \"' exists!\");\n System.exit(2);\n }\n }", "private void loadAndProcessInput(){\n transactions_set = new ArrayList<>();\n strItemToInt = new HashMap<>();\n intToStrItem = new HashMap<>();\n \n try{\n BufferedReader br = new BufferedReader(\n new InputStreamReader(\n new FileInputStream(this.inputFilePath)\n ));\n \n String line;\n while((line = br.readLine()) != null){\n String[] tokens = line.split(\" \");\n ArrayList<Integer> itemsId = new ArrayList();\n \n for(String item : tokens){\n if( ! strItemToInt.containsKey(item)){\n strItemToInt.put(item, strItemToInt.size()+1);\n intToStrItem.put(strItemToInt.size(), item);\n }\n itemsId.add(strItemToInt.get(item));\n }\n transactions_set.add(itemsId);\n }\n }\n catch(IOException fnfEx){\n System.err.println(\"Input Error\");\n fnfEx.printStackTrace();\n }\n \n }", "private void loadItem(String path) {\r\n assert (itemManager != null);\r\n \r\n try {\r\n Scanner sc = new Scanner(new File(path));\r\n while (sc.hasNext()) {\r\n int id = sc.nextInt();\r\n int x = sc.nextInt();\r\n int y = sc.nextInt();\r\n switch (id) {\r\n case 0: itemManager.addItem(Item.keyItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 1: itemManager.addItem(Item.candleItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 2: itemManager.addItem(Item.knifeItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 3: itemManager.addItem(Item.ghostAshItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 4: itemManager.addItem(Item.goldItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n default: itemManager.addItem(Item.ghostAshItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n }\r\n }\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public HashMap<String, Item> loadItems() {\n HashMap<String, Item> items = null;\n Gson gson = new Gson();\n try {\n BufferedReader reader = new BufferedReader(new FileReader(DEPOSITED_PATH));\n Type type = new TypeToken<HashMap<String, Item>>() {\n }.getType();\n items = gson.fromJson(reader, type);\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe);\n }\n return items;\n }", "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "public SLList readFile(String file) {\n\t\t// Read it back in\n\t\tObjectInputStream i = null;\n\t\tSLList temp = null;\n\n\t\ttry {\n\t\t\ti = new ObjectInputStream(new FileInputStream(file));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t/**\n\t\t * try/catch to verify file has been restored\n\t\t */\n\t\t\n\t\ttry {\n\t\t\ttemp = (SLList) i.readObject();\n\t\t\t//System.out.println(temp);\n\t\t\tSystem.out.println(\"Successfully restored data from file!\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ti.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "public Inventory(){\n this.items = new ArrayList<InventoryItem>(); \n }", "public HashMap<String, Item> readItemsFile(String path)\n {\n // Create a hashmap (Item Name, Item Object))\n HashMap<String, Item> itemTypeHashMap = new HashMap<String, Item>();\n try (BufferedReader fileReader = new BufferedReader(new FileReader(path)))\n {\n // Reads file until the reader reaches the end of the file\n while((e = fileReader.readLine()) != null)\n {\n String[] info = e.split(\"/\");\n Clue clu = new Clue();\n Utility uti = new Utility();\n Consumable con = new Consumable();\n\n // Index 0 determines if the Item is Clue, Utility or Consumable\n // Index 1, 2, and 3 are then used as arguments to construct the object\n // After attributes are added to the object, add the object to the Items HashMap, along with its type\n if(info[0].equalsIgnoreCase(\"clue\"))\n {\n clu.setName(info[1]);\n clu.setDescription(info[2]);\n clu.setRoomLocation(info[3]);\n clu.setAssociatedSuspect(info[4]);\n\n itemTypeHashMap.put(info[1], clu);\n }\n else if(info[0].equalsIgnoreCase(\"utility\"))\n {\n uti.setName(info[1]);\n uti.setDescription(info[2]);\n uti.setRoomLocation(info[3]);\n\n itemTypeHashMap.put(info[1], uti);\n }\n else if(info[0].equalsIgnoreCase(\"consumable\"))\n {\n con.setName(info[1]);\n con.setDescription(info[2]);\n con.setRoomLocation(info[3]);\n\n itemTypeHashMap.put(info[1], uti);\n }\n }\n }\n catch (IOException ex)\n {\n System.out.println(\"File not found\");\n }\n\n // Return A HashMap(Item Name, Item Object)\n return itemTypeHashMap;\n }", "Collection<Item> getInventory();", "public ArrayList<Room> readRoomFile(String path, HashMap<String, Item> itemStringHashMap, ArrayList<Suspect> suspectsArrayList)\n {\n // Create an empty items arrayList to be populated\n ArrayList<Room> roomsArray = new ArrayList<>();\n\n\n try(BufferedReader fileReader = new BufferedReader(new FileReader(path)))\n {\n // Reads file until the reader reaches the end of the file\n while((e = fileReader.readLine()) != null)\n {\n String[] info = e.split(\"/\");\n //Creates a new empty Room, itemArray, and exitArray every loop, and suspectArray that is specific to each room.\n Room r = new Room();\n ArrayList<Item> itemsArray = new ArrayList<>();\n ArrayList<String> exitsArray = new ArrayList<>();\n ArrayList<Suspect> suspectsArray = new ArrayList<>();\n\n // Loop to add items to rooms if item.location == room.getname\n for(Item item : itemStringHashMap.values())\n {\n // If the RoomName(Info[0]) is also the location of the Item Object\n // If they are equal, add the Item to the items in the room array.\n if(info[0].equalsIgnoreCase(item.getRoomLocation()))\n {\n itemsArray.add(item);\n }\n\n }\n\n //Takes the suspectArrayList of ALL suspects, add them to another suspect array specific to the room.\n for(Suspect s : suspectsArrayList)\n {\n // Checks suspect location, with room name to make sure suspects go in the right rooms.\n if(info[0].equalsIgnoreCase(s.getLocation()))\n {\n suspectsArray.add(s);\n }\n }\n\n // 2 Is the index where the room exits start on the file\n for(int i = 2; i < info.length; i++)\n {\n exitsArray.add(info[i]);\n }\n\n // Then construct the Room\n r.setName(info[0]);\n r.setDesc(info[1]);\n r.setContents(itemsArray);\n r.setSuspects(suspectsArray);\n\n //Convert array list to array as that's what is used in Room class\n String[] newArray = new String[exitsArray.size()];\n for(int i = 0; i < exitsArray.size(); i++)\n {\n newArray[i] = exitsArray.get(i);\n }\n r.setExits(newArray);\n\n //If the room is the bedroom, make inaccessible\n if(r.getName().equalsIgnoreCase(\"Bedroom\"))\n r.setType(RoomType.INACCESSIBLE);\n\n //Finally add the Room to an ArrayList of Rooms\n roomsArray.add(r);\n\n // Once the for loop ends, Room and itemsArray get renewed as empty.\n }\n }\n catch(IOException ex)\n {\n System.out.println(\"File not found\");\n }\n\n return roomsArray;\n }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "public static List<DataItem> importFromResource(Context context){\n InputStreamReader reader = null;\n InputStream inputStream = null;\n\n try {\n //Instantiate InputStream with static raw file the assign it to InputStreamReader\n inputStream = context.getResources().openRawResource(R.raw.menuitems);\n reader = new InputStreamReader(inputStream);\n //Populate DataItems class and return result\n Gson gson = new Gson();\n DataItems dataItems = gson.fromJson(reader, DataItems.class);\n return dataItems.getDataItems();\n }finally {\n //close both classes\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }\n }", "public void readFile() {\n try\n {\n tasksList.clear();\n\n FileInputStream file = new FileInputStream(\"./tasksList.txt\");\n ObjectInputStream in = new ObjectInputStream(file);\n\n boolean cont = true;\n while(cont){\n Task readTask = null;\n try {\n readTask = (Task)in.readObject();\n } catch (Exception e) {\n }\n if(readTask != null)\n tasksList.add(readTask);\n else\n cont = false;\n }\n\n if(tasksList.isEmpty()) System.out.println(\"There are no todos.\");\n in.close();\n file.close();\n }\n\n catch(IOException ex)\n {\n ex.printStackTrace();\n }\n }", "@Override\n\tpublic ProductCollection getList(String filename) throws CartServiceDaoException{\n\t\tMap<Product, Integer> list = new LinkedHashMap<>();\n\t\ttry (BufferedReader reader = new BufferedReader(new FileReader(filename))){\n\t\t\tint productNo = 1;\n\t\t\twhile(reader.ready()){\n\t\t\t\tString temp[] = reader.readLine().split(\"\\\\s+\");\n\t\t\t\tProduct newProduct = new Product(temp[0], new BigDecimal(temp[2]), productNo++);\n\t\t\t\tlist.put(newProduct, Integer.parseInt(temp[1]));\n\t\t\t}\n\t\t} catch(IOException e){\n\t\t\tthrow new CartServiceDaoException(\"ERROR: Reading file failed\");\n\t\t}\n\t\treturn new ProductCollection(list);\n\t}", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "private void writeItems() {\n\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n\n // try to add items to file\n try {\n FileUtils.writeLines(todoFile, items);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void setLoadItems(String borrowedFileName, int borrowedSize) \n\t{\n\t\trecordCount = RESET_VALUE;\n\n\t\ttry \n\t\t{\n\t\t\tScanner infile = new Scanner(new FileInputStream(borrowedFileName));\n\n\t\t\twhile(infile.hasNext() == true && recordCount < MAX_ITEMS && recordCount < borrowedSize) \n\t\t\t{\n\t\t\t\titemIDs[recordCount] = infile.nextInt();\n\t\t\t\titemNames[recordCount] = infile.next();\n\t\t\t\titemPrices[recordCount] = infile.nextDouble();\n\t\t\t\torderQuantity[recordCount] = infile.nextInt();\n\t\t\t\torderTotals[recordCount] = infile.nextDouble(); \n\t\t\t\trecordCount++;\n\t\t\t}\n\n\t\t\t//close file\n\t\t\tinfile.close();\n\n\t\t\t//sort by itemID\n\t\t\tsetBubbleSort();\n\t\t}//END try\n\n\t\tcatch(IOException ex) \n\t\t{\n\t\t\trecordCount = NOT_FOUND;\n\t\t}\n\t}", "protected abstract void loadItemsInternal();", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "public void open(String fileName){\r\n \tString inStr = \"\";\r\n \tString[] parts;\r\n \tString title = \"\";\r\n \tString author = \"\";\r\n \tString year = \"\";\r\n \tString availability = \"\";\r\n \tString type = \"\";\r\n \tString temp = \"\";\r\n \t\r\n \titems.clear();\r\n \t\r\n \ttry{\r\n \t BufferedReader ir = new BufferedReader(new FileReader(fileName + \".txt\"));\r\n \t while((inStr = ir.readLine()) != null){\r\n \t \t\t//First we have to split the string\r\n \t \t\t//at every comma, since the file \r\n \t \t\t//contains a comma seperated list.\r\n\t\tparts = inStr.split(\", \");\r\n\t\tif(parts.length == 1)\r\n\t\t\tcontinue;\r\n\r\n\t\t \r\n\t\tfor(int i = 0; i < parts.length; i++){\r\n\t\t\tString[] pts = parts[i].split(\": \");\r\n\t\t\t\r\n\t\t\t //A switch statement makes it a little\r\n\t\t\t //easier and cleaner when splitting up\r\n\t\t\t //the elements for the second time,\r\n\t\t\t //by the :\r\n\t\t\tswitch(i) {\r\n \t\t\t\tcase 0:\r\n \t\t\t\t\ttitle = pts[1];\r\n\t \t\t\tbreak;\r\n \t\t\t\tcase 1:\r\n \t\t\t\t\ttemp = pts[1];\r\n \t\t\t\tbreak;\r\n\t \t\t\tcase 2:\r\n \t\t\t\t\tavailability = pts[1];\r\n \t\t\t\tbreak;\r\n \t\t\t\tcase 3:\r\n \t\t\t\t\ttype = pts[1];\r\n\t \t\t\tbreak;\r\n \t\t\t}\r\n \t \t}\t\r\n \t \t\r\n \t \t\t//Type and Title are common to all items,\r\n \t \t\t//so we dont have to check the itemType\r\n \t \t\t//before printing this part.\r\n\t\tSystem.out.println(\"Type: \" + type);\t\r\n\t\tSystem.out.println(\"Title: \" + title);\r\n\t\t\r\n\t\t\t//Now we have to check if the type is a book\r\n\t\t\t//or a magazine, since the two will have\r\n\t\t\t//different information attached to them.\r\n \t\tif(type.equalsIgnoreCase(\"BOOK\")) {\r\n\t\t\tSystem.out.println(\"Author: \" + temp);\r\n\t\t\tBook b = new Book(title, temp);\r\n\t\t\tif(availability.equalsIgnoreCase(\"true\"))\r\n\t\t\t\tb.setAvailability(true);\r\n\t\t\telse\r\n\t\t\t\tb.setAvailability(false);\r\n\t\t\titems.add(b);\r\n \t\t} else {\r\n\t\t\tSystem.out.println(\"Year: \" + temp);\r\n\t\t\tMagazine b = new Magazine(title, Integer.parseInt(temp));\r\n\t\t\tSystem.out.println(\"Control: \" + availability);\r\n\t\t\tif(availability.equalsIgnoreCase(\"true\"))\r\n\t\t\t\tb.setAvailability(true);\r\n\t\t\telse\r\n\t\t\t\tb.setAvailability(false);\r\n\t\t\titems.add(b);\r\n \t\t}\r\n \t\t\r\n \t\t\t//Since Availability is also common to all items,\r\n \t\t\t//it can be printed here without testing the\r\n \t\t\t//itemType. \r\n\t\tSystem.out.println(\"Availability: \" + availability);\r\n\t\tSystem.out.println(\"\");\r\n\t }\r\n\r\n ir.close();\t//Close file when done.\r\n \t } catch (FileNotFoundException e) {\r\n System.out.println(\"ERROR: file not found\");\r\n } catch (IOException e) {\r\n System.out.println(\"ERROR: file I/O problem\");\r\n } catch (NullPointerException e){\r\n \tSystem.out.println(\"ERROR: Null Pointer.\");\r\n }\r\n }", "private ArrayList<String> getEquipment() throws IOException {\n\t// System.out.println(\"ROVER_02 method getEquipment()\");\n\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\tout.println(\"EQUIPMENT\");\n\n\tString jsonEqListIn = in.readLine(); // grabs the string that was\n\t\t\t\t\t\t\t\t\t\t\t// returned first\n\tif (jsonEqListIn == null) {\n\t\tjsonEqListIn = \"\";\n\t}\n\tStringBuilder jsonEqList = new StringBuilder();\n\t// System.out.println(\"ROVER_02 incomming EQUIPMENT result - first\n\t// readline: \" + jsonEqListIn);\n\n\tif (jsonEqListIn.startsWith(\"EQUIPMENT\")) {\n\t\twhile (!(jsonEqListIn = in.readLine()).equals(\"EQUIPMENT_END\")) {\n\t\t\tif (jsonEqListIn == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// System.out.println(\"ROVER_02 incomming EQUIPMENT result: \" +\n\t\t\t// jsonEqListIn);\n\t\t\tjsonEqList.append(jsonEqListIn);\n\t\t\tjsonEqList.append(\"\\n\");\n\t\t\t// System.out.println(\"ROVER_02 doScan() bottom of while\");\n\t\t}\n\t} else {\n\t\t// in case the server call gives unexpected results\n\t\tclearReadLineBuffer();\n\t\treturn null; // server response did not start with \"EQUIPMENT\"\n\t}\n\n\tString jsonEqListString = jsonEqList.toString();\n\tArrayList<String> returnList;\n\treturnList = gson.fromJson(jsonEqListString, new TypeToken<ArrayList<String>>() {\n\t}.getType());\n\t// System.out.println(\"ROVER_02 returnList \" + returnList);\n\n\treturn returnList;\n}", "void processInventory(SynchronizationRequest req) {\n\n try {\n if (req.isGCEnabled()) {\n String serverName = req.getServerName();\n File f = req.getFile();\n InventoryMgr mgr = new InventoryMgr(f);\n\n // inventory list for this directory\n List crList = mgr.getInventory();\n\n // re-sets the inventory with central repository inventory\n // this had client inventory \n if (crList != null) {\n req.setInventory(crList);\n }\n }\n } catch (Exception ex) {\n _logger.log(Level.FINE, \"Error during inventory processing for \" \n + req.getMetaFileName(), ex );\n }\n }", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "public abstract List<String> getUserInventory();", "public void loadTodoItems() throws IOException {\n //todoItems zmenime na observableArraylist, aby sme mohli pouzit metodu setItems() v Controlleri\n todoItems = FXCollections.observableArrayList();\n //vytvorime cestu k nasmu suboru\n Path path = Paths.get(filename);\n //vytvorime bufferedReader na citanie suboru\n BufferedReader br = Files.newBufferedReader(path);\n\n String input;\n\n //pokial subor obsahuje riadky na citanie, vytvorime pole, do ktoreho ulozime rozsekany citany riadok, nastavime datum\n //vytvorime novy item pomocou dát z citaneho suboru a tento item ulozime do nasho listu.\n try {\n while ((input = br.readLine()) != null) {\n String[] itemPieces = input.split(\"\\t\");\n String shortDescription = itemPieces[0];\n String details = itemPieces[1];\n String dateString = itemPieces[2];\n\n LocalDate date = LocalDate.parse(dateString, formatter);\n\n TodoItem todoItem = new TodoItem(shortDescription, details, date);\n todoItems.add(todoItem);\n }\n } finally {\n if (br != null) {\n br.close();\n }\n }\n }", "public static void main(String[] args) throws FileNotFoundException {\n // check for the number of command line arguments\n if(!processArgs(args)){\n System.out.println(\"Usage: BookInventory input_file_names (2)\");\n\n // If files are readable begin operations\n } else {\n CS145LinkedList<BookData> inventory = new CS145LinkedList<>();\n double totalSales;\n\n // Build up inventory using data from initial file,\n // then, Show the data of all BookData objects currently\n // in the inventory\n File initialInventory = new File(args[0]);\n initializeInventory(initialInventory, inventory);\n\n // Begin order and stock calls on inventory and\n // add necessary changes to inventory\n File OrderCalls = new File(args[1]);\n totalSales = beginInventoryCalls(inventory, OrderCalls);\n\n System.out.println();\n System.out.printf(\"Total value of orders filled is $%.2f\\n\", totalSales);\n }\n }", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }", "public ArrayList<Item> parse(String fileName) throws SAXException,\n\t\t\tIOException {\n\t\tFile f = new File(fileName);\n\t\tDocument doc = builder.parse(f);\n\n\t\t// get the <items> root element\n\n\t\tElement root = doc.getDocumentElement();\n\t\treturn getItems(root);\n\t}", "List<T> read();", "public void read(String bookName, World world) {\n\t\tItem item = world.dbItems().get(bookName);\n\t\tList<Item> items = super.getItems();\n\n\t\tif (items.contains(item) && item instanceof Book) {\n\t\t\tBook book = (Book) item;\n\t\t\tSystem.out.println(book.getBookText());\n\t\t} else {\n\t\t\tSystem.out.println(\"No book called \" + bookName + \" in inventory.\");\n\t\t}\n\t}", "@Override\n protected void load(ScanningContext context) {\n ResourceItem item = getRepository().getResourceItem(mType, mResourceName);\n\n // add this file to the list of files generating this resource item.\n item.add(this);\n\n // Ask for an ID refresh since we're adding an item that will generate an ID\n context.requestFullAapt();\n }", "@Override\r\n\tpublic void loadInfoFromMod(ModInfo modInfo, int startIndex, int endIndex, ArrayList<String> file, String pfad) {\n\t\tItem modul = new Item(pfad);\r\n\t\tmodul.loadInfo(modInfo, modul, startIndex, endIndex, file, pfad);\r\n\t\tmodInfo.entityTypeList.get(type_).put(modul.entityInfo.get(name), modul);\r\n\t\t//Logger.logInfo(\"Item\", \"loadInfoFromMod\", \"LoadedItem\", modInfo.entityTypeList.get(type_).keySet().toString());\r\n\t}", "private void initStorage() {\n storageList = new ItemsList();\n storageList.add(new StorageItem(1, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\pen.png\", \"pen\", 3));\n storageList.add(new StorageItem(2, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\pencil.png\", \"pencil\", 2));\n storageList.add(new StorageItem(3, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\book.jpg\", \"book\", 21));\n storageList.add(new StorageItem(4, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\rubber.png\", \"rubber\", 1));\n storageList.add(new StorageItem(5, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\calculator.png\", \"calculator\", 15));\n storageList.add(new StorageItem(6, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\cover.jpg\", \"cover\", 4));\n storageList.add(new StorageItem(7, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\globe.png\", \"globe\", 46));\n storageList.add(new StorageItem(8, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\map.jpg\", \"map\", 10));\n storageList.add(new StorageItem(9, \"G:\\\\Lukasz\\\\Desktop\\\\PWR\\\\semestr_6\\\\java\\\\netbans\\\\lab2_InternationalizedWarehouse\\\\marker.png\", \"marker\", 6));\n\n }", "public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }", "public static void main(String[] args)\n\t {\n\t Inventory myStore = new Inventory();\n\n\t Scanner userInput = new Scanner(System.in); // for keyboard input\n\t \n\t int choice; // holds the user's menu choice\n\t \n\t //myStore.readFile();\n\n\t // the menu system\n\t do\n\t {\n\t System.out.println();\n\t System.out.println(\"Video Store Inventory Menu\");\n\t System.out.println(\"--------------------------\");\n\t System.out.println(\"1. Add Movie\");\n\t System.out.println(\"2. Remove Movie\");\n\t System.out.println(\"3. Show Movie\");\n\t System.out.println(\"4. Show Inventory\");\n\t System.out.println(\"5. Quit\");\n\t System.out.println();\n\t System.out.println(\"Enter your choice: \");\n\n\t // gets the menu choice from the user\n\t choice = userInput.nextInt();\n\n\t switch (choice)\n\t {\n\t case ADD_ITEM:\n\t myStore.addMovie(userInput);\n\t break;\n\t case REM_ITEM:\n\t myStore.removeMovie(userInput);\n\t break;\n\t case GET_INFO:\n\t myStore.getInfo(userInput);\n\t break;\n\t case SHOW_INV:\n\t myStore.displayInv();\n\t break;\n\t case QUIT_PROG:\n\t break;\n\t default:\n\t System.out.println(\"Invalid choice, try again!\");\n\t }\n\n\t }\n\t while (choice != QUIT_PROG);\n\t \n\t myStore.writeFile();\n\n\t // exit the program\n\t System.out.println(\"Goodbye!\");\n\t }", "@Override\n public void importItems(){\n if (DialogUtils.askYesNo(\"Confirm\", \"<html>Importing individuals will REPLACE all existing individuals.<br>Are you sure you want to do this?</html>\") == DialogUtils.NO) {\n return;\n }\n\n try {\n File file = DialogUtils.chooseFileForOpen(\"Import File\", new ExtensionsFileFilter(new String[] { \"csv\" }), null);\n if (file != null) {\n //remove current data\n MedSavantClient.PatientManager.clearPatients(LoginController.getSessionID(), ProjectController.getInstance().getCurrentProjectID());\n new ImportProgressDialog(file).showDialog();\n }\n } catch (Exception ex) {\n ClientMiscUtils.reportError(\"Unable to import individuals. Please make sure the file is in CSV format and that Hospital IDs are unique.\", ex);\n }\n }", "public static void main(String[] args) throws IOException {\n\n ItemSet items = ItemSet.load(\"c:/temp/items.txt\");\n System.out.println(items);\n }", "@SuppressWarnings(\"unchecked\")\n public List readList() throws IOException {\n List list = new ArrayList();\n Object obj = read();\n while (obj != null) {\n list.add(obj);\n obj = read();\n }\n return list;\n }", "public void fillList (File file) throws FileNotFoundException {\n\t\tif (!file.getName().endsWith(\".srt\")) {\n\t\t\tthrow new IllegalArgumentException(\"Only .srt files supported\");\n\t\t}\n\n\t\t//create file reader tied to the .srt file, used JUST to count the # of lines\n\t\ttry {\n\t\t\treader = new Scanner(file);\n\t\t} catch(FileNotFoundException e) {\n\t\t\tthrow e; //let it propogate up\n\t\t}\n\n\t\tint numOfBlocks = countNumberOfStringBlocks();\n\t\t\n\t\t//don't directly copy into stringList, as there could be errors reading file.\n\t\t//don't want to overwrite current stringList until entire file is read succesfully.\n\t\tStringBlock[] stringListBuffer = new StringBlock[numOfBlocks];\t\t//instantiate the array of stringblocks to the size needed\n\t\t//end of file reached during countNumberOfStringBlocks();\n\t\t\n\t\treader.close();\n\t\t\n\t\tcurrentLineNum = 0;\n\t\t//return reader back to top of the file, to begin parsing/storing chunks\n\t\ttry {\n\t\t\treader = new Scanner(file);\n\t\t} catch(FileNotFoundException e) {\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t\tStringBlock stringBlock;\n\t\tint index = 0;\n\t\t\n\t\t//read in stringblocks, and store them in order\n\t\ttry{\n\t\t\twhile ((stringBlock = parseNextStringBlock()) != null) {\n\t\t\t\tstringListBuffer[index] = stringBlock;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\t//end of file reached successfully\n\t\t\t\n\t\t\tstringList = stringListBuffer;\n\t\t} catch (IllegalStateException e) {\n\t\t\tthrow e; //let it propogate all the way up to the method where the file is selected\n\t\t}\n\t\t\n\t\t//close reader\n\t\treader.close();\n\t}", "public List<Inventory> getInventory();", "public Inventory() {\n \titems = new ArrayList<Collectable>();\n \tnumTokens = 0;\n }", "public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }" ]
[ "0.7797603", "0.73537", "0.7249934", "0.70016515", "0.69229233", "0.67475104", "0.67384964", "0.668471", "0.6613174", "0.6506103", "0.64904034", "0.64513886", "0.643429", "0.63619363", "0.63547575", "0.6354526", "0.6337729", "0.62730896", "0.62196004", "0.6199656", "0.61742795", "0.6137536", "0.6123016", "0.61213505", "0.61015713", "0.60613245", "0.60413975", "0.60397416", "0.602945", "0.6021825", "0.5987086", "0.5934829", "0.5931308", "0.59286034", "0.5918594", "0.5908901", "0.58964723", "0.58852637", "0.5864781", "0.58558965", "0.58462536", "0.58453906", "0.58275187", "0.5812393", "0.5811489", "0.5808172", "0.58021593", "0.5795698", "0.5790192", "0.57851964", "0.5782327", "0.57725036", "0.57518554", "0.57442904", "0.57424843", "0.5740562", "0.5734549", "0.5725836", "0.5715503", "0.57143897", "0.57028073", "0.56966615", "0.56952465", "0.56929183", "0.5671104", "0.5666642", "0.5663121", "0.56593823", "0.565757", "0.5656012", "0.5654531", "0.5643387", "0.5642295", "0.56409395", "0.56287354", "0.5620838", "0.5620066", "0.55906", "0.55868685", "0.558133", "0.5579109", "0.55689025", "0.55636567", "0.55600446", "0.5552689", "0.5551077", "0.5549557", "0.5523503", "0.5521061", "0.55147874", "0.5510567", "0.55063224", "0.54996455", "0.5499104", "0.5489328", "0.5479534", "0.5472035", "0.54715085", "0.54678243", "0.5462887" ]
0.74543494
1
Returns the whole inventory.
public ArrayList<Item> getList() { return inventory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Item> getInventory();", "List<InventoryItem> getInventory();", "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public List<InventoryEntity> getAllInventory() {\n\t\treturn inventoryDao.getAllInventory();\n\t}", "public List<Inventory> getInventory();", "public Inventory getInventory() {\n return inventory;\n }", "public Item[] getInventoryItems(){\n\t\treturn inventoryItems;\n\t}", "public Inventory getInventory() {\r\n\t\treturn inventory;\r\n\t}", "List<SimpleInventory> getInventories();", "public List<InventoryEntry> getInventoryEntries();", "public PlayerInventory getInventory ( ) {\n\t\treturn extract ( handle -> handle.getInventory ( ) );\n\t}", "@GetMapping ( BASE_PATH + \"/inventory\" )\n public ResponseEntity getInventory () {\n final Inventory inventory = inventoryService.getInventory();\n return new ResponseEntity( inventory, HttpStatus.OK );\n }", "InventoryItem getInventoryItem();", "public abstract List<String> getInventory();", "public Inventory getInventory(){\n return inventory;\n }", "public ArrayList<Item> getItemList(){\n\t\treturn inventoryList;\n\t}", "@Override\n\tpublic List<Inventory> getAllInventories() {\n\t\tArrayList<Inventory> inventories = new ArrayList<Inventory>();\n\t\tinventoryDao.findAll().forEach(inventories::add);\n\t\treturn inventories;\n\t}", "@RequestMapping(method = RequestMethod.GET, produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<List<InventoryResponse>> getInventory(){\n List<InventoryResponse> inventoryResponse = new ArrayList<>();\n inventoryService.getInventory().stream().forEach(inventoryItem -> inventoryResponse.add(\n new InventoryResponse(inventoryItem.getProduct().getId(), inventoryItem.getAmount())));\n\n return ResponseEntity.ok(inventoryResponse);\n }", "public String getPlayerInventory() {\r\n String res = \"You have the following items in your inventory:\" + System.getProperty(\"line.separator\");\r\n for (int i = 0; i < player.getInventory().size(); i++) {\r\n res += i + \": \" + player.getInventory().get(i).toString() + System.getProperty(\"line.separator\");\r\n }\r\n return res;\r\n }", "SimpleInventory getOpenedInventory(Player player);", "public Product getProductInventory() {\n return productInventory;\n }", "public List<Order> showAllInventory() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t//I may need to change the query criteria\r\n\t\tTypedQuery<Order> typedQuery = em.createQuery(\"select orderNumber from Order orderNumber\", Order.class);\r\n\t\tList<Order> allInventory = typedQuery.getResultList();\r\n\t\tem.close();\r\n\t\treturn allInventory;\r\n\t}", "Set<String> getInventory();", "@Override\n\tpublic Inventory getInventory()\n\t{\n\t\tInventory inventory = Bukkit.createInventory(this, tabSize*9, \n\t\t\t\tsettings.getAccountNameFormat().replace(\"{player}\", owner).replace(\"{npc}\", settings.getNpcName())\n\t\t\t\t);\n\t\treturn inventory;\n\t}", "@Override\n\tpublic Inventory getInventory() {\n\t\treturn null;\n\t}", "List<InventoryItem> getInventory(String username);", "@NotNull\n @Override\n public Inventory getInventory() {\n Inventory inventory = Bukkit.createInventory(this, missionType == Mission.MissionType.ONCE ? IridiumSkyblock.getInstance().getInventories().missionsGUISize : 27, StringUtils.color(\"&7Island Missions\"));\n\n InventoryUtils.fillInventory(inventory);\n\n if (missionType == Mission.MissionType.DAILY) {\n HashMap<String, Mission> missions = IridiumSkyblock.getInstance().getIslandManager().getDailyIslandMissions(island);\n int i = 0;\n\n for (String key : missions.keySet()) {\n Mission mission = IridiumSkyblock.getInstance().getMissionsList().get(key);\n List<Placeholder> placeholders = new ArrayList<>();\n\n for (int j = 1; j <= mission.getMissions().size(); j++) {\n IslandMission islandMission = IridiumSkyblock.getInstance().getIslandManager().getIslandMission(island, mission, key, j);\n placeholders.add(new Placeholder(\"progress_\" + j, String.valueOf(islandMission.getProgress())));\n }\n\n inventory.setItem(IridiumSkyblock.getInstance().getMissions().dailySlots.get(i), ItemStackUtils.makeItem(mission.getItem(), placeholders));\n i++;\n }\n } else {\n for (String key : IridiumSkyblock.getInstance().getMissionsList().keySet()) {\n Mission mission = IridiumSkyblock.getInstance().getMissionsList().get(key);\n if (mission.getMissionType() != Mission.MissionType.ONCE) continue;\n List<Placeholder> placeholders = new ArrayList<>();\n\n for (int j = 1; j <= mission.getMissions().size(); j++) {\n IslandMission islandMission = IridiumSkyblock.getInstance().getIslandManager().getIslandMission(island, mission, key, j);\n placeholders.add(new Placeholder(\"progress_\" + j, String.valueOf(islandMission.getProgress())));\n IridiumSkyblock.getInstance().getLogger().info(j + \" - \" + islandMission.getProgress());\n }\n\n inventory.setItem(mission.getItem().slot, ItemStackUtils.makeItem(mission.getItem(), placeholders));\n }\n }\n\n return inventory;\n }", "public Items getItem(String name)\n {\n return Inventory.get(name);\n }", "public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}", "public String printAllInventory(){\r\n\r\n String returnString = \"Items:\";\r\n for(Item item : playerItem){\r\n returnString += \" \" + item.getName(); \r\n }\r\n return returnString;\r\n }", "public String getInventoryString() {\n String msg = new String(\"Inventory: \\n\");\n for (Map.Entry<String, Item> me : inventory.entrySet()) {\n msg += \" item: \" + me.getKey() + \" description: \" + me.getValue().getDescription() + \"\\n\";\n }\n return msg;\n }", "public ArrayList<Stock> getAvaiableStock (){\n\t\treturn inventory;\n\t}", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "public String toString() {\n System.out.println(\"Inventory: \");\n String str = \"\";\n for(int i = 0; i < numItems; i++) {\n if(inventory[i]!= null) {\n str += inventory[i].toString() + \"\\n\";\n }\n }\n return str;\n }", "public InventoryView getOpenInventory ( ) {\n\t\treturn extract ( handle -> handle.getOpenInventory ( ) );\n\t}", "List<InventoryItem> getInventory(int appId);", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<Inventory> getInventoryUpdates() {\n\t\treturn inventorydao.getInventoryUpdates();\n\t}", "public int getInventorySize(){\n return inventory.size();\n }", "public abstract List<String> getUserInventory();", "public String toString() {\n\tString result = \"\";\n for (int x = 0; x < list.size(); x++) {\n result += list.get(x).toString();\n }\n\treturn \"Inventory: \\n\" + result + \"\\n\";\n}", "public Inventory getEquipment() {\n return equipment;\n }", "public List<Treasure> giveInventory() {\r\n return treasures;\r\n }", "public int getUnitsInventory(){\n\t\treturn unitsInventory;\n\t}", "public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn 0;\n\t}", "List<InventoryItem> getInventory(String username, int appId);", "public String getInventoryName()\n {\n return this.inventoryTitle;\n }", "public void showInventory()\n\t{\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"\\t\\t\\t\\tInventory\");\n\t\t\n\t\tfor (String s: inventory)\n\t\t{\n\t\t\tSystem.out.print(\"\\n\" + s);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\\n[R] Return\\n\");\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"Action: \");\n\t\t\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.HoloInventoryItemProto getInventoryItemData() {\n if (inventoryItemCase_ == 3) {\n return (POGOProtos.Rpc.HoloInventoryItemProto) inventoryItem_;\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n }", "public String printPlayerInventory() {\r\n\t\t\tif(this.getPlayer().getInventory().getContent().isEmpty()) {\r\n\t\t\t\treturn \"You have no items in your inventory.\" + \"\\n\"\r\n\t\t\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\treturn \"Your \" + this.getPlayer().getInventory().printContent()\r\n\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}", "public int getInventorySize() {\n\t\treturn inventory.getSize();\n\t}", "@Override\n\tpublic List<InventoryManagement> findAll() {\n\t\treturn inventoryManagementDao.findAll();\n\t}", "public POGOProtos.Rpc.HoloInventoryItemProto.Builder getInventoryItemDataBuilder() {\n return getInventoryItemDataFieldBuilder().getBuilder();\n }", "public int getInventoryFull ()\n {\n return (inventoryFull);\n }", "@GetMapping(\"/equipment\")\n\tpublic List<Equipment> findAll() {\n\t\treturn inventoryService.findAll();\n\t}", "public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "public List<ItemStack> getItems()\n {\n return items;\n }", "@Override\n public ItemStack[] getContents() {\n final ItemStack[] items = new ItemStack[36];\n\n items[0] = this.getSword();\n\n for(int i = 0; i < this.getAbilities().length; i++) {\n final Ability ability = this.getAbilities()[i];\n\n if (ability instanceof ItemAbility) {\n items[i+1] = new ItemStack(((ItemAbility) ability).getMaterial());\n }\n }\n\n for (int i = 0; i < items.length; i++) {\n if (items[i] == null) {\n items[i] = this.getHealthType();\n }\n }\n\n return items;\n }", "public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\n\t}", "@Override\n public String toString () {\n String stock = \"\";\n\n for (int i = 0; i < inventory.size(); i++) {\n\n Product p = inventory.get(i);\n stock += p.toString() + '\\n';\n }\n return stock;\n }", "public String PrintInventoryList()\r\n {\r\n String inventoryInformation = \"\";\r\n\r\n System.out.println(\"Inventory: \");\r\n //You may print the inventory details here\r\n for (Product product: productArrayList) // foreach loop to iterate through the ArrayList\r\n {\r\n // TODO: check if this code is right\r\n inventoryInformation += product.getId() + \" \" + product.getName() + \" \" +\r\n product.getCost() + \" \" + product.getQuantity() + \" \" + product.getMargin() + \"\\n\";\r\n }\r\n System.out.println(inventoryInformation);\r\n return inventoryInformation;\r\n }", "public int getSizeInventory()\n {\n return this.furnaceItemStacks.length;\n }", "public Inventory getItemsAt(int x, int y) {\n\t\tTile tile = getTileAt(x, y);\n\t\treturn tile.getItems();\n\t}", "public int getInventoryLength() {\n return items.length;\n }", "private Inventory createInventory() {\n\n\t\tInventory inv;\n\n\t\tif (guiMetadata.getInvType() == InventoryType.CHEST) {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getSize(), guiMetadata.getGuiName());\n\t\t} else {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getInvType(), guiMetadata.getGuiName());\n\t\t}\n\n\t\treturn inv;\n\t}", "@java.lang.Override\n public POGOProtos.Rpc.HoloInventoryItemProto getInventoryItemData() {\n if (inventoryItemDataBuilder_ == null) {\n if (inventoryItemCase_ == 3) {\n return (POGOProtos.Rpc.HoloInventoryItemProto) inventoryItem_;\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n } else {\n if (inventoryItemCase_ == 3) {\n return inventoryItemDataBuilder_.getMessage();\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n }\n }", "@Override\n\tpublic int getSizeInventory(){\n\t return modularStacks.length;\n\t}", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "public int getSizeInventory()\n {\n return waterjetStacks.length;\n }", "public int getInventorySize() {\r\n\t\treturn items.size();\r\n\t}", "public List<ItemStack> getItems() {\n return this.items;\n }", "public String getInventoryName()\n {\n return this.hasCustomName() ? this.getCustomName() : Names.Containers.WATERJET;\n }", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn inputInventory.length + outputInventory.length ;\n\t}", "public Inventory getEnchantInventory(Player p){\n Inventory inv = Bukkit.createInventory(null, 27, \"Enchant Pickaxe\");\n for(CustomEnchantment ce : enchants.keySet()){\n ItemStack item = new ItemStack(ce.getIcon());\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(ce.getColor() + ce.getDisplayName());\n List<String> lore = new ArrayList<>();\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Current Level: \" + Changeables.CHAT_INFO + getEnchantLevel(ce, p));\n lore.add(Changeables.CHAT + \"Max Level: \" + Changeables.CHAT_INFO + ce.getMaxLevel());\n lore.add(Changeables.CHAT + \"Current Price: \" + Changeables.CHAT_INFO + ce.getPrice(getEnchantLevel(ce, p)));\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Left Click to \" + Changeables.CHAT_INFO + \" Buy 1\");\n lore.add(Changeables.CHAT + \"Right Click to \" + Changeables.CHAT_INFO + \" Buy Max\");\n meta.setLore(lore);\n item.setItemMeta(meta);\n inv.setItem(enchants.get(ce), item);\n }\n\n\n\n\n\n return inv;\n }", "public Product getProduct(int i){\n return inventory.get(i);\n }", "public List<IWeapon> getWeaponsInventory(){\n return weaponsInventory;\n }", "public int getSizeInventory() {\n\t\treturn this.slots.length;\n\t}", "public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(Book1.toString());\n System.out.println(Book2.toString());\n System.out.println(Book3.toString());\n System.out.println(Book4.toString());\n System.out.println(Book5.toString());\n \n System.out.println();\n \n System.out.println(\"Our Bevereges:\");\n System.out.println(Beverage1.toString());\n System.out.println(Beverage2.toString());\n System.out.println(Beverage3.toString());\n\n System.out.println();\n }", "@Override\n\tpublic Integer getInventoryForAIngredient(Ingredient ingredient){\n\t\treturn beverageInventoryMap.get(ingredient);\n\t}", "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "public void fillChest(Inventory inv);", "public int getKeyInventory() {\r\n return Input.Keys.valueOf(keyInventoryName);\r\n }", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "@Override\n\tpublic List<Equipment> getAllEquipmet() {\n\t\treturn dao.getAllEquipmet();\n\t}", "@Override\r\n\tpublic java.util.List<Inventory> findAll(String nameProduct) {\n\t\tsession=HibernateUlits.getSessionFactory().openSession();\r\n\t\t\r\n\t\tInventory inventory = new Inventory();\r\n\t\t\r\n\t\tQuery query = session.createQuery(\"FROM Inventory WHERE invName = '\" + nameProduct + \"'\");\r\n\t\t\r\n\t\tList inventor = query.list();\r\n\t\t\r\n\t\tList<Inventory> invent= new ArrayList<>();\r\n\t\t\r\n\t\tfor (Iterator iter = inventor.iterator();iter.hasNext();) {\r\n\t\t\tInventory in = (Inventory)iter.next();\r\n\t\t\tInteger id= in.getInvId();\r\n\t\t\tString name = in.getInvName();\r\n\t\t\tString description = in.getInvDescription();\r\n\t\t\tString location = in.getInvLocation();\r\n\t\t\tBigDecimal price = in.getInvPrice();\r\n\t\t\tShort stock = in.getInvStock();\r\n\t\t\tShort weight = in.getInvWeight();\r\n\t\t\tShort size = in.getInvSize();\r\n\t\t\t\r\n\t\t\tInventory tempInv = new Inventory(id,name,description,location,price,stock,weight,size);\r\n\t\t\tinvent.add(tempInv);\r\n\t\t }\r\n\t \r\n\t \r\n\t\treturn invent;\r\n\t}", "public List<Stockitem> getItem() {\n\t\treturn (ArrayList<Stockitem>) stockitemDAO.findAllStockitem();\n\t}", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn field_145900_a.length;\n\t}", "public Integer getStock(int ID) {\r\n\t\treturn inventory.get(ID);\r\n\t}", "public InventoryUtil getInventoryUtil() {\n return inventoryUtil;\n }", "public synchronized String printInventory(){\n String inventStr = \"\";\n\n for (int i = 0; i < titleList.size(); i++){\n inventStr += titleList.get(i) + \" \" + quantityList.get(i);\n if(i < titleList.size() - 1) {\n inventStr +=\"___\";\n }\n }\n return inventStr;\n }", "public ImageIdentifier getInventoryPicture()\n\t {\n\t return inventoryPicture;\n\t }", "@Shadow public abstract Iterable<ItemStack> getArmorSlots();", "public int getSizeInventory()\n {\n return this.slotsCount;\n }", "public void inventoryPrint() {\n System.out.println(\"Artifact Name: \" + name);\r\n System.out.println(\"Desc:\" + description);\r\n System.out.println(\"Value: \" + value);\r\n System.out.println(\"Mobility: \" + mobility); \r\n }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public ArrayList<Thing> getThings()\r\n {\r\n \tArrayList<Thing> inventory = new ArrayList<Thing>();\r\n \tfor (int i=0; i<items.size(); i++)\r\n \t\tinventory.add(items.get(i));\r\n \treturn inventory;\r\n }", "public interface MIInventoryInterface {\n\n /**\n * @return The inventory contents.\n */\n ItemStack[] getInventoryContents();\n\n /**\n * @return The armor contents.\n */\n ItemStack[] getArmorContents();\n}", "public String getItemsString()\n {\n String returnString =\"\";\n if(Inventory.isEmpty()){\n returnString = \"You are not holding any items\";\n } else {\n returnString = \"Items you are holding:\";\n String temp = \"\";\n for(Items item : Inventory.values()) {\n temp += \", \" + item.getName() ; \n }\n returnString += temp.substring(1);\n }\n return returnString;\n }" ]
[ "0.8343377", "0.8277669", "0.8066973", "0.7958457", "0.7945222", "0.78811646", "0.78137475", "0.77881306", "0.76913214", "0.76377493", "0.75900316", "0.75162345", "0.74985194", "0.74252146", "0.7335266", "0.7303584", "0.72793996", "0.7266718", "0.72555685", "0.71846217", "0.71145165", "0.71077", "0.70928377", "0.7036928", "0.7019442", "0.70119154", "0.7006466", "0.70058006", "0.6986046", "0.6942813", "0.69272804", "0.6917547", "0.69100773", "0.688011", "0.68641293", "0.68053544", "0.68038005", "0.67571825", "0.6743883", "0.67297596", "0.6689324", "0.6674617", "0.66580164", "0.6639863", "0.66262734", "0.66189957", "0.66037536", "0.66024417", "0.6601264", "0.6596732", "0.6584516", "0.6581635", "0.65810174", "0.65767336", "0.6576512", "0.6570924", "0.6564882", "0.65345055", "0.6525648", "0.64910835", "0.648777", "0.6474425", "0.6467035", "0.64606225", "0.64573765", "0.64531773", "0.6437501", "0.64283437", "0.64261883", "0.6419925", "0.641675", "0.6370615", "0.63546747", "0.6335856", "0.63333523", "0.63288426", "0.62938577", "0.6293819", "0.628039", "0.6279154", "0.6277149", "0.62765443", "0.6260139", "0.6253372", "0.6249018", "0.6243119", "0.6220247", "0.62032133", "0.6163246", "0.61514884", "0.61437726", "0.6138883", "0.613735", "0.6129998", "0.61283004", "0.61257505", "0.61144674", "0.6114345", "0.6104932", "0.6092638" ]
0.73702884
14
Sets a list of items as a new inventory.
public void setList(ArrayList<Item> inventory) { this.inventory = inventory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateInventory(List<Item> items) {\r\n for(Item item : items) {\r\n inventory.put(item, STARTING_INVENTORY);\r\n inventorySold.put(item, 0);\r\n itemLocations.put(item.getSlot(), item);\r\n }\r\n }", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "public void setInventory(ArrayList<InventoryItem> inventory)\r\n\t{\r\n\t\ttheGridView.setInventory(inventory);\r\n\t}", "public InteractiveEntity(ArrayList<Item> items) {\n\t\tsuper();\n\t\tthis.inventory.addAll(items);\n\t}", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "public void setItems(Object[] newItems)\n {\n items = new Vector(newItems.length);\n for (int i=0; i < newItems.length; i++)\n {\n items.addElement(newItems[i]);\n }\n }", "public void setItems(Item items) {\n this.items = items;\n }", "public VendingMachine(List<Item> items) {\r\n updateInventory(items);\r\n moneyLog = new Money();\r\n }", "public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }", "public void set(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n\n //first collapse all items\n getFastAdapter().collapse();\n\n //get sizes\n int newItemsCount = items.size();\n int previousItemsCount = mItems.size();\n int itemsBeforeThisAdapter = getFastAdapter().getItemCount(getOrder());\n\n //make sure the new items list is not a reference of the already mItems list\n if (items != mItems) {\n //remove all previous items\n if (!mItems.isEmpty()) {\n mItems.clear();\n }\n\n //add all new items to the list\n mItems.addAll(items);\n }\n\n //map the types\n mapPossibleTypes(items);\n\n //now properly notify the adapter about the changes\n if (newItemsCount > previousItemsCount) {\n if (previousItemsCount > 0) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, previousItemsCount);\n }\n getFastAdapter().notifyAdapterItemRangeInserted(itemsBeforeThisAdapter + previousItemsCount, newItemsCount - previousItemsCount);\n } else if (newItemsCount > 0 && newItemsCount < previousItemsCount) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, newItemsCount);\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter + newItemsCount, previousItemsCount - newItemsCount);\n } else if (newItemsCount == 0) {\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter, previousItemsCount);\n } else {\n getFastAdapter().notifyAdapterDataSetChanged();\n }\n }", "public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}", "public void setRoomItems(ArrayList<Item> newRoomItems) {\n roomItems = newRoomItems;\n }", "@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }", "public void setInventorySlotContents(int par1, ItemStack par2ItemStack)\n {\n this.furnaceItemStacks[par1] = par2ItemStack;\n\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())\n {\n par2ItemStack.stackSize = this.getInventoryStackLimit();\n }\n }", "public abstract void setList(List<T> items);", "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 }", "public void setRandomItems(ArrayList<RandomItem> items);", "public void setInventory(int inventory){\r\n inventoryNumber += inventory;\r\n }", "public Inventory(Integer size, ItemStack... items) {\n this.setSize((size == 0) ? 2147483647 : size);\n for (ItemStack stack : items) {\n ITEMS.add(stack);\n }\n }", "public void setItems(List<PickerItem> items) {\n this.items = items;\n initViews();\n selectChild(-1);\n }", "public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }", "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 }", "public PageInventory withItems(Collection<ItemStack> items)\n {\n this.contents.addAll(items);\n this.recalculate();\n return this;\n }", "@Override\n\tpublic void setInventorySlotContents(int index, ItemStack stack) {\n\t\t\n\t}", "public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }", "public PageInventory withItems(ItemStack... items)\n {\n this.contents.addAll(Arrays.asList(items));\n this.recalculate();\n return this;\n }", "public void setItem(Item[] param) {\r\n validateItem(param);\r\n\r\n localItemTracker = true;\r\n\r\n this.localItem = param;\r\n }", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "public Inventory(){\n this.items = new ArrayList<InventoryItem>(); \n }", "public void setItems(){\n }", "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "public void setItems(String items)\n {\n _items = items;\n }", "public void setInventorySlotContents(int slot, ItemStack stack)\n {\n waterjetStacks[slot] = stack;\n }", "private void setItems(Set<T> items) {\n Assertion.isNotNull(items, \"items is required\");\n this.items = items;\n }", "public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_)\n {\n this.inventoryContents[p_70299_1_] = p_70299_2_;\n\n if (p_70299_2_ != null && p_70299_2_.stackSize > this.getInventoryStackLimit())\n {\n p_70299_2_.stackSize = this.getInventoryStackLimit();\n }\n\n this.markDirty();\n }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public Builder setInventoryItemData(POGOProtos.Rpc.HoloInventoryItemProto value) {\n if (inventoryItemDataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inventoryItem_ = value;\n onChanged();\n } else {\n inventoryItemDataBuilder_.setMessage(value);\n }\n inventoryItemCase_ = 3;\n return this;\n }", "public Inventory(int INVENTORY_SLOTS) {\n\t\tsuper();\n\t\tthis.inventoryItems = new Item[INVENTORY_SLOTS];\n\t\tthis.INVENTORY_SLOTS = INVENTORY_SLOTS;\n\t}", "public void setItem(Object item, int i)\n {\n items.setElementAt(item, i);\n }", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "public void initItems() {\n List<Integer> emptySlots = NimbleServer.enchantmentConfig.getEmptySlots();\n for (int i = 0; i < getSize(); i++) {\n if(!(emptySlots.contains(i))) {\n getInventory().setItem(i, getFiller());\n }\n }\n }", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "public void setItems(List<PickerItem> items, int selectedIndex) {\n setItems(items);\n selectChild(selectedIndex);\n }", "public void addItem(String i) {\n\t\tItem item = Item.getItem(ItemList, i);\n\t Inventory.add(item);\n\t inventoryList.getItems().add(i);\n\n\t}", "public void setItemIdList(List<String> itemIdList) {\r\n this.itemIdList = itemIdList;\r\n }", "@Override\n public void setInventorySlotContents(int index, @Nullable ItemStack stack1) {\n markDirty();\n int flag = 1;\n if (null == stack) {\n stack = stack1.copy();\n stack1.stackSize = 0;\n flag = 3;\n } else {\n int limit = Config.Feeder.InvSize - stack.stackSize;\n if (stack1.stackSize > limit) {\n stack.stackSize += limit;\n stack1.stackSize -= limit;\n } else {\n stack.stackSize += stack1.stackSize;\n stack1.stackSize = 0;\n }\n }\n IBlockState state = worldObj.getBlockState(getPos());\n worldObj.notifyBlockUpdate(getPos(), state, state, flag);\n }", "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 }", "public Inventory(Inventory referenceInventory) {\n \titems = new ArrayList<Collectable>();\n \t//Clone items list.\n \tfor (Collectable item : referenceInventory.getItems()) {\n \t\titems.add(item);\n \t}\n \t//Clone num tokens.\n \tnumTokens =\treferenceInventory.numTokens;\n }", "@Override\n public void setEquippedItem(IEquipableItem item) {}", "protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}", "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 }", "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "public void moveTo(Inventory inventory) {\n for (ItemStack itemStack : this.getItemStacks()) {\n int added = inventory.addItemStack(itemStack);\n this.ITEMS.get(this.getItemStack(itemStack)).addAmount(-added);\n }\n }", "public void updateItemsList(List<Image> list) {\n\n\t\tthis.itemsList = list;\n\n\t}", "public static void giveItems(Player p, List<ItemStack> lis) {\r\n for(ItemStack i : lis) {\r\n HashMap<Integer, ItemStack> ret = p.getInventory().addItem(i);\r\n if(ret != null) {\r\n for(ItemStack i2 : ret.values()) {\r\n p.getLocation().getWorld().dropItemNaturally(p.getLocation(), i2);\r\n }\r\n }\r\n }\r\n }", "public void setCurrentItems(ArrayList<Item> currentItems) {\n this.currentItems = currentItems;\n }", "public void setItems(nl.webservices.www.soap.GCRItem[] items) {\n this.items = items;\n }", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "@Override\n\tpublic void setInventorySlotContents(int slot, ItemStack stack){\n\t modularStacks[slot] = stack;\n\n\t if(stack != null && stack.stackSize > getInventoryStackLimit()) {\n\t stack.stackSize = getInventoryStackLimit();\n\t }\n\n\t markDirty();\n\t worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);\n\t}", "public void setItemStack(ItemStack stack) {\n item = stack.clone();\n }", "public void setListItems(List<String> lit) { mItems = lit; }", "public static void putCraftableItemInArrayList() {\n\n craftableItem.addItemToCraftableList(campfire);\n craftableItem.addItemToCraftableList(raft);\n craftableItem.addItemToCraftableList(axe);\n craftableItem.addItemToCraftableList(spear);\n }", "public Item[] getInventoryItems(){\n\t\treturn inventoryItems;\n\t}", "private void addRoomItems(int itemsToAdd)\n {\n\n // Adds up to 3 random items to a random room .\n if (!(itemsToAdd == 0)){\n\n for(int j = 0; j < itemsToAdd; j++){\n Item chooseItem = chooseValidItem(); \n Room chooseRoom = rooms.get(random.nextInt(rooms.size()));\n\n chooseRoom.getInventory().getItems().add(chooseItem);\n System.out.println(chooseRoom.getName()+\": \"+chooseItem.getName());\n\n }\n }\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void fillChest(Inventory inv);", "public void onInventoryChanged()\n\t{\n\t\tfor (int i = 0; i < this.items.length; i++)\n\t\t{\n\t\t\tItemStack stack = this.items[i];\n\t\t\tif (stack != null && stack.stackSize <= 0)\n\t\t\t{\n\t\t\t\tthis.items[i] = null;\n\t\t\t}\n\n\t\t}\n\t}", "@SideOnly(Side.CLIENT)\n/* 34: */ public void getSubItems(Item itemId, CreativeTabs table, List list)\n/* 35: */ {\n/* 36:35 */ for (int i = 0; i < 13; i++)\n/* 37: */ {\n/* 38:36 */ ItemStack is = new ItemStack(itemId);\n/* 39:37 */ is.stackTagCompound = new NBTTagCompound();\n/* 40:38 */ is.stackTagCompound.setShort(\"Shield\", (short)i);\n/* 41:39 */ list.add(is);\n/* 42: */ }\n/* 43: */ }", "private static String[] placeInBag(String item, String[] inventory){\r\n for(int i=0; i<inventory.length; i++){\r\n if(inventory[i].equals(\"\")){\r\n inventory[i] = item;\r\n break;\r\n }\r\n }\r\n return inventory;\r\n }", "public void setItemList(String item)\n {\n this.itemLinkedList.add(new Item(item));\n }", "public Builder setItems(\n int index, int value) {\n ensureItemsIsMutable();\n items_.set(index, value);\n onChanged();\n return this;\n }", "public void setUnitsInventory(int unitsInventory){\n\t\tthis.unitsInventory = unitsInventory;\n\t}", "public void onInventoryChanged();", "public void fillInventory(TheGroceryStore g);", "public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}", "@Override\n public void onRestoreInstanceState(Bundle savedInstance) {\n for (int i = 0; i < numInList; i++) {\n int val = savedInstance.getInt(\"quantity\"+i, 0);\n e.putInt(\"ItemQuantity\"+i, val);\n }\n }", "public void addEventInventoryList (List<Inventory> eventInventoryList) {\n requireNonNull(eventInventoryList);\n\n for (Inventory item : eventInventoryList) {\n\n Optional<Inventory> optional = this.list.stream().filter(item::isSameInventory).findAny();\n\n if (optional.isPresent()) {\n\n Inventory existingItem = optional.get();\n\n\n //This item is already in a different event\n if (existingItem.getEventInstances() > 0) {\n existingItem.setEventInstances(existingItem.getEventInstances() + 1);\n } else {\n existingItem.setIsRemovable(false);\n existingItem.setEventInstances(1);\n }\n\n } else {\n item.setIsRemovable(false);\n item.setEventInstances(1);\n this.list.add(item);\n }\n\n }\n }", "void updateInventory(String busNumber, String tripDate, int inventory) throws NotFoundException;", "public PaymentRequest setItems(List items) {\r\n this.items = items;\r\n return this;\r\n }", "public void updateInventory(ArrayList<Player> players) {\n inventoryArea.selectAll();\n inventoryArea.replaceSelection(\"\");\n for(Player p : players) {\n inventoryArea.append(\"\\n\" + p.toString());\n inventoryArea.setCaretPosition(inventoryArea.getDocument().getLength());\n\n }\n }", "public void setInventoryItemId(Number value) {\n setAttributeInternal(INVENTORYITEMID, value);\n }", "public void setInventoryItemId(Number value) {\n setAttributeInternal(INVENTORYITEMID, value);\n }", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "void addElementToInventory(String elementName);", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "public void setItem(@NotNull Usable usable, int i) {\n checkIndex(i);\n\n if (items[i] == null) {\n size++;\n }\n\n items[i] = usable;\n }", "public void setList(String[][] items, int startIndex) {\n\t\tunselectCurrentRow();\n\n\t\t/* Insert items in rows. */\n\t\tif (startIndex + numberOfDataRows < items.length) {\n\t\t\tnumberOfUsedDataRows = numberOfDataRows;\n\t\t} else {\n\t\t\tnumberOfUsedDataRows = items.length - startIndex;\n\t\t}\n\n\t\tint row = 1;\n\n\t\tfor (int i = startIndex; i < (startIndex + numberOfUsedDataRows); i++) {\n\t\t\tfor (int j = 0; j < columnNames.length; j++) {\n\t\t\t\tgrid.setText(row, j, items[i][j]);\n\t\t\t}\n\t\t\trow++;\n\t\t}\n\n\t\t/* Clear rest of rows. */\n\t\tfor (int i = row; i <= numberOfDataRows; i++) {\n\t\t\tfor (int j = 0; j < columnNames.length; j++) {\n\t\t\t\tgrid.clearCell(i, j);\n\t\t\t}\n\t\t}\n\n\t\t/* Select first row and generate event. */\n\t\tif (numberOfUsedDataRows > 0) {\n\t\t\tselectRow(1);\n\t\t\tonCellClicked(null, 1, 0);\n\t\t}\n\n\t}", "public void replaceBooks(List<Book> newItems)\r\n\t{\r\n\t\tList<Book> oldValue = items;\r\n\t\titems = newItems;\r\n\t\tfirePropertyChange(\"books\", oldValue, items);\r\n\t\ttry {\r\n\t\t\tfirePropertyChange(\"itemsCount\", oldValue.size(), items.size());\r\n\t\t} catch(NullPointerException npe) {\r\n\t\t\tfirePropertyChange(\"itemsCount\", 0, items.size());\r\n\t\t}\r\n\t}", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "public void setItem(\r\n @NonNull\r\n final List<SalesOrderItem> value) {\r\n if (toItem == null) {\r\n toItem = Lists.newArrayList();\r\n }\r\n toItem.clear();\r\n toItem.addAll(value);\r\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "void setItemId(String itemId);" ]
[ "0.7367597", "0.734269", "0.7308342", "0.7128512", "0.6966301", "0.69563735", "0.691504", "0.69084734", "0.6717374", "0.67142254", "0.6698736", "0.66954637", "0.66425896", "0.6549447", "0.6495657", "0.6383241", "0.63814086", "0.63744587", "0.636946", "0.6363276", "0.6355142", "0.63518226", "0.6341322", "0.63172907", "0.6316128", "0.6311852", "0.6308482", "0.62683463", "0.6211101", "0.6198619", "0.6161845", "0.6142191", "0.6140568", "0.61138564", "0.608096", "0.60735303", "0.60692453", "0.60660774", "0.6041454", "0.60383177", "0.60344166", "0.6013756", "0.60069513", "0.6006334", "0.60021895", "0.59974825", "0.5989373", "0.59743756", "0.59677655", "0.5949368", "0.5939882", "0.5935336", "0.5932893", "0.59262305", "0.5922116", "0.59202087", "0.59058475", "0.5886567", "0.58847606", "0.58812445", "0.5865911", "0.5860914", "0.5841903", "0.58390975", "0.57927614", "0.57877845", "0.5780679", "0.5765102", "0.5758947", "0.575887", "0.5758322", "0.5748371", "0.5740915", "0.5729784", "0.57154983", "0.57132465", "0.5712351", "0.5711174", "0.5706776", "0.57060516", "0.56992733", "0.56932074", "0.5684505", "0.5677577", "0.56757873", "0.56618637", "0.5657701", "0.5657701", "0.56563103", "0.56503636", "0.56398314", "0.563952", "0.5637682", "0.5621384", "0.5618399", "0.5615545", "0.5609662", "0.56066906", "0.56046146", "0.5598759" ]
0.77415067
0
Gets the totalNumberOfTransactionLines attribute.
public Integer getTotalNumberOfTransactionLines() { return totalNumberOfTransactionLines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLinesCount() {\n return lines.length;\n }", "public int getNumLines() {\n\t\treturn numLines;\n\t}", "public int getLineCount() {\n\t\treturn lineCount;\n\t}", "int getNumberOfLines();", "public void setTotalNumberOfTransactionLines(int totalNumberOfTransactionLines) {\n this.totalNumberOfTransactionLines = totalNumberOfTransactionLines;\n }", "int getLinesCount();", "public long getNRowsTotal() {\n return cGetNRowsTotal(this.cObject);\n }", "public int number_of_lines() {\r\n\t\treturn line_index.size() - 1;\r\n\t}", "public int getLines() {\n\t\treturn this.linhas;\n\t}", "public int getTxnCount() {\n return txnCount.get();\n }", "@Override\n\tpublic long getLineCount() {\n\t\tif (lineCount == null || checksumChanged()) {\n\t\t\ttry (Stream<String> stream = Files.lines(getDataStore()\n\t\t\t\t\t.getDocument().toPath())) {\n\t\t\t\tlong count = stream.filter(line -> !line.isEmpty()).count();\n\t\t\t\tthis.lineCount = count;\n\t\t\t\treturn count;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\treturn lineCount;\n\t\t}\n\t\tthrow new NullPointerException(\n\t\t\t\t\"Unexpected error. Could not get the line count.\");\n\t}", "public Integer size() {\n\t\treturn mLines == null ? 0 : mLines.length;\n\t}", "public int getNoOfRelevantLines() { return this.noOfRelevantLines; }", "public int getLinesProcessed() {\n return linesProcessed;\n }", "public int getNumLines ();", "public int getTotalRowCount() {\r\n return totalRowCount;\r\n }", "int getTransactionsCount();", "public int getTotalCount() {\n return totalCount;\n }", "private int getQtyLinesFromDB()\n {\n \tint id = getC_Order_ID();\n \tif (id <= 0)\n \t\treturn 0;\n \tint qtyLines = DB.getSQLValue(get_TrxName(),\n \t \"SELECT COUNT(1) FROM C_OrderLine WHERE C_Order_ID = \" + id);\n \treturn qtyLines;\n }", "public int lines( )\n {\n int lin = 0;\n\n if( table != null )\n {\n lin = table.length;\n } //end\n return(lin);\n }", "public int getLinesResource(){\n return response.body().split(\"\\n\").length;\n }", "int getBytesPerLine() {\n\t\treturn bytesInLine.intValue();\n\t}", "public int getTotalNumSyncPoints() {\n return (Integer) getProperty(\"numTotalSyncPoints\");\n }", "public long getTxnSize() {\n return snapLog.getTotalLogSize();\n }", "public int getNumTransactionsInBlock() {\r\n return numTransactionsInBlock;\r\n }", "public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}", "@java.lang.Override\n public int getTransactionsCount() {\n return instance.getTransactionsCount();\n }", "public Long getTotalCount() {\r\n return totalCount;\r\n }", "private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}", "public long getTotalCount() {\n return _totalCount;\n }", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public int getTotalRecords() {\r\n return totalRecords;\r\n }", "public int size()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\treturn lines.size();\r\n\t\t}\r\n\t}", "public int getTotal() {\n\t\treturn this.total;\n\t}", "public int numberOfSegments() {\n return this.lineSegments.length;\n }", "public int getTotalRecords() {\n return totalRecords;\n }", "public int getTotal() {\n\t\t\treturn total;\n\t\t}", "public int getTotal() {\n\t\treturn total;\n\t}", "public Integer getTotalItemCount() {\n return totalItemCount;\n }", "public int size() {\n return lines.size();\n }", "public int getLineBlockSIZE() {\n\t\treturn lineblocksSIZE;\n\t}", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "@java.lang.Override\n public int getTransactionsCount() {\n return transactions_.size();\n }", "public int getTotal () {\n\t\treturn total;\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getRowCount() {\r\n\t\treturn(noOfRows);\r\n\t}", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }", "int getRowsAmount();", "public long totalRecords() {\n return this.totalRecords;\n }", "public int getnRows() {\n return nRows;\n }", "public int getnRows() {\n return nRows;\n }", "public int numberOfSegments() {\n return lineSegments.size();\n }", "public int numberOfSegments() {\n return lineSegments.size();\n }", "public int numberOfSegments() {\n return lineSegments.length;\n }", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "public long getNbTotalItems() {\n return nbTotalItems;\n }", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public int getTotalNumRows(String inputFile){\n\t\tBufferedReader br = null;\n\t\tint totalNumOfLines = 0;\n\t\ttry {\t\t \t\t\t\n br = new BufferedReader(new FileReader(inputFile));\n \t\t\twhile ( br.readLine() != null) {\n \t\t\t\ttotalNumOfLines++;\t\t\n \t\t\t}\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t} finally {\n \t\t\tif (br != null) {\n \t\t\t\ttry {\n \t\t\t\t\tbr.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \t\t\t}\n \t\t}\t\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\tSystem.out.println(\"Total number of rows in \" + inputFile + \" is \" + totalNumOfLines);\n\t\treturn totalNumOfLines;\t\t\n\t}", "public int lines() {\n return list.size();\n }", "public int getLastLineLength()\n {\n return lastLineLength;\n }", "public int getNumberOfRows() {\n return this.numberOfRows;\n }", "public int totalRowsCount();", "public int getRowCount() {\r\n int currentRowCount = this.table.getRowCount();\r\n if (currentRowCount > rowCount) {\r\n rowCount = currentRowCount;\r\n }\r\n return rowCount;\r\n }", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public int total() {\n return _total;\n }", "public int getTotalRows();", "public int getTotalReturnCount(){\n return totalReturnCount;\n }", "public int getTotalTransactionsCount(){\n String queryCount = \"SELECT COUNT(*) FROM \" + TransactionEntry.TABLE_NAME +\n \" WHERE \" + TransactionEntry.COLUMN_RECURRENCE_PERIOD + \" =0\";\n Cursor cursor = mDb.rawQuery(queryCount, null);\n int count = 0;\n if (cursor != null){\n cursor.moveToFirst();\n count = cursor.getInt(0);\n cursor.close();\n }\n return count;\n }", "@Override\n\tpublic int getRowCount() {\n\t\ttry\n\t\t{\n\t\t\tUint256 retval = contractBean.getContract().getCount().get();\n\t\t\treturn retval.getValue().intValue();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t\t// If something goes wrong, return 1\n\t\treturn 1;\n\t}", "public int getTotal () {\n return total;\n }", "public abstract int numberOfLines();", "public int total() {\n return this.total;\n }", "public int getRowCount()\n {\n // Get level of the node to be displayed\n int rowCount = displayNode.getLevel();\n \n // Add number of children\n rowCount = rowCount + displayNode.getChildCount();\n \n // Increment by 1 if the root node is being displayed\n if (rootVisible) \n { \n rowCount++; \n }\n \n // Return number of rows\n return rowCount;\n }", "public List<Integer> getLines(){\n\t\treturn lineNumber;\n\t}", "public long getAllTransactionsCount(){\n\t\tString sql = \"SELECT COUNT(*) FROM \" + TransactionEntry.TABLE_NAME;\n\t\tSQLiteStatement statement = mDb.compileStatement(sql);\n return statement.simpleQueryForLong();\n\t}", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}", "public int getRows() {\n\t\treturn NUM_OF_ROWS;\n\t}", "@Transactional\n\t\tpublic Long getNumberRows (){\n\t\t\n\t\t\treturn pharmacyRepository1.getNumberOfRows();\n\t\t\t\n\t\t}", "public int getRowCount() {\n return this.rowCount;\n }", "public int getTotalItems()\n {\n return totalItems;\n }", "public int lineNum() {\n return myLineNum;\n }", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "public int getRowCount() {\r\n return this.rowCount;\r\n }", "public int getTotalEntradas() {\n\t\treturn totalEntradas;\n\t}", "public int getChainSize() {\n int totalLength = blockChain.size();\n return totalLength;\n }", "public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}", "public int getNumRows () {\n\t\treturn numrows_;\n\t}", "public int getRowCount() {\n\t\treturn _rowCount;\n\t}", "public int getRowCount() {\n\t\treturn _rowCount;\n\t}", "public int numberOfRows() {\n\t\treturn rowCount;\n\t}", "public int getLineNumber()\n {\n // LineNumberReader counts lines from 0. So add 1\n\n return lineNumberReader.getLineNumber() + 1;\n }", "public int getNumRows() { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Getter for the number of rows\n\t\treturn numRows; \n\t}", "public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }", "public int getLineNr() {\n return this.lineNr;\n }", "public static int getErrorTotal() {\n return errorCount;\n }" ]
[ "0.74885714", "0.73758066", "0.7092213", "0.7057768", "0.7049495", "0.70224774", "0.69787", "0.68128055", "0.67856", "0.67644346", "0.6759457", "0.6633117", "0.6622654", "0.6618087", "0.660071", "0.65895766", "0.6582119", "0.6535561", "0.6499445", "0.64785475", "0.64777225", "0.64753515", "0.645959", "0.6458347", "0.6441473", "0.64063025", "0.640285", "0.639617", "0.6384521", "0.63723445", "0.6361618", "0.63542485", "0.635312", "0.6316732", "0.63157874", "0.63108766", "0.6305115", "0.6285429", "0.6261203", "0.6255432", "0.6245915", "0.6241696", "0.62370306", "0.62369645", "0.623389", "0.623389", "0.61916393", "0.6175318", "0.61717474", "0.6164609", "0.61641586", "0.6160196", "0.6160196", "0.6149225", "0.6149225", "0.6147923", "0.61297864", "0.61297864", "0.6124892", "0.6120875", "0.6120875", "0.6117849", "0.61169446", "0.6101656", "0.6090194", "0.6084168", "0.60739213", "0.60698706", "0.60698706", "0.6045244", "0.6023257", "0.60145515", "0.60083044", "0.6005578", "0.5992314", "0.5987501", "0.598661", "0.598523", "0.5975261", "0.5965044", "0.5963609", "0.5956452", "0.5955744", "0.5952024", "0.5949606", "0.5947013", "0.59355754", "0.59319687", "0.59275013", "0.592638", "0.59227765", "0.59219867", "0.59159446", "0.59159446", "0.591358", "0.59037876", "0.58933496", "0.5885043", "0.5880326", "0.58742607" ]
0.9061512
0
Sets the totalNumberOfTransactionLines attribute value.
public void setTotalNumberOfTransactionLines(int totalNumberOfTransactionLines) { this.totalNumberOfTransactionLines = totalNumberOfTransactionLines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getTotalNumberOfTransactionLines() {\n return totalNumberOfTransactionLines;\n }", "@ReactProp(name = ViewProps.NUMBER_OF_LINES, defaultInt = ViewDefaults.NUMBER_OF_LINES)\n public void setNumberOfLines(ReactTextView view, int numberOfLines) {\n view.setNumberOfLines(numberOfLines);\n }", "public void setNRowsTotal(long nRowsTotal) {\n cSetNRowsTotal(this.cObject, nRowsTotal);\n }", "void setLinesLimit(int value);", "public void setLineNum(int nLineNum){\n\t\tlineNumber = nLineNum;\n\t}", "public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }", "public void setTotalRecords(int totalRecords) {\r\n this.totalRecords = totalRecords;\r\n }", "public void setNbTotalItems(long value) {\n this.nbTotalItems = value;\n }", "protected void setMinLineCount(int minLineCount) {\n\t\tthis.minLineCount = minLineCount;\n\t}", "public int getNumLines() {\n\t\treturn numLines;\n\t}", "private void setNoOfRows(int noOfRows) {\n this.noOfRows = noOfRows;\n }", "public void setNumberOfRows(int numberOfRows) {\r\n\t\tthis.numberOfRows = numberOfRows;\r\n\t}", "public void setTotalCount(int totalCount) {\n this.totalCount = totalCount;\n }", "public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }", "public void setLineLength(int len) {\n lineLength = len / 4 * 4;\n }", "public void setTotal(int value) {\n this.total = value;\n }", "private synchronized void updateLineCount(long lineCount) {\r\n\t\tthis.parsedLines += lineCount;\r\n\t}", "private void setNumRows(int rows) {\n\t\tnumRows = rows; \n\t}", "public int getLinesCount() {\n return lines.length;\n }", "public void setLineNumber(Integer lineNumber) {\r\n this.lineNumber = lineNumber;\r\n }", "public void setLineNumber(int lineNumber) {\n this.lineNumber = lineNumber;\n }", "protected void setMaxLineCount(int maxLineCount) {\n\t\tthis.maxLineCount = maxLineCount;\n\t}", "public void setLines(HashMap<String, ArrayList<Integer>> lines) {\r\n\t\tthis._fileLines = lines;\r\n\t}", "public void setTotalNumChecks(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(TOTALNUMCHECKS_PROP.get(), value);\n }", "public void setLineNumber(Number value) {\n setAttributeInternal(LINENUMBER, value);\n }", "public void setLineNumber(Integer lineNumber) {\n this.lineNumber = lineNumber;\n }", "public void setTotalSegments(int value) {\n this.totalSegments = value;\n }", "void setLineNumber(int lineNumber) {}", "public void setTotalNumChecks(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(TOTALNUMCHECKS_PROP.get(), value);\n }", "public void setLineNo(int lineNo)\n\t{\n\t\tsetIntColumn(lineNo, OFF_LINE_NO, LEN_LINE_NO);\n\t}", "void setTotalsRowCount(int count);", "public void setTotal(int total) {\n this.total = total;\n }", "public void setNumberOfCompletedFiles(int value) {\n this.numberOfCompletedFiles = value;\n }", "public void setTotalCount(long totalCount) {\r\n\t\tif (totalCount < 0) {\r\n\t\t\tthis.totalCount = 0;\r\n\t\t} else {\r\n\t\t\tthis.totalCount = totalCount;\r\n\t\t}\r\n\t}", "@CustomMetric(name = \"totalFailedRequests\", kind = Metric.Kind.COUNTER,\n \t\tdescription = \"The number of failed inserts/gets over the lifetime of the operator.\")\n public void setTotalFailedRequests(Metric totalFailedRequests) {\n \tthis.totalFailedRequests = totalFailedRequests;\n }", "public void setTotalCustomers(int _totalCustomers){\n this.totalCustomers = _totalCustomers;\n\n }", "public void setTotalNum(Integer totalNum) {\n this.totalNum = totalNum;\n }", "public void setTotalResponse(int totalResponse) {\n this.totalResponse = totalResponse;\n }", "public void setTotalNum(Number value) {\n setAttributeInternal(TOTALNUM, value);\n }", "public void setTotalPassengers(int value) {\n this.totalPassengers = value;\n }", "public void setLineNumber(Integer value){\n ((MvwDefinitionDMO) core).setLineNumber(value);\n }", "public void setRowCount(int n) {\n mController.setRowCount(n);\n }", "public int getLineCount() {\n\t\treturn lineCount;\n\t}", "public int number_of_lines() {\r\n\t\treturn line_index.size() - 1;\r\n\t}", "public void setTotalProgramSegments(int value) {\n this.totalProgramSegments = value;\n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "public int getLinesProcessed() {\n return linesProcessed;\n }", "public void setTotalCount(Long totalCount) {\r\n this.totalCount = totalCount;\r\n }", "public void setNumberOfFailedFiles(int value) {\n this.numberOfFailedFiles = value;\n }", "public void setTotal(int total) {\n\t\tthis.total = total;\n\t}", "public void setLine(int line);", "public void setLineNo (int LineNo);", "int getNumberOfLines();", "public void setNumRows(int numRows) {\n\t\tthis.numRows = numRows;\n\t}", "@OptionMetadata(displayName = \"Number of folds\", description = \"Number of \"\n + \"folds to use when cross-validating\", displayOrder = 4)\n public void setTotalFolds(String totalFolds) {\n m_totalFolds = totalFolds;\n }", "public void setRowCount(int[] rowCount) {\r\n this.rowCount = rowCount;\r\n }", "public void setTotal(Number value) {\n setAttributeInternal(TOTAL, value);\n }", "public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }", "public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }", "public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }", "public void setNumberOfInProcessFiles(int value) {\n this.numberOfInProcessFiles = value;\n }", "int getLinesCount();", "public void setNumOfMenuItems(int _numOfMenuItems){\n numOfMenuItems = _numOfMenuItems;\n }", "public int getNoOfRelevantLines() { return this.noOfRelevantLines; }", "public void setNUMBEROFRECORDS(int value) {\n this.numberofrecords = value;\n }", "public void setLineNumbers(int ln[]) {\n lineNos = ln;\n }", "public void setRows(int rows) {\n\t\tthis.rows = rows;\n\t}", "public void setRowCount(int rowCount) {\n this.mRowCount = rowCount <= 0 ? DEFAULT_ROW_COUNT : rowCount;\n }", "public static int minimumNumberOfLineItems() {\n return 0;\n }", "public void setRows(int rows) {\n this.rows = rows;\n }", "public void setBlockCount(long value) {\n this.blockCount = value;\n }", "public void setTotalPageCount(Integer totalPageCount) {\n this.totalPageCount = totalPageCount;\n }", "public void setGridNumOfRows(int numOfRows) {\n getCellGrid().userSetNumOfRows(numOfRows);\n }", "public void setRows(int rows)\n {\n this.rows = rows;\n }", "public void setRowCount(int rowCount) {\r\n this.rowCount = rowCount;\r\n this.initializeGrid();\r\n }", "public void setTotalResults(Integer totalResults) {\r\n this.totalResults = totalResults;\r\n }", "public void setMaxLines(int maxLines) {\n if (mMaxLines == maxLines || maxLines <= 0) {\n return;\n }\n mMaxLines = maxLines;\n mNeedUpdateLayout = true;\n }", "public void setmRows(int mRows) {\n this.mRows = mRows;\n }", "public void setLineHeight(int i) {\n lineHeight = i;\n }", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "private void updateTotalPageNumbers() {\n totalPageNumbers = rows.size() / NUM_ROWS_PER_PAGE;\n }", "public void setScroll_px_per_line(float scroll_px_per_line) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t}\n\t}", "public void setNrVertices(int nrVertices){\n this.nrVertices = nrVertices;\n }", "public void setFinancialDocumentLineNumber(Integer financialDocumentLineNumber) {\r\n this.financialDocumentLineNumber = financialDocumentLineNumber;\r\n }", "public void setLineNumberEnabled(boolean lineNumberEnabled) {\n\t\tTSEditorUtils.setLineNumberEnabled(m_editor, lineNumberEnabled);\n\t}", "public void setTotalSeats(int value) {\n this.totalSeats = value;\n }", "public void setTotalRolls(Number value) {\n setAttributeInternal(TOTALROLLS, value);\n }", "public void setNumberOfTokens(double value){\n\t\tthis.numberOfTokens = value;\n\t}", "public void setLine (int Line);", "@JsonProperty(\"total_items\")\n public void setTotalItems(Long totalItems) {\n this.totalItems = totalItems;\n }", "public void setTotalAbonos() {\n String totalAbonos = this.costoAbono.getText();\n int total = Integer.parseInt(totalAbonos.substring(1,totalAbonos.length()));\n this.tratamientotoSelected.setTotalAbonos(total);\n \n PlanTratamientoDB.editarPlanTratamiento(tratamientotoSelected);\n }", "public void setTotalResults(java.math.BigInteger totalResults)\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(TOTALRESULTS$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TOTALRESULTS$4);\n }\n target.setBigIntegerValue(totalResults);\n }\n }", "public int getLineBlockSIZE() {\n\t\treturn lineblocksSIZE;\n\t}", "public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }", "private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}", "void setStepLineNumber(int number)\n\t{\n\t\tthis.stepLineNumber = number;\n\t}", "void setStepLineNumber(int number)\n\t{\n\t\tthis.stepLineNumber = number;\n\t}", "private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }", "int getBytesPerLine() {\n\t\treturn bytesInLine.intValue();\n\t}", "public void setNumTriangles(final int numTriangles) {\n this.numTriangles = numTriangles;\n }" ]
[ "0.65822005", "0.6506734", "0.6301895", "0.6080365", "0.60318816", "0.6023891", "0.5992177", "0.59024113", "0.5816158", "0.579318", "0.5768578", "0.57642835", "0.571003", "0.5684784", "0.5664441", "0.56478614", "0.56336844", "0.56320804", "0.5626969", "0.5563534", "0.553512", "0.55345297", "0.55280703", "0.5511325", "0.5503503", "0.54932743", "0.5490981", "0.5486513", "0.5481875", "0.5444247", "0.54283327", "0.5420058", "0.5398924", "0.53887135", "0.53784025", "0.535929", "0.53567535", "0.53489023", "0.53452665", "0.5330965", "0.5325715", "0.53223944", "0.5313223", "0.53074735", "0.53047323", "0.530308", "0.528885", "0.52557516", "0.5245698", "0.52368796", "0.5230111", "0.52271706", "0.52212656", "0.52193266", "0.5182423", "0.51767", "0.51744145", "0.5166589", "0.5166589", "0.5166589", "0.5164668", "0.5161111", "0.515887", "0.5157224", "0.5153941", "0.51469415", "0.51452327", "0.5139876", "0.5093912", "0.50919217", "0.50889724", "0.5077951", "0.5076657", "0.50699335", "0.506323", "0.50502", "0.50381553", "0.50365293", "0.50340706", "0.50238496", "0.50064886", "0.5004591", "0.49959755", "0.4995239", "0.4987019", "0.4982139", "0.49794784", "0.49787775", "0.4978345", "0.49676934", "0.49632514", "0.49607533", "0.49507692", "0.4948169", "0.494461", "0.49388403", "0.49388403", "0.49386021", "0.49382824", "0.49377927" ]
0.819639
0
Adds a income amount to the current income total
public void addIncomeAmount(KualiDecimal incomeAmount) { this.incomeAmount = this.incomeAmount.add(incomeAmount); this.totalNumberOfTransactionLines++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addMoney(int income) {\r\n\t\tmoney += income;\r\n\t}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "void addIncomeToBudget();", "public void addMoney(double profit){\n money+=profit;\n }", "public int updateIncome(Income income) {\n\t\treturn 0;\n\t}", "public void addCash(double added_cash) {\n cash += added_cash;\n }", "public void addMoney(int amount) {\n\t\tcurrentBalance += amount;\n\t}", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "@Override\n\tpublic void addIncomeBill(IncomeBillPO incomeBillPO) throws RemoteException {\n\t\t\n\t}", "void addToAmount(double amount) {\n this.currentAmount += amount;\n }", "public int addIncome(int ammt) {\n \n Integer incomeAmmt = ammt;\n this.incomeArray.add(incomeAmmt);\n \n return incomeAmmt;\n }", "public final void addIncomeToBudget() {\n for (int i = 0; i < this.getConsumers().size(); i++) {\n if (!this.getPastDueConsumers().contains(this.getConsumers().get(i))) {\n setInitialBudget(getInitialBudget()\n + this.getConsumers().get(i).getContractPrice());\n }\n }\n }", "public Money add(Money input) {\n long newAmount = this.amount + input.getAmount();\n this.amount = newAmount;\n Money addedAmount = new Money(currency, newAmount);\n return addedAmount;\n }", "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "public void addIncome(Income income) {\n\t\tSession session=null;\n\t\tTransaction tx=null;\n\t\ttry {\n\t\t\tsession=BuildSessionFactory.getCurrentSession();\n\t\t\ttx=session.beginTransaction();\n\t\t\tincomeDao.add(session, income);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t\tthrow new UserException(e.getMessage());\n\t\t\t}\n\t\t}finally{\n\t\t\tif(session!=null && session.isOpen()){\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}", "public void addMoney(int amount) {\n\t\tcurrentMoney.addMoney(amount);\n\t}", "public double addToSpent(double addAmount){\r\n\t\tspent +=addAmount;\r\n\t\treturn spent;\r\n\t}", "public void setIncomeTotal(){\n\t\tincomeOutput.setText(\"$\" + getIncomeTotal());\n\t\tnetIncomeOutput.setText(\"$\" + (getIncomeTotal() - getExpensesTotal()));\n\t}", "public void addMoney(final int newMoney) {\n\t\taddBehaviour(\n new OneShotBehaviour() {\n public void action() {\n budget += newMoney;\n System.out.println(newMoney + \" is added to wallet\");\n }\n }\n ); \n refreshGUI();\n }", "public void addInterest() {\n\t\tdouble interest = getBalance() * interestRate / 100;\n\t\tdeposit(interest);\n\t}", "@Override\r\n\tpublic void addTotal() {\n\t\ttotalPrice += myPrice;\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(OBSERVABLE_EVENT_ADD_TOTAL);\r\n\t}", "public double addToBalance(double addAmount){\r\n\t\tbalance +=addAmount;\r\n\t\treturn balance;\r\n\t}", "public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }", "public double countIncome() {\n\n double income = 0;\n for (int i = 0; i < budget.getIncome().size(); i++) {\n income += budget.getIncome().get(i).getAmount();\n }\n\n return income;\n }", "public static void total(double income, double expense){\n double dailyIncome = difference(income / DAYS_IN_MONTH);\n double dailyExpense = difference(expense / DAYS_IN_MONTH);\n \n System.out.println(\"Total income = $\" + income + \" ($\" + dailyIncome + \"/day)\" );\n System.out.println(\"Total expenses = $\" + expense + \" ($\" + dailyExpense + \"/day)\");\n System.out.println();\n }", "public void addToBalance(double depositBalanceAmount) \n\t{\n\t\taccountBalance += depositBalanceAmount;\n\t}", "public void addSavingsBalance(BigDecimal toAdd) {\r\n setSavingsBalance(savingsBalance.add(toAdd));\r\n }", "public void addAmount(int amountOfShares) {\n\t\tthis.amountOfShares += amountOfShares;\n\t}", "void setIncome(double amount);", "public void add_interest ()\r\n {\r\n\r\n balance += balance * (rate + BONUS_RATE);\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }", "public void addCoins(int coins) {\n total_bal += coins;\n }", "public void addBalance(long balance) {\r\n this.balance += balance;\r\n }", "public void addIncludedTax (BigDecimal amt)\r\n\t{\r\n\t\tm_includedTax = m_includedTax.add(amt);\r\n\t}", "public void credit(double amount) {\n this.balance += amount;\n }", "public void addCoins(Integer amount) {\n this.amount = ((this.amount + amount) >= 0) ? this.amount+amount : 0;\n\n if (this.amount == 0) {\n setSpace(1);\n return;\n }\n\n int newSpace = (int) Math.ceil((double) this.amount / 1000);\n\n if (newSpace != getSpace())\n setSpace(newSpace);\n }", "public void addAmountBought(int amountBought) {\n this.amountBought += amountBought;\n }", "public void addBalance(float deposit) {\r\n\t\tthis.balance += deposit;\r\n\t}", "public void add_interest () \r\n {\r\n balance += balance * rate;\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }", "public void addBet(int betAmount) {\n if (playerCash >= betAmount) {\n playerCash -= betAmount;\n playerBet += betAmount;\n }\n }", "@Override\n public void setTotalMoney(BigDecimal inputMoney) {\n totalMoney = inputMoney;\n }", "public void addPurchaseAmount(double amount)\n\t{\n\t\tcustomerPurchase += amount;\n\t}", "public Integer addGold(Integer amount) {\n\t\tgold += amount;\n\t\treturn getGold();\n\t}", "public boolean addMoney(int amt) {\n\t\tif(-amt > money)\n\t\t\treturn false;\n\t\tmoney += amt;\n\t\treturn true;\n\t}", "@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}", "public double getIncomeTotal(){\n\t\tdouble incomeTotal = (((Number)(salaryFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(socialSecurityFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(utilityFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(unemploymentFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(disabilityFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(foodStampsFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(childSupportFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(otherIncomeFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(tanfFTF.getValue())).doubleValue() );\n\t\t\n\t\treturn incomeTotal;\n\t}", "void setIncome(double newIncome) throws BankException {\n throw new BankException(\"This account does not support this feature\");\n }", "public void increase() {\n balance.multiply(1.001);\n }", "public void addJackpot(int amount){\n this.amount += amount;\n }", "public void add(Double addedAmount) {\n }", "public void addMoney(int x)\n\t{\n\t\tsomethingChanged = true;\n\t\tmoney += x;\n\t}", "private static double totalPrice(double price_interest, double dwnpymnt) {\n \treturn price_interest + dwnpymnt;\n }", "public void changeBalance (int amount){\n balance += amount;\n }", "public void interestIncrease(){\r\n for (SavingsAccount account : saving){\r\n if (account == null){\r\n break;\r\n }\r\n account.addInterest();\r\n }\r\n }", "public void addToX(double amount) {\n x += amount;\n }", "public void setAnnualIncome(int value) {\n this.annualIncome = value;\n }", "public void add(Money money2) {\n dollars += money2.getDollars();\n cents += money2.getCents();\n if (cents >= 100) {\n dollars += 1;\n cents -= 100;\n }\n }", "public void add(float amount) {\n Money amountMoney = convertToMoney(amount);\n add(amountMoney);\n }", "public void setNetTotalIncurred(gw.api.financials.CurrencyAmount value);", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "public void addToCoins(int more) {\r\n\t\tint coins = more;\r\n\t\tif (goods.containsKey(Resource.COIN)) {\r\n\t\t\tcoins = goods.get(Resource.COIN);\r\n\t\t\tcoins += more;\r\n\t\t}\r\n\t\tgoods.put(Resource.COIN, coins);\r\n\t}", "public boolean increaseMoney(int amount) {\r\n\t\tthis.money = this.money + amount;\r\n\t\treturn true;\r\n\t}", "public void addHealth(int amt) {\n currentHealth = currentHealth + amt;\n }", "public void increaseInterest() {\n\t\tthis.balance *= (1 + interestRate);\n\t}", "@RequestMapping(value = \"/balance\", method = RequestMethod.PUT)\n @ResponseStatus(HttpStatus.OK)\n @ResponseBody public double addFunds(@RequestBody String moneyIn) {\n return bLogic.addToBalance(Double.parseDouble(moneyIn));\n }", "TotalInvoiceAmountType getTotalInvoiceAmount();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount();", "public void addToBill(int newBill){\n Bill = Bill + newBill;\n }", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount)get_store().add_element_user(AMOUNT$6);\n return target;\n }\n }", "public double givenInvestmentIncomeEstimateIncomeAll(double investmentIncome){\n\t\treturn formatReturnValue((investmentIncome * givenInvestmentIncomeEstimateIncomeGetSlopeAll()) + givenInvestmentIncomeEstimateIncomeGetInterceptAll());\n\t}", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public void AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }", "public void incValue(final float amount) {\r\n\t\tthis.value += amount;\r\n\t}", "public void addCost(int amount) {\n\t\tcost = amount;\n\t}", "public void addPrice(float add) {\n price += add;\n totalPrizeLabel.setText(String.format(\"£%.02f\", price));\n }", "public int depositCash(int cash, int ubalance)\n {\n\n ubalance += cash;\n return ubalance;\n }", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "public void increaseQuantity(int amount) {\n this.currentQuantity += amount;\n }", "public void deposit(double value){\r\n balance += value;\r\n}", "@Override\n public BigDecimal insertMoney(BigDecimal moneyInserted) {\n totalMoney = totalMoney.add(moneyInserted);\n return totalMoney;\n }", "public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}", "public void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}", "public void withdrawMoney(double amount) {\n\t\tbalance = balance - amount;\n\t}", "public void updateIncome(Income income) {\n\t\tSession session=null;\n\t\tTransaction tx=null;\n\t\ttry {\n\t\t\tsession=BuildSessionFactory.getCurrentSession();\n\t\t\ttx=session.beginTransaction();\n\t\t\tincomeDao.update(session, income);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t\tthrow new UserException(e.getMessage());\n\t\t\t}\n\t\t}finally{\n\t\t\tif(session!=null && session.isOpen()){\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "@Override\n public double annualSalary(){\n double bonus = 0.00;\n\n if(currentStockPrice > 50){\n bonus = 30000;\n }\n\n return (super.annualSalary() + bonus);\n }", "private void addToBalance(double aBalance) {\n balance += aBalance;\n String out = String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance);\n balanceLabel.setText(out);\n }", "public void addFuel(double fuelToAdd){\n\n fuelRemaining = fuelRemaining + fuelToAdd;\n }", "public void addTransaction(double amount) {\n this.transactions.add(amount);\n }", "double getTodaysIncomeAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getIncomeAmount(date.getTime(), date.getTime() + DAY_DURATION);\n }", "public void addGold(int goldToAdd)\n\t{\n\t\tgold += goldToAdd;\n\t}", "public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }", "public double getIncome() throws BankException {\n throw new BankException(\"This account does not support this feature\");\n }", "public double givenInvestmentIncomeEstimateIncomeAll(int investmentIncome){\n\t\treturn formatReturnValue((investmentIncome * givenInvestmentIncomeEstimateIncomeGetSlopeAll()) + givenInvestmentIncomeEstimateIncomeGetInterceptAll());\n\t}", "public void calcInterest() {\n\t\tbalance = balance + (interestPct*balance);\n\t\t}", "public synchronized void addToDonations(int amount){\n\t\ttotalDonations = totalDonations + amount;\n\t\t//System.out.println(\"Total Donations: \" +totalDonations);\n\t}", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "public void deposit(BigDecimal deposit){\n balance = balance.add(deposit);\n }", "public void addToUnitPrice(BigDecimal addThisValue) {\r\n if (getItemUnitPrice() == null) {\r\n setItemUnitPrice(BigDecimal.ZERO);\r\n }\r\n BigDecimal addedPrice = getItemUnitPrice().add(addThisValue);\r\n setItemUnitPrice(addedPrice);\r\n }", "public void addBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() + this.getTemp_d_acc2());\n\t\t}", "public int totinc()\n {\n SQLiteDatabase db1 = this.getReadableDatabase();\n String stmt = \"SELECT SUM(AMOUNT) FROM INCOME\";\n Cursor tot = db1.rawQuery(stmt, null);\n if(tot.getCount()==0)\n {\n return 0;\n }\n else {\n tot.moveToFirst();\n int amount = tot.getInt(0);\n tot.close();\n return amount;\n }\n }" ]
[ "0.8475525", "0.7442626", "0.73571014", "0.7347844", "0.7214668", "0.711182", "0.7105215", "0.7069523", "0.7051102", "0.70337224", "0.6963163", "0.6907152", "0.68694276", "0.68125206", "0.6810566", "0.6773706", "0.6771629", "0.6750542", "0.6726385", "0.67188543", "0.67013156", "0.6686244", "0.66862136", "0.6675953", "0.666778", "0.65787184", "0.6565654", "0.6562458", "0.6529951", "0.64944404", "0.647309", "0.6461984", "0.64501786", "0.6429106", "0.63918555", "0.6378812", "0.63662666", "0.6320187", "0.63130164", "0.6311706", "0.62351197", "0.62307274", "0.6219401", "0.6216748", "0.6184307", "0.6161793", "0.61427623", "0.61406314", "0.61314696", "0.61147606", "0.61053663", "0.61040604", "0.61002594", "0.60977954", "0.60863", "0.6084994", "0.608418", "0.6078154", "0.606725", "0.6061573", "0.6048891", "0.60332423", "0.60187083", "0.60162073", "0.60101247", "0.5996497", "0.59925425", "0.5991218", "0.5984675", "0.5981893", "0.5972897", "0.5969465", "0.59617066", "0.59578705", "0.595693", "0.59505844", "0.5947577", "0.5943934", "0.59325325", "0.5925506", "0.59218484", "0.5919292", "0.5918626", "0.59152704", "0.5912942", "0.59098995", "0.59096944", "0.590669", "0.58859265", "0.58840334", "0.58829176", "0.58811575", "0.5874028", "0.5861976", "0.5861059", "0.5860823", "0.585938", "0.5854953", "0.5845354", "0.58403563" ]
0.85055125
0
Adds a principal amount to the current principal total
public void addPrincipalAmount(KualiDecimal principalAmount) { this.principalAmount = this.principalAmount.add(principalAmount); this.totalNumberOfTransactionLines++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getPrincipalAmount() {\n return principalAmount;\n }", "public void setPrincipalAmount(BigDecimal principalAmount) {\n this.principalAmount = principalAmount;\n }", "public double getPrincipalAmount(){return this.principal_amount;}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}", "public void addCash(double added_cash) {\n cash += added_cash;\n }", "void addToAmount(double amount) {\n this.currentAmount += amount;\n }", "public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }", "private void calcTotalAmount(){\n\t totalAmount = 0;\n\t\tfor(FlightTicket ft : tickets)\n\t\t{\n\t\t\ttotalAmount += ft.getClassType().getFee() * getFlight().getFlightCost();\n\t\t}\n\t\tsetTotalAmount(totalAmount);\n\t}", "public void addPurchaseAmount(double amount)\n\t{\n\t\tcustomerPurchase += amount;\n\t}", "public void credit(double amount) {\n this.balance += amount;\n }", "@Override\r\n\tpublic void addTotal() {\n\t\ttotalPrice += myPrice;\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(OBSERVABLE_EVENT_ADD_TOTAL);\r\n\t}", "private void sumaApostado() {\n\t\tapostado.set(apostado.get() + 1.0);\n\t\tdiruField.setText(String.format(\"%.2f\", apostado.get()));\n\t\tactualizaPremio();\n\t}", "public double getTotalAmountOfInterest(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly - principal_amount;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn result;\n\t}", "TotalInvoiceAmountType getTotalInvoiceAmount();", "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "public BigDecimal calculateTotalValue(int i) {\n\t\t\n\t\tthis.time = new BigDecimal(i);\n\t\t\n\t\treturn(principal.add((principal.multiply(rate)).multiply(time)));\n\t}", "public BigDecimal getTotalAmount() {\n return totalAmount;\n }", "public void addMoney(int amount) {\n\t\tcurrentBalance += amount;\n\t}", "public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }", "public BigDecimal getTotalAmt() {\n\t\treturn totalAmt;\n\t}", "public double getPrincipal ()\n {\n return principal;\n }", "public void incrementTotal(){\n total++;\n }", "public double addToBalance(double addAmount){\r\n\t\tbalance +=addAmount;\r\n\t\treturn balance;\r\n\t}", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "private double requestCashPayment(double total) {\n double paid = 0;\n while (paid < total) {\n double entered = ScannerHelper.getDoubleInput(\"Enter amount paid: \", 0);\n paid += entered;\n System.out.printf(\"Accepted $%.2f in cash, Remaining amount to pay: $%.2f\\n\", entered, (total - paid >= 0) ? total - paid : 0);\n }\n return paid;\n }", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public BigDecimal getPREPAID_PRINCIPAL_AMOUNT() {\r\n return PREPAID_PRINCIPAL_AMOUNT;\r\n }", "public double getTotalAmountPaid(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn result;\n\t}", "public void add(Double addedAmount) {\n }", "public int getTotalAmount();", "double getPaidAmount();", "public void addIncomeAmount(KualiDecimal incomeAmount) {\n this.incomeAmount = this.incomeAmount.add(incomeAmount); \n this.totalNumberOfTransactionLines++;\n \n }", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount();", "public Amount getAmountTotal() {\n return this.amountTotal;\n }", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount)get_store().add_element_user(AMOUNT$6);\n return target;\n }\n }", "public static void amountPaid(){\n NewProject.tot_paid = Double.parseDouble(getInput(\"Please enter NEW amount paid to date: \"));\r\n\r\n UpdateData.updatePayment();\r\n updateMenu();\t//Return back to previous menu.\r\n\r\n }", "public void total() {\n\t\t\n\t}", "public void payFees(int fees) {\n feesPaid += fees;\n School.updateTotalMoneyEarned(feesPaid);\n }", "public void addMoney(int amount) {\n\t\tcurrentMoney.addMoney(amount);\n\t}", "@Override\n public BigDecimal calculateMonthlyPayment(double principal, double interestRate, int termYears) {\n // System.out.println(getClass().getName() + \".calculateMonthlyPayment() call chain:\");\n // for (StackTraceElement e : Thread.currentThread().getStackTrace())\n // {\n // if (!e.getClassName().equals(getClass().getName()) &&\n // !e.getMethodName().equals(\"getStackTrace\") &&\n // !(e.getLineNumber() < -1)) {\n // System.out.println(\" L \" + e.getClassName() + \".\" + e.getMethodName() + \"(line: \" + e.getLineNumber() + \")\");\n // }\n // }\n BigDecimal p = new BigDecimal(principal);\n int divisionScale = p.precision() + CURRENCY_DECIMALS;\n BigDecimal r = new BigDecimal(interestRate).divide(ONE_HUNDRED, MathContext.UNLIMITED).divide(TWELVE, divisionScale,\n RoundingMode.HALF_EVEN);\n BigDecimal z = r.add(BigDecimal.ONE);\n BigDecimal tr = new BigDecimal(Math.pow(z.doubleValue(), termYears * 12));\n return p.multiply(tr).multiply(r).divide(tr.subtract(BigDecimal.ONE), divisionScale, RoundingMode.HALF_EVEN)\n .setScale(CURRENCY_DECIMALS, RoundingMode.HALF_EVEN);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewCapital();", "public void addPrice(float add) {\n price += add;\n totalPrizeLabel.setText(String.format(\"£%.02f\", price));\n }", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public double addToSpent(double addAmount){\r\n\t\tspent +=addAmount;\r\n\t\treturn spent;\r\n\t}", "@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }", "public void addMoney(double profit){\n money+=profit;\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "public void add_interest () \r\n {\r\n balance += balance * rate;\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }", "public void setTotal(BigDecimal amount){\r\n\t\ttotal = amount.doubleValue();\r\n\t}", "public double totalFee(){\n return (this.creditHours*this.feePerCreditHour)-this.scholarshipAmount+((this.healthInsurancePerAnnum*4)/12);\n }", "public double getPrecoTotal() {\n\t\treturn this.precoTotal;\n\t}", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewCapitalPayed();", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}", "public void add_interest ()\r\n {\r\n\r\n balance += balance * (rate + BONUS_RATE);\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }", "public BigDecimal getTotalCashPayment() {\n return totalCashPayment;\n }", "private static void updateTotals()\r\n\t{\r\n\t\ttaxAmount = Math.round(subtotalAmount * salesTax / 100.0);\r\n\t\ttotalAmount = subtotalAmount + taxAmount;\r\n\t}", "public static void sumTotalScore() {\n totalScore += addRandomScore();;\n }", "public void addInterest() {\n\t\tdouble interest = getBalance() * interestRate / 100;\n\t\tdeposit(interest);\n\t}", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public BigDecimal getTotal() {\n return total;\n }", "public BigDecimal getTotal() {\n return total;\n }", "@Override\n\tpublic int getAmount() {\n\t\treturn totalAmount;\n\t}", "@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}", "@Then(\"^I should be able to see the Total Amount$\")\n\tpublic void i_should_be_able_to_see_the_Total_Amount() throws Throwable {\n\t bc = pgm.getBookConPage();\n\t\tbc.checkTotal();\n\t}", "public void addCost(int amount) {\n\t\tcost = amount;\n\t}", "public BigDecimal getTotalPremAmt() {\n\t\treturn totalPremAmt;\n\t}", "public void addBalance(long balance) {\r\n this.balance += balance;\r\n }", "public void addBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() + this.getTemp_d_acc2());\n\t\t}", "public void add(float amount) {\n Money amountMoney = convertToMoney(amount);\n add(amountMoney);\n }", "public void setTotalAmount(BigDecimal totalAmount) {\n this.totalAmount = totalAmount;\n }", "public double getTotalPayments(){return this.total;}", "void setTotal(BigDecimal total);", "@Transactional\n\t@Override\n\tpublic Customer addAmount(Long customerId, double amount) {\n\t\t\n\t\tvalidateCustomerId(customerId);\n\t\tCustomer customer = findById(customerId);\n\t\tAccount account=customer.getAccount();\n\t\taccount.setBalance(account.getBalance() + amount);\n\t\taccountRepository.save(account);\n\t\tcustomer.getAccount().setBalance(amount);\n\t\tcustomer =custRepository.save(customer);\n\t\treturn customer;\n\t}", "public void setTotal(int value) {\n this.total = value;\n }", "public void addAmount(int amountOfShares) {\n\t\tthis.amountOfShares += amountOfShares;\n\t}", "public void cambiarABarreraTotal() {\n mRect = new Rect(0, y, centroPantallaX * 2, y + ALTO_PALA);\n }", "public void setTotalPremAmt(BigDecimal totalPremAmt) {\n\t\tthis.totalPremAmt = totalPremAmt;\n\t}", "public double getPreDeductionTotal() {\n\t\tdouble preTotal = 0.0;\n\t\tpreTotal += MathUtil.roundDecimal( getSubTotal() );\n\t\tpreTotal += MathUtil.roundDecimal( getTaxValue() );\n\t\tpreTotal += MathUtil.roundDecimal( getDepositValue() );\n\n\t\t// apply charges\n\t\tfor ( ErpChargeLineModel m : getCharges() ) {\n\t\t\tpreTotal += MathUtil.roundDecimal( m.getTotalAmount() );\n\t\t}\n\t\treturn MathUtil.roundDecimal( preTotal );\n\t}", "public void incrementAmount() { amount++; }", "public abstract double calculateLoanPayment(double principalAmount, double annualPrimeIntRate, int monthsAmort);", "public void setTotal(BigDecimal total) {\n this.total = total;\n }", "public void setTotal(BigDecimal total) {\n this.total = total;\n }", "@WebMethod public float addMoney(Account user,String e, float amount) throws NullParameterException, IncorrectPaymentFormatException, UserNotInDBException, NoPaymentMethodException, PaymentMethodNotFound;", "private void updateTotalPayment(PLUCodedItem pluCodedItem, int quantity) {\n\n\t\tdouble weight = pluCodedItem.getWeight() / 1000;\n\t\t\n\t\tBigDecimal price = ProductDatabases.PLU_PRODUCT_DATABASE.get(pluCodedItem.getPLUCode())\n\t\t\t\t.getPrice().multiply(new BigDecimal(quantity)).multiply(new BigDecimal(weight));\n\t\t\n\n\t\n\t\t\n\t\tprice = price.setScale(2, BigDecimal.ROUND_HALF_UP);\n\t\t\t\t\t\t\n\t\ttotalPayment = totalPayment.add(price);\n\t\t\n\t\tString description = ProductDatabases.PLU_PRODUCT_DATABASE.get(pluCodedItem.getPLUCode()).getDescription();\n\t\t\n\t\tSystem.out.println(\"Subtotal of \" + description + \" is: \" + totalPayment.toString());\n\t\n\t}", "public double getTotal() {\r\n\r\n return getSubtotal() + getTax();\r\n }", "public void addOriginalVatAmount(ArmCurrency originalVatAmount) {\n try {\n this.originalVatAmount = this.originalVatAmount.add(originalVatAmount);\n } catch (CurrencyException ex) {\n System.out.println(\"currency excpetion: \" + ex);\n }\n }", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "private void addToBalance(double aBalance) {\n balance += aBalance;\n String out = String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance);\n balanceLabel.setText(out);\n }", "public void increase() {\n balance.multiply(1.001);\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "public void addToBalance(double depositBalanceAmount) \n\t{\n\t\taccountBalance += depositBalanceAmount;\n\t}", "public BigDecimal getAdditionalAmount() {\n return additionalAmount;\n }", "public long calcRemaining(){\n return getGrandTotal() - getTotalPaid();\n }", "public void addPayment(PaymentMethod m){\n payment.add(m);\n totalPaid += m.getAmount();\n }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}" ]
[ "0.7185583", "0.7048327", "0.68916404", "0.6517957", "0.6206402", "0.6182502", "0.60854596", "0.60798347", "0.60723406", "0.6036096", "0.596293", "0.5905553", "0.5891917", "0.5885229", "0.5877802", "0.5871496", "0.58699834", "0.58529407", "0.58473575", "0.5797404", "0.5795647", "0.5790718", "0.5784545", "0.5744783", "0.5741772", "0.5735206", "0.5731142", "0.5725499", "0.57052743", "0.5690301", "0.565925", "0.56517273", "0.5636083", "0.56194717", "0.56164473", "0.56111926", "0.5601507", "0.5597334", "0.5577151", "0.5577007", "0.55598724", "0.5559729", "0.55569994", "0.5547134", "0.5537007", "0.55163765", "0.55085313", "0.54984224", "0.54948354", "0.54948354", "0.5494397", "0.54866415", "0.54845446", "0.54740894", "0.5469011", "0.546896", "0.5464432", "0.5461738", "0.5451816", "0.542596", "0.5416973", "0.54159933", "0.5413272", "0.54066616", "0.54047316", "0.54047316", "0.5383251", "0.5378297", "0.53695375", "0.53687894", "0.5367318", "0.5366509", "0.53636986", "0.53561395", "0.53533554", "0.53528064", "0.53458774", "0.53332645", "0.5328365", "0.53281415", "0.53235066", "0.5323473", "0.5322121", "0.53200144", "0.53134567", "0.5308884", "0.5308884", "0.5306465", "0.53030753", "0.53030425", "0.5296462", "0.5284629", "0.5263288", "0.5259885", "0.5259596", "0.5258182", "0.5250778", "0.52435285", "0.52412486", "0.5235486" ]
0.8349121
0
TODO Autogenerated method stub
@Override public void onPlayComplete() { mPlayAudioThread = null; destroyPcm(); if (mPlayState != PlayState.MPS_PAUSE) { setPlayState(PlayState.MPS_PREPARE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Use the current date as the default date in the date picker
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final Calendar c = Calendar.getInstance(); int hour = c.get(Calendar.HOUR_OF_DAY); int minute = c.get(Calendar.MINUTE); return new TimePickerDialog(getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_LIGHT,this,hour,minute,true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "public void set_value_to_default() {\n this.selectionListStrike.setText(\"\");\n this.selectionListCal_iv.setText(\"\");\n this.selectionListUlast.setText(\"\");\n String format = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date());\n int parseInt = Integer.parseInt(format.substring(6, 10));\n int parseInt2 = Integer.parseInt(format.substring(3, 5));\n int parseInt3 = Integer.parseInt(format.substring(0, 2));\n this.selectedDate = parseInt + \"-\" + parseInt2 + \"-\" + parseInt3;\n this.selectionListExpiry.setSelectedText(format);\n this.selectionListExpiry.initItems(R.string.set_date, SelectionList.PopTypes.DATE, parseInt, parseInt2, parseInt3);\n if (!this.wtype.equals(\"C\")) {\n this.callputbutton.callOnClick();\n }\n }", "public Date getSelectedDate();", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "abstract Date getDefault();", "public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }", "public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }", "private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "public void setDefaultDateRange() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n Calendar todaysDate = Calendar.getInstance();\n toDateField.setText(dateFormat.format(todaysDate.getTime()));\n\n todaysDate.set(Calendar.DAY_OF_MONTH, 1);\n fromDateField.setText(dateFormat.format(todaysDate.getTime()));\n }", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }", "public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void SetCurrentDate(CalendarWidget kCal) {\n\t\tfor(int i = 0; i < 42; ++i)\n\t\t{\n\t\t\tif(kCal.cell[i].date.getText().toString().length() == 0)\n\t\t\t\tcontinue;\n\t\t\tkCal.checkForCurrentData(kCal.cell[i]);\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }", "public void setPickerDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.getYear(), date.getMonth().getValue(), date.getDayOfMonth()));\n new Dialog().confirmDialog();\n }", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "private DatePicker createDatePicker(boolean veto) {\r\n DatePickerSettings datePickerSettings = new DatePickerSettings();\r\n datePickerSettings.setAllowEmptyDates(false);\r\n datePickerSettings.setAllowKeyboardEditing(false);\r\n DatePicker datePicker = new DatePicker(datePickerSettings);\r\n if (veto) {\r\n // If today is Saturday or Sunday, this sets the default\r\n // to the following Monday\r\n if (LocalDate.now().getDayOfWeek() == DayOfWeek.SATURDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(3));\r\n } else if (LocalDate.now().getDayOfWeek() == DayOfWeek.SUNDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(2));\r\n } else datePicker.setDate(LocalDate.now().plusDays(1));\r\n // Veto Policy to disallow weekends\r\n datePickerSettings.setVetoPolicy(new VetoDates());\r\n } else datePicker.setDate(LocalDate.now());\r\n return datePicker;\r\n }", "private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }", "public Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }", "public Date getSelectDate();", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}", "@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(Addnewuser.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n dob.setText(birthday);\n // Toast.makeText(Addnewuser.this, \"\"+birthday+\"\\n\" +\n // \"\"+date.toString(), Toast.LENGTH_SHORT).show();\n\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n DateFormat df = DateFormat.getDateInstance();\n String formattedDate = df.format(chosenDate);\n\n // Display the chosen date to app interface\n C_birthdate.setText(formattedDate);\n //C_reg_date.setText(formattedDate);\n }", "@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "public Main() {\n initComponents();\n setColor(btn_home);\n String date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n jcurrentDate.setText(date);\n \n }", "@TargetApi(Build.VERSION_CODES.O)\n public LocalDate getTodayDate() {\n LocalDate date;\n date = LocalDate.now();\n return date;\n }", "public static Date today() // should it be void?\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int day = currentDate.get(GregorianCalendar.DATE);\n int month = currentDate.get(GregorianCalendar.MONTH) + 1;\n int year = currentDate.get(GregorianCalendar.YEAR);\n int hour = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minute = currentDate.get(GregorianCalendar.MINUTE);\n return new Date(day, month, year, hour, minute);\n }", "public void setSelectedDate(Date selectedDate);", "public DatePickerDialog(@NonNull Context context) {\n this(context, 0, null, Calendar.getInstance(), -1, -1, -1);\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}", "public static Date getCurrentDate() {\n return new Date();\n }", "public Date getCurrentDate() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n Date currentDate = cal.getTime();\n return currentDate;\n }", "private void setDefaultExpiryDate() {\n int twoWeeks = 14;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, twoWeeks);\n this.expiryDate = calendar.getTime();\n }", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDateField.setText(year + \"/\" + (month + 1) + \"/\" + day);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_eDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }", "public DateChooser(Locale locale) {\r\n this.locale = locale;\r\n currentDate = Calendar.getInstance(locale);\r\n }", "public static Date getCurrentDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tjava.util.Date currentDate = calendar.getTime();\r\n\t\tDate date = new Date(currentDate.getTime());\r\n\t\treturn date;\r\n\t}", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_sDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "public String getCurrentDate() {\n return currentDate;\n }", "public Date getDate(Date defaultVal) {\n return get(ContentType.DateType, defaultVal);\n }", "public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }", "public static String getCurrentDate() {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"); \n LocalDateTime now = LocalDateTime.now(); \n return dtf.format(now);\n }", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "@Override\n public void onClick(View v) {\n\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void promptDate(String date)\n {\n this.date = date;\n }", "public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }", "public void resetDates() {\r\n selectedDate = null;\r\n currentDate = Calendar.getInstance();\r\n }", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "DateFormatPanel() {\r\n\t\tfDateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT);\r\n\t}", "public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "@SuppressLint(\"SetTextI18n\")\n private void setTransactionDate() {\n // used to get the name of the month from the calendar\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(mnths[i], Integer.toString(i));\n } else {\n\n months.put(mnths[i], Integer.toString(i));\n }\n }\n\n // set the date when somehting is selected from the DatePicker\n dateText.setText(months.get(transaction.getMonth()) + '-' + Integer.toString(transaction.getDay()) + '-' + transaction.getYear());\n findViewById(R.id.transaction_date).setOnClickListener(new View.OnClickListener() {\n @Override\n // show DatePicker on field click\n public void onClick(View v) {\n showDatePickerDialog();\n }\n });\n }", "public CurrentDate getCurrentDate() { \n return mCurrentDate; \n }", "public void setDate() {\n this.date = new Date();\n }", "public void resetToDefaults() {\r\n setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n setDateFormatSymbols(new DateFormatSymbols());\r\n setShowControls(true);\r\n setControlsPosition(JCalendar.TOP);\r\n setControlsStep(10);\r\n setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n setWeekDayDisplayType(JCalendar.ONE);\r\n setShowHorizontalLines(false);\r\n setShowVerticalLines(false);\r\n setChangingFirstDayOfWeekAllowed(true);\r\n setTooltipDateFormat(new SimpleDateFormat(\"MMMM dd, yyyy\"));\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\t\t\tedtBasicDOB.setText(day + \"/\" + month + \"/\" + year);\n\t\t}", "@Override\r\n public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\r\n year = selectedYear;\r\n month = selectedMonth;\r\n day = selectedDay;\r\n\r\n // Show selected date\r\n W_date.setText(new StringBuilder().append(month + 1).append(\"-\").append(day)\r\n .append(\"-\").append(year).append(\" \"));\r\n }", "public void onDateSet(DatePicker view, int year, int month, int day){\n TextView tv = getActivity().findViewById(R.id.textBornAdult);\n\n // Create a Date variable/object with user chosen date\n Calendar cal = Calendar.getInstance(SBFApplication.config.locale);\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n // DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, BaseActivity.getInstance().config.locale);\n String formattedDateShow = formatterBornShow.format(chosenDate);\n String formattedDate = formatterTrain.format(chosenDate);\n // formatter.format(date.getDate()\n\n\n // Display the chosen date to app interface\n tv.setText(formattedDateShow);\n dateBorn=formattedDate;\n // MemoryStore.set(getActivity(), \"adultBorn\", formattedDate);\n // MemoryStore.set(getActivity(), \"adultBornShow\", formattedDateShow);\n }", "public void goToToday() {\n goToDate(today());\n }", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "private void setDateButtonActionPerformed(java.awt.event.ActionEvent evt) {\n Date newDate = calendario.getDate();\n if(newDate != null) {\n java.sql.Date date = new java.sql.Date(newDate.getTime());\n control.setDate(date);\n control.crearAlerta(\"Informacion\", \"La fecha \" + date + \" ha sido agregada\" , this);\n } else {\n control.crearAlerta(\"Advertencia\", \"Debe escoger una fecha\", this);\n }\n }", "void showDate()\n {\n Date d=new Date();\n SimpleDateFormat s=new SimpleDateFormat(\"dd-MM-yyyy\");\n date.setText(s.format(d));\n }", "private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n final String selectedDate = year + \"-\" + String.format(\"%02d\", (month+1)) + \"-\" + String.format(\"%02d\", day);\n mDateSession.setText(selectedDate);\n dateFormatted=year+\"\"+String.format(\"%02d\", (month+1))+\"\"+String.format(\"%02d\", day);\n }", "private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }", "private void scanCurrentDay(){\n month.getMyCalendar().setDate(dp.getYear(), dp.getMonth(), dp.getDayOfMonth());\n month.setSelectDay(dp.getDayOfMonth());\n month.invalidate();\n this.dismiss();\n }", "private void setToday() {\r\n\t\tmTime = new Date().getTime();\r\n\t}", "public void setEnterDate(Date value) {\r\n setAttributeInternal(ENTERDATE, value);\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, dayOfMonth, 0, 0, 0);\n Date date = calendar.getTime();\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.getDefault());\n mBinding.date.setText(sdf.format(date));\n }", "private void addDateAction(@NonNull Context context,\n @NonNull List<GuidedAction> actions,\n long currentDate) {\n actions.add(new GuidedDatePickerAction.Builder(context)\n .id(ACTION_DATE_PICKER)\n .date(currentDate)\n .build());\n }", "private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }", "private void show_Date_Picker() {\n final Calendar c = Calendar.getInstance();\r\n mYear = c.get(Calendar.YEAR);\r\n mMonth = c.get(Calendar.MONTH);\r\n mDay = c.get(Calendar.DAY_OF_MONTH);\r\n android.app.DatePickerDialog datePickerDialog = new android.app.DatePickerDialog(this,\r\n new android.app.DatePickerDialog.OnDateSetListener() {\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth)\r\n {\r\n\r\n txt_mfgdate_text.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);\r\n\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.show();\r\n\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }" ]
[ "0.76214397", "0.699961", "0.6914157", "0.6854459", "0.6835101", "0.6804441", "0.67753196", "0.675361", "0.67415375", "0.67328715", "0.6705042", "0.66957843", "0.6685532", "0.66459405", "0.6615341", "0.66143596", "0.66044503", "0.6568539", "0.6533934", "0.6526334", "0.6517874", "0.6486451", "0.64841735", "0.6461702", "0.6454673", "0.64511436", "0.64474046", "0.6435738", "0.6434977", "0.6420611", "0.6416973", "0.64077204", "0.6404895", "0.639942", "0.63836807", "0.63813007", "0.6367729", "0.6335233", "0.63351965", "0.63315666", "0.6328412", "0.62634575", "0.6254164", "0.62479013", "0.6241822", "0.6241644", "0.6237416", "0.6232517", "0.62225574", "0.62162656", "0.62152547", "0.6207776", "0.62041783", "0.61796767", "0.617514", "0.61745185", "0.617385", "0.6171607", "0.6168501", "0.6166298", "0.61660457", "0.6165275", "0.6154793", "0.6152753", "0.6131866", "0.6110786", "0.61037165", "0.6103585", "0.6087337", "0.6080906", "0.6080838", "0.60785526", "0.6076854", "0.60649884", "0.6063732", "0.60628706", "0.60624576", "0.60481894", "0.60466766", "0.6032898", "0.6003972", "0.5992398", "0.59807813", "0.5977033", "0.59755915", "0.5968502", "0.5965756", "0.59621483", "0.59613246", "0.5949382", "0.5939839", "0.5938136", "0.5938026", "0.593529", "0.5932611", "0.59193945", "0.5914858", "0.5913047", "0.5903567", "0.59018874", "0.5898935" ]
0.0
-1
Created by hynra on 15/05/2018.
public interface NetworkService { @GET("top250") Observable<Response<List<Movie>>> getMovies(@Query("start") int start, @Query("count") int count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "private void m50366E() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void init() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo6081a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {\n \n }" ]
[ "0.59510726", "0.5742572", "0.5647937", "0.5645744", "0.55799043", "0.555431", "0.5544653", "0.5536342", "0.55359447", "0.55358297", "0.55358297", "0.5437441", "0.5435716", "0.54314584", "0.5430986", "0.5410629", "0.53987294", "0.53947353", "0.53923994", "0.53861934", "0.5384505", "0.5379333", "0.53752804", "0.53752804", "0.53752804", "0.53752804", "0.53752804", "0.53752804", "0.5366034", "0.53495395", "0.5342157", "0.53414524", "0.5336587", "0.5331117", "0.5322222", "0.53195477", "0.53195477", "0.53195477", "0.53195477", "0.53195477", "0.53129125", "0.5305788", "0.5305635", "0.53015834", "0.5297577", "0.5280182", "0.5280182", "0.52742296", "0.5269841", "0.525649", "0.5250752", "0.52356917", "0.52327985", "0.5231665", "0.52288955", "0.52288955", "0.52288955", "0.5225925", "0.5217529", "0.5204403", "0.5202178", "0.5202178", "0.5202178", "0.5198128", "0.5198128", "0.51978964", "0.51978964", "0.5190079", "0.5189873", "0.518918", "0.5184044", "0.5184044", "0.5184044", "0.5184044", "0.5184044", "0.5184044", "0.5184044", "0.5178698", "0.5166107", "0.5163668", "0.51620704", "0.5161146", "0.5161146", "0.5161146", "0.51590055", "0.5154515", "0.5153305", "0.5145512", "0.5139418", "0.5134672", "0.51286733", "0.51275045", "0.51255804", "0.5119748", "0.511716", "0.511716", "0.5103845", "0.5101019", "0.5101019", "0.5101019", "0.5100828" ]
0.0
-1
Created by yyy on 2017/3/26.
public interface DiscountStrategy { /** * 会员折扣策略 * @param level * @param money * @return */ double getDiscountPrice(int level,double money); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void init() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() {\n\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void init() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private final zzgy zzgb() {\n }", "public void mo6081a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo12930a() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "private TMCourse() {\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void method_4270() {}", "@Override\n public void memoria() {\n \n }", "@Override\n public void initialize() { \n }", "public void mo12628c() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public abstract void mo70713b();" ]
[ "0.60888207", "0.6001171", "0.57682097", "0.5759671", "0.5735404", "0.5732659", "0.5732659", "0.5712114", "0.57017297", "0.5649649", "0.56135", "0.55976206", "0.55934614", "0.5556787", "0.55393696", "0.5531559", "0.55210227", "0.5520156", "0.5515084", "0.5513436", "0.5511363", "0.5509931", "0.55074716", "0.55074716", "0.55074716", "0.55074716", "0.55074716", "0.55009925", "0.5499301", "0.5488172", "0.5485922", "0.548004", "0.5479187", "0.54733706", "0.54649204", "0.54544216", "0.5446087", "0.54430693", "0.54357564", "0.54280823", "0.54253846", "0.5423028", "0.54222083", "0.54222083", "0.54222083", "0.54222083", "0.54222083", "0.54222083", "0.54114187", "0.540951", "0.540951", "0.5398572", "0.53925884", "0.53909457", "0.53909457", "0.53909457", "0.5387499", "0.5387499", "0.53811836", "0.53811836", "0.53773844", "0.53773844", "0.53773844", "0.5370783", "0.53662145", "0.5361051", "0.53546476", "0.5353972", "0.5353972", "0.5353972", "0.5353353", "0.53484935", "0.53484935", "0.53484935", "0.53484935", "0.53484935", "0.53484935", "0.53484935", "0.5340404", "0.53250843", "0.5320626", "0.5315571", "0.5314268", "0.5311144", "0.5310334", "0.53068656", "0.5303036", "0.5301067", "0.52968323", "0.52949524", "0.52937734", "0.52904725", "0.5288971", "0.52857774", "0.52839524", "0.5281919", "0.52811277", "0.52752405", "0.52744675", "0.5271315", "0.52679056" ]
0.0
-1
Creates and returns a new heap containing no elements.
public FibonacciHeap() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Heap() {\r\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\r\n\t}", "public ArrayHeapMinPQ() {\n aHeap.add(null);\n }", "public Heap() {\n this.arr = new ArrayList<>();\n this.isMax = false;\n }", "public ArrayHeap() {\r\n capacity = 10;\r\n length = 0;\r\n heap = makeArrayOfT(capacity);\r\n }", "public BinHeap()\n {\n // allocate heap to hold 100 items\n arr = (T[]) new Comparable[100];\n // set size of heap to 0\n size = 0;\n }", "public ArrayHeapMinPQ() {\n heapArray = new ArrayList<>();\n itemMap = new HashMap<>();\n heapArray.add(null); //alway set index 0 null and heap starts from index 1.\n nextIndex = 1;\n }", "public NodeHeap () {\n // Stupid Java doesn't allow init generic arrays\n heap = new Node[DEFAULT_SIZE];\n size = 0;\n }", "public void makeHeap() {\r\n\t\t//for (int i = (theHeap.size() >> 1) - 1; i >= 0; i--) {\r\n\t\tfor (int i = (theHeap.size() - 1) >> 1; i >= 0; i--) {\r\n\t\t\tsiftDown(i);\r\n\t\t}\r\n\t}", "GenericHeap() { // default\r\n\r\n\t}", "public FibonacciHeap()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Constructor-Constructs a FibonacciHeap object that contains no elements.\r\n {\r\n }", "public LeftistHeap() {\n root = null;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public void clear() {\n // Clear all elements in the heap by assigning heap to a new array of same size\n heap = (T[]) new Comparable[heap.length];\n // Set number of elements equal to 0\n nelems = 0;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic MinHeap() { \r\n\t\theap = new MinHeapNode[1]; \r\n\t }", "public HeapPriorityQueue () \n\t{\n\t\tthis(DEFAULT_SIZE);\n\t}", "public PriorityQueue(int size){\n heap = new Element[size];\n }", "private Heap() { }", "private Heap() { }", "void buildHeap() {\n\tfor(int i=parent(size-1); i>=0; i--) {\n\t percolateDown(i);\n\t}\n }", "public HeapImp() {\n\t\tthis(10000);\n\t}", "void buildHeap() {\n for (int i = parent(size - 1); i >= 0; i--) {\n percolateDown(i);\n }\n }", "public Heap() {\n heap = new Vector<E>();\n }", "public Heap(){\n super();\n }", "public void buildHeap() {\n\t\tthis.makeComplete();\n\t\tfor(int i = this.size/2; i >= 1; i--)\n\t\t\tthis.heapify(i);\n\t}", "public MinHeap() {\n// contents = new HashMap<>();\n contents= new ArrayList<>();\n backwards = new HashMap<>();\n contents = new ArrayList<>();\n contents.add(null);\n\n// contents.put(0, null);\n backwards.put(null, 0);\n// setContents = new HashSet<>();\n }", "MinHeap createMinHeap(int capacity)\r\n\t{\r\n\t MinHeap minHeap = new MinHeap();\r\n\t minHeap.size = 0; // current size is 0\r\n\t minHeap.capacity = capacity;\r\n\t minHeap.array = new MinHeapNode[capacity];\r\n\t return minHeap;\r\n\t}", "public WBLeftistHeapPriorityQueueFIFO() {\n\t\theap = new WBLeftistHeap<>();\n\t}", "public BinHeap(int maxSize)\n {\n // allocate heap to hold maxSize elements\n arr = (T[]) new Comparable[maxSize];\n // set size of heap to 0\n size = 0;\n }", "public BinaryHeap(int maxCapacity) {\n\tpq = new Comparable[maxCapacity];\n\tsize = 0;\n }", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n \treturn queue;\n \t}", "private boolean buildHeap(int numPerRun){ \n\t\tTuple temp;\n\t\tint i = 0;\n\t\twhile(i < numPerRun && (temp = child.getNextTuple()) != null) {\n\t\t\tinternal.offer(temp);\n\t\t\ti++;\n\t\t}\n//\t\tSystem.out.println(\"internal heap has: \" + i + \"tuples\");\n\t\tif(i != numPerRun || i == 0) { // i == 0, heap is empty!\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public Heap(int initialCapacity) {\r\n\t\tthis(initialCapacity, null);\r\n\t}", "public PriorityQueue()\n {\n // initialise instance variables\n heap = new PriorityCustomer[100];\n size = 0;\n }", "public MaxHeap() {\n this.heap = new ArrayList<E>();\n }", "@Override\n public boolean isEmpty() {\n return heapSize == 0;\n }", "public MinHeap() {\n\tdata = new ArrayList<Integer>();\n\t}", "public boolean isEmpty(){\n return myHeap.getLength() == 0;\n }", "public Heap(){\n data = new Vector();\n }", "public BinaryHeap() {\n }", "public BinaryHeap(int maxCapacity) {\n pq = new Comparable[maxCapacity];\n size = 0;\n }", "public PriorityQueue() {\n\t\theap = new ArrayList<Pair<Integer, Integer>>();\n\t\tlocation = new HashMap<Integer, Integer>();\n\t}", "public Heap(int mx) // constructor\n{\nmaxSize = mx;\ncurrentSize = 0;\nheapArray = new Node[maxSize]; // create array\n}", "public Heap(int capacity) {\n\t\t this.capacity = capacity;\n\t\t data = new Integer[this.capacity];\t\n\t\t size = 0;\n\t }", "public MaxHeap() {\n this(64);\n }", "public Heap12()\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = false;\n cap = 5;\n }", "@SuppressWarnings(\"unchecked\")\n public dHeap() {\n // Calls third constructor to initialize a binary max-dHeap with capacity = 6\n this(BINARY, DEFAULT_SIZE, true);\n }", "public boolean isHeap()\n\t{\n\t\treturn true;\n\t}", "public HeapIterator<E> heapIterator(){\n return new HeapIter();\n }", "public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}", "public T deleteMin()\n {\n // to handle empty excpetion\n if(size == 0)\n {\n throw new MyException(\"Heap is empty.\");\n }\n\n // create int hole, set to 0\n int hole = 0;\n // create return value as the item at index hole\n T returnValue = arr[hole];\n // create item to be last item of heap\n T item = arr[size-1];\n // decrement size\n size--;\n // call newHole() method to get newhole\n int newhole = newHole(hole, item);\n while(newhole != -1)\n {\n // set value of arr[newhole] to be arr[hole]\n arr[hole] = arr[newhole];\n // hole is now whatever newhole was\n hole = newhole;\n // update newhole by calling newHole()\n newhole = newHole(hole, item);\n }\n // put item where the hole is in the heap\n arr[hole] = item;\n return returnValue;\n }", "public HeapIntPriorityQueue() {\n elementData = new int[10];\n size = 0;\n }", "public MaxHeap(int capacity) {\n heap = (Item[]) new Comparable[capacity];\n }", "@Test\n\tpublic void testHeap() {\n\t\t// merely a suggestion \n\t}", "public void printHeap() {\n \tSystem.out.println(\"Binomial heap Representation:\");\n \tNode x = this.head;\n if (x != null)\n x.print(0);\n }", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty()\n {\n return heapSize == 0;\n }", "@Test\n\tpublic void testHeapify() {\n\t\tHeap heap = new Heap(testArrayList);\n\t\theap.heapify(0);\n\t\tArrayList<Integer> expected = new ArrayList<>(\n\t\t\t\tArrays.asList(3, 5, 33, 36, 15, 70, 24, 47, 7, 27, 38, 48, 53, 32, 93));\n\t\tassertEquals(expected, heap.getHeapArray());\n\t}", "public VectorHeapb()\n\t// post: constructs a new priority queue\n\t{\n\t\tdata = new Vector<E>();\n\t}", "public static LinkedList createEmpty(){\n return new LinkedList();\n }", "public byte[] removeAllHeap() {\r\n byte[] outputBuff = new byte[8192];\r\n for (int i = 0; i < outputBuff.length && heap.heapsize() > 0; i = i\r\n + 8) {\r\n byte[] next = ((Record)heap.removemin()).getAll();\r\n for (int j = 0; j < next.length; j++) {\r\n outputBuff[i + j] = next[j];\r\n }\r\n }\r\n return outputBuff;\r\n }", "public int heapSize();", "public MaxPriorityQueue() {\n heap = new MaxHeap<>();\n }", "public PriorityQueue(HeapType type) {\n this(-1, type);\n }", "public T poll() {\n if (size == 0)\n return null;\n int s = --size;\n T result = (T) heap[0];\n T backup = (T) heap[s];\n heap[s] = null; // delete\n if (s != 0)\n siftDown(0, backup);\n return result;\n }", "@Test\n public void testIsEmpty() {\n this.queue = new HeapPriorityQueue<Person>(5); \n boolean actualResult = this.queue.isEmpty();\n \n boolean expectedResult = true;\n \n assertEquals(expectedResult, actualResult);\n }", "T[] heapSort() throws EmptyCollectionException {\n \n ArrayHeap<T> temp = new ArrayHeap<>();\n\n //copy array into heap\n for (int i = 0; i < heap.length; i++) {\n if (heap[i] != null) {\n temp.addElement(heap[i]);\n } else {\n break;\n }\n }\n \n //place the sorted elements back into the array\n int c = 0;\n \n \n while (!temp.isEmpty()) {\n T t = temp.removeMin();\n heap[c++] = t;\n \n\n }\n return heap;\n\n }", "void Minheap()\n {\n for(int i= (size-2)/2;i>=0;i--)\n {\n minHeapify(i);\n }\n }", "public HeapSet () {\r\n\t\tsuper ();\r\n\t}", "public HeapPriorityQueue(int size)\n\t{\n\t\tstorage = new Comparable[size + 1];\n\t\tcurrentSize = 0;\n\t}", "public Heap(int maxSize, int[] _dist, int[] _hPos) \r\n {\r\n N = 0;\r\n h = new int[maxSize + 1];\r\n dist = _dist;\r\n hPos = _hPos;\r\n }", "private static <T extends Comparable<T>> void buildHeap(T[] table)\n {\n int n = 1;\n while (n < table.length)\n {\n n++;\n int child = n-1;\n int parent = (child - 1) / 2;\n while (parent >=0 && table[parent].compareTo(table[child]) < 0)\n {\n swap (table, parent, child);\n child = parent;\n parent = (child - 1) / 2;\n }//end while\n }//end while\n }", "public Object[] getHeap() {\n return getHeapArray();\n }", "private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }", "private void grow() {\n int oldCapacity = heap.length;\n // Double size if small; else grow by 50%\n int newCapacity = oldCapacity + ((oldCapacity < 64) ?\n (oldCapacity + 2) :\n (oldCapacity >> 1));\n Object[] newQueue = new Object[newCapacity];\n for (int i = 0; i < heap.length; i++) {\n newQueue[i] = heap[i];\n }\n heap = newQueue;\n }", "public MinHeap(){\r\n nextAvail = 1;\r\n }", "public void initialise() {\n heap = new ArrayList<>(inverseHeap.keySet());\n inverseHeap = null; //null inverse heap to save space\n }", "public Heap(boolean isMin) {\r\n // TODO\r\n }", "public boolean isHeapEmpty() {\n\t\treturn this.head == null;\n\t}", "public Heap12( boolean isMaxHeap)\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = isMaxHeap;\n cap = 5;\n }", "private static void buildHeap(int arr[], int n) \n\t\t{\n\t\t\tfor(int i=n;i>=0;i++)\n\t\t\t\theapify(arr,n,i);\n\t\t\t\n\t\t}", "@Override\n public MaxHeap<T> getBackingHeap() {\n return heap;\n }", "@Override\n public T remove() throws NoSuchElementException {\n if (size() == 0) {\n // throws NoSuchElementException if the heap is empty\n throw new NoSuchElementException();\n }\n\n // Store the root of heap before it is removed\n T root = heap[0];\n // Replace root with last element in the heap\n heap[0] = heap[size() - 1];\n // Decrease number of elements by 1, removes the old root from heap\n nelems--;\n // Trickle down the new root to the appropriate level in the heap\n trickleDown(0);\n\n // Return the old root\n return root;\n }", "public static void buildHeap(int[]data){\n for (int i = data.length-1; i>=0; i--){\n pushDown(data, data.length, i);\n }\n }", "public void makeEmpty() {\n defTable = new DList[sizeBucket];\n for(int i=0; i<sizeBucket; i++) {\n defTable[i] = new DList();\n }\n size = 0;\n }", "public Node remove() {\n Node result = peek();\n\n //new root is last leaf\n heap[1] = heap[size];\n heap[size] = null;\n size--;\n\n //reconstruct heap\n shiftDown();\n\n return result;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic HeapImp(int size){\n\t\tthis.arr = (T[]) new Comparable[size];\n\t}", "private void heapify() {\n for (int i=N/2; i>=1; i--)\n sink(i);\n }", "@Override\n public T removeMax() throws EmptyCollectionException {\n if (count == 0) {\n throw new EmptyCollectionException(\"Heap\");\n }\n T element = heap[0];\n // swap item at top of heap, with last item added\n heap[0] = heap[count - 1];\n // call heapify to see if new root needs to swap down\n heapifyRemove();\n\n count--;\n return element;\n }", "public void makeEmpty();", "public void makeEmpty();", "public Heap getHeap() {\n return minHeap;\n }", "protected ArrayList<E> getHeap() {\n return this.heap;\n }", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "public void makeEmpty() {\n for (int i = 0; i < buckets.length; i++) {\n buckets[i] = new SList();\n }\n size = 0;\n }", "@Override\n public boolean isFull() {\n return heapSize == heap.length;\n }", "Heap(int[] arr){\n\t\tthis.heap = new int[arr.length+1];\n\t\tfor(int i=1; i<arr.length+1; i++) {\n\t\t\tthis.heap[i] = arr[i-1];\n\t\t}\n\t}", "public Heap12( int capacity, boolean isMaxHeap)\n {\n arrayList = new ArrayList<E>(capacity);\n size = 0;\n isMax = isMaxHeap;\n cap = capacity;\n }", "public void makeEmpty() { \r\n for (int i = 0; i < hash_table.length; i++) {\r\n if (hash_table[i] != null) {\r\n hash_table[i] = null;\r\n }\r\n }\r\n size = 0;\r\n }", "public E poll() {\r\n if (isEmpty()) {\r\n return null;\r\n }\r\n //first element of heap\r\n E result = theData.get(0).data;\r\n\r\n if (theData.size() == 1 && theData.get(theData.size()-1).count == 1 ) {\r\n theData.remove(0);\r\n return result;\r\n }\r\n //deleting first element of heap\r\n if (theData.get(0).count == 1 ){\r\n theData.set(0, theData.remove(theData.size() - 1));\r\n\r\n fixHeap(0);\r\n }else{ //first element of heap if exist more than 1, decreases count\r\n theData.get(0).count-=1;\r\n }\r\n //fixes heap\r\n fixHeap(0);\r\n\r\n return result;\r\n }", "public void makeComplete() { \n\t\tthis.size = 0;\n\t\tint index = 1;\n\t\tfor(int i=1; i<this.heap.length; i++) {\n\t\t\tif(this.heap[i] != -1) {\n\t\t\t\tint temp = this.heap[index];\n\t\t\t\tthis.heap[index] = this.heap[i];\n\t\t\t\tthis.heap[i] = temp;\n\t\t\t\tindex++;\n\t\t\t\tthis.size++;\n\t\t\t}\n\t\t}\n\t\tthis.heap[0] = this.size;\n\t}" ]
[ "0.726861", "0.6972327", "0.6849132", "0.68270487", "0.67436624", "0.6741294", "0.6711273", "0.6683963", "0.66614205", "0.6608237", "0.65930784", "0.65197134", "0.6442035", "0.6438385", "0.6404934", "0.63338274", "0.63338274", "0.63166744", "0.62813324", "0.6259972", "0.6258743", "0.62482363", "0.62333226", "0.621541", "0.6211896", "0.6184709", "0.61585456", "0.6150216", "0.6144096", "0.6135621", "0.6128597", "0.61022127", "0.60993916", "0.6073271", "0.6060854", "0.6055693", "0.6016629", "0.6013535", "0.60077417", "0.6006055", "0.59677094", "0.59604836", "0.59332913", "0.5897092", "0.58868885", "0.583279", "0.5820005", "0.5801341", "0.57968247", "0.5771842", "0.5757029", "0.5741533", "0.5734041", "0.5732548", "0.5732548", "0.57298756", "0.5723675", "0.5702967", "0.5696937", "0.5690727", "0.5689585", "0.56889415", "0.5666761", "0.56564474", "0.5650082", "0.56413865", "0.56376", "0.5633365", "0.5632226", "0.56256443", "0.56158084", "0.56093043", "0.55846083", "0.55820876", "0.55766195", "0.55751455", "0.5565091", "0.5560145", "0.55561113", "0.5543525", "0.55400664", "0.5527737", "0.55240834", "0.55223805", "0.5509527", "0.5502612", "0.5502333", "0.5495255", "0.5494478", "0.5494478", "0.5477687", "0.54712844", "0.54636025", "0.54517883", "0.54403996", "0.5437437", "0.5434798", "0.5434406", "0.5431917", "0.5428339" ]
0.56063944
72
Inserts element x, whose key has already been filled in. Time complexity: O(1) Space complexity: O(1)
public Node<T> insert(T x) { Node<T> node = new Node<>(x); if (min == null) { min = node; } else { if (min.leftSibling != null) { node.leftSibling = min; node.rightSibling = min.rightSibling; min.rightSibling = node; node.rightSibling.leftSibling = node; } else { min.leftSibling = node; } if (node.key.compareTo(min.key) < 0) { min = node; } } size++; return node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void insert(Item x) {\n int i = hash(x.sum);\n while (st[i] != null) {\n i++;\n if (i >= st.length) i -= st.length;\n }\n st[i] = x;\n }", "public boolean insert( AnyType x )\n { \n int currentPos = findPos( x );\n \n if( array[ currentPos ] == null )\n ++occupied;\n array[ currentPos ] = new HashEntry<>(x);\n \n theSize++;\n \n // Rehash\n if( occupied > array.length / 2 )\n rehash( );\n \n return true;\n }", "public void insertKey(int x){\r\n\t\tSystem.out.println(\"insertKey: Leaf\");\r\n\t\t//check if input is duplicate entry\r\n\t\tif (this.containsKey(x)){\r\n\t\t\tSystem.out.println(\"Error: Duplicate key entry\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//makes sure inputs positive\r\n\t\tif(x<1){\r\n\t\t\tSystem.out.println(\"Input Error: You cannot input a negative value for a key\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif ((!this.containsKey(x)) && (!this.isFull())){\r\n\t\t\tkeys[counter]=x;\r\n\t\t\tcounter++;\r\n\t\t\tArrays.sort(keys,0,counter);//sort\r\n\t\t}else if (this.isFull()){\r\n\t\t\tArrays.sort(keys);//sort\r\n\t\t\tBPlusTree.splitChild(this, x);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void insert(T x)\r\n\t{\r\n\t\tif (x == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif (!this.contains(x))\r\n\t\t{\r\n\t\t\tint index = myhash(x);\r\n\t\t\t((LinkedArrays<T>) table[index]).add(x);\r\n\t\t\tthis.size++;\r\n\t\t\tif (this.size > this.tableSize/2) rehash();\r\n\t\t}\r\n\t\t//System.out.println( this.toString());\r\n\t}", "public void insert( int x) \r\n {\r\n h[++N] = x;\r\n siftUp( N);\r\n }", "public void insert(Integer x) {\n pq[++N] = x;\n swim(N);\n }", "public void insertSorted(U x){\r\n\t \tif (x==null)\r\n\t \t\tthrow new IllegalArgumentException(\"X cannot be null\");\r\n\t \t\r\n\t \t//performs binary search\r\n\t \tint i = Arrays.binarySearch(array,0, getArraySize(), x);\r\n\t \tif (i < 0){\r\n\t\t \t//binarySearch() returns -(insertion point)-1\r\n\t\t \ti *= -1;\r\n\t\t \ti--;\r\n\t \t}\r\n\t \t//store last element\r\n\t \tint j = numElems;\r\n\t \t//enter loop(condition: > i)\r\n\t \twhile(j>i){\r\n\t \t\t//move element right\r\n\t \t\tarray[j]= array[j-1];//temp;\r\n\t \t\tj--;\r\n\t \t}\r\n\t \t//Set element at i\r\n\t \tarray[i] = x;\r\n\t \tnumElems++;\r\n\t }", "public Entry insert(Object key, Object value) {\n resize();//only if it needs to.\n Entry e = new Entry();\n e.key = key;\n e.value = value;\n int i = compFunction(key.hashCode());\n buckets[i].insertFront(e);\n size++;\n return e;\n }", "public void insert(int x)\n {\n if(isFull())\n {\n throw new NoSuchElementException(\"Overflow Exception\");\n }\n else {\n heap[heapSize++] = x;\n heapifyUp(heapSize-1);\n\n }\n }", "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 }", "private void insertNonFull(BTNode x, DataPair k) {\n int i = x.mCurrentKeyNum-1;\n if (x.mIsLeaf){\n\n // The following loop does two things\n // a) Finds the location of new key to be inserted\n // b) Moves all greater keys to one place ahead\n while (i >= 0 && k.compareTo(x.mKeys[i]) < 0){\n x.mKeys[i+1] = x.mKeys[i];\n i--;\n }\n\n // Insert the new key at found location\n x.mKeys[i+1] = k;\n x.mCurrentKeyNum++;\n }else{\n // Find the child which is going to have the new key\n while (i>= 0 && k.compareTo(x.mKeys[i]) < 0)\n i--;\n\n i++;\n // See if the found child is full\n if (x.mChildren[i].mCurrentKeyNum == 2*t -1){\n splitChild(x,i,x.mChildren[i]);\n if (k.compareTo(x.mKeys[i]) > 0)\n i++;\n }\n insertNonFull(x.mChildren[i], k);\n }\n }", "public void insert(Item x) {\n\t\tint probe = 0;\n\t\tif(amount==table.length) {\n\t\t\tSystem.out.println(\"Linear Insertion Failed: Table is full\");\n\t\t\tSystem.exit(0);\n\t\t\treturn;\n\t\t}\n\t\tint h = hash(x.getDate());\n\t\twhile(table[h]!=null) {\n\t\t\tprobe++;\n\t\t\t\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\ttable[h] = x;\n\t\tamount++;\n\t\tprobesInsert[amount-1] = probe;\n\t\tfixLoadFactor();\n\t\t\n\t\t\n\t\t\n\t}", "boolean insert(long x){\n int i=hash(x);\n //if x already present then dont add\n for (Node j = ht[i]; j != null; j=j.next) {\n if(j.data == x){\n return false;\n }\n }\n Node node = new Node(x);\n node.next = ht[i];\n ht[i] = node;\n return true;\n }", "public abstract boolean insert(Key key);", "public Entry insert(Object key, Object value) {\r\n if (size / num_buckets > 0.75) { //table must be resized if load factor is too great\r\n this.resize();\r\n }\r\n Entry new_entry = new Entry();\r\n new_entry.key = key;\r\n new_entry.value = value;\r\n int comp_hash = compFunction(new_entry.key.hashCode()); //compresses key hash code\r\n if (hash_table[comp_hash] == null) { \r\n hash_table[comp_hash] = new DList();\r\n hash_table[comp_hash].insertFront(new_entry);\r\n } else {\r\n hash_table[comp_hash].insertFront(new_entry);\r\n }\r\n size++;\r\n return new_entry;\r\n }", "public HPTNode<K, V> insert(List<K> key) {\n check(key);\n init();\n int size = key.size();\n HPTNode<K, V> current = root;\n for (int i = 0; i < size; i++) {\n HPTNode<K, V> result = find(current, i, key.get(i), true);\n current.maxDepth = Math.max(current.maxDepth, size - i);\n current = result;\n }\n return current;\n }", "public void insert( Word x )\n {\n WordList whichList = theLists[ myhash( x.key ) ];\n //System.out.println(\"WordList found\");\n \n\t whichList.add( x );\n\t //System.out.println(\"Word \" + x.value + \" successfully added\");\n }", "abstract void insert(K key, V value);", "abstract void insert(K key, V value);", "public Entry insert(Object key, Object value) {\n int hashCode = key.hashCode();\n int index = compFunction(hashCode);\n\n Entry entry = new Entry();\n entry.key = key;\n entry.value = value;\n\n defTable[index].insertFront(entry);\n size++;\n return entry;\n }", "public void insert(DataItem item){\n\t\tint key = item.getKey();\n\t\tint hashVal = hashFunc(key);\n\t\tint stepSize = hashFunc2(key); //get step size until empty cell or -1;\n\t\t\n\t\twhile(hashArray[hashVal] != null &&\n\t\t\t\thashArray[hashVal].getKey() != -1){\n\t\t\thashVal += stepSize; // go to the next cell\n\t\t\thashVal %= arraySize;\t\t\t\t\t//wrap around if necessary\n\t\t}\n\t\thashArray[hashVal] = item;\n\t}", "void insert(K key, V value) {\r\n // binary search\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int indexing;\r\n if (correct_place >= 0) {\r\n indexing = correct_place;\r\n } else {\r\n indexing = -correct_place - 1;\r\n }\r\n\r\n if (correct_place >= 0) {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n } else {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n }\r\n\r\n // to check if the node is overloaded then split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n }", "void insert(int idx, int val);", "public void insert(K key, E val) {\n MapEntry<K, E> newEntry = new MapEntry<K, E>(key, val);\n int b = hash(key);\n for (SLLNode<MapEntry<K,E>> curr = buckets[b]; curr != null; curr = curr.succ) {\n if (key.equals(((MapEntry<K, E>) curr.element).key)) {\n curr.element = newEntry;\n return;\n }\n }\n buckets[b] = new SLLNode<MapEntry<K,E>>(newEntry, buckets[b]);\n }", "public void insertHelper(K key, E element, BSTNode node)\r\n\t{\r\n\t\tif(key.compareTo(node.getKey()) <= -1)\r\n\t\t{\r\n\t\t\tif(node.getLeft() != null)\r\n\t\t\t{\r\n\t\t\t\tinsertHelper(key, element, node.getLeft());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnode.setLeft(new BSTNode<E, K>(key, element, null, null));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(key.compareTo(node.getKey()) >= 1)\r\n\t\t{\r\n\t\t\tif(node.getRight() != null)\r\n\t\t\t{\r\n\t\t\t\tinsertHelper(key, element, node.getRight());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tnode.setRight(new BSTNode<E, K>(key, element, null, null));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n public void insertElement(Object key, Object element) throws InvalidIntegerException {\r\n\r\n // Ensure object is comparable\r\n if (!treeComp.isComparable(key)) {\r\n throw new InvalidIntegerException(\"Invalid key\");\r\n }\r\n\r\n // Prepare Item\r\n Item item = new Item(key, element);\r\n\r\n // Account for empty tree\r\n if (root() == null) {\r\n TFNode root = new TFNode();\r\n root.insertItem(0, item);\r\n setRoot(root);\r\n } else {\r\n // Find where to put item using search()\r\n // Keep calling search until it hits a leaf\r\n TFNode node = search(root(), key);\r\n int index = FFGTE(node, key);\r\n \r\n // Search down to the leafs\r\n while(node.getChild(0) != null){\r\n node = search(node.getChild(index), key);\r\n index = FFGTE(node, key);\r\n }\r\n\r\n // Insert item at the leaf\r\n node.insertItem(index, item);\r\n\r\n // Check overflow\r\n overflow(node);\r\n }\r\n // Increment Size\r\n ++this.size;\r\n }", "private static void insertion(int[] a){\n int size = a.length;\n int key = 0;\n \n for(int i = 1; i < size; i++){\n key = a[i];\n for(int j = i-1; j >= 0 && key < a[j]; j--){\n a[j+1] = a[j];\n a[j] = key;\n }\n }\n }", "public void insert(Key key, Value value) {\r\n root.insert(key,value);\r\n size++;\r\n }", "public void insert(T x);", "public void heapInsert(int key) throws Exception{\n\t\tn = n+1;\n\t\tint[] newArray = new int[n];\n\t\tfor(int i = 0; i< a.length; i++){\n\t\t\tnewArray[i] = a[i];\n\t\t}\n\t\tnewArray[n-1] = Integer.MIN_VALUE;\n\t\tthis.a = newArray;\n\t\theapIncreaseKey(n-1,key);\n\t}", "void insert(int ele){\n if(heapLen>=A.length)\n {\n System.out.println(\"Heap is full\");\n }\n else\n {\n A[heapLen] = 1<< 31;\n heapLen++;\n increaseKey(heapLen, ele);\n \n \n }\n }", "public void insert(int key) {\n\t\t// Make sure that the key is not present.\n\t\tassert (!find(key));\n\t\t\n\t\tif (head == null || key < head.key) {\n\t\t\thead = new IntNode(key, head);\n\t\t\treturn;\n\t\t}\n\n\t\tIntNode curr;\n\t\tfor (curr = head; curr.next != null && curr.next.key < key; curr = curr.next);\n\t\tcurr.next = new IntNode(key, curr.next);\n\t}", "public V insert(K key, V value) {\r\n int index = key.hashCode() % mainTable.length;\r\n\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n // No collision. Create a new linked list at mainTable[index].\r\n mainTable[index] = new LinkedList<Entry<K,V>>();\r\n } else {\r\n totalCollisions++;\r\n }\r\n\r\n int chainLength = 0;\r\n // Search the list at mainTable[index] to find the key.\r\n for (Entry<K,V> nextItem : mainTable[index]) {\r\n chainLength++;\r\n // If the search is successful, replace the old value.\r\n if (nextItem.key.equals(key)) {\r\n // Replace value for this key.\r\n V oldVal = nextItem.value;\r\n nextItem.setValue(value);\r\n addChainLength(chainLength);\r\n return oldVal;\r\n }\r\n }\r\n\r\n addChainLength(chainLength);\r\n // Key is not in the mainTable, add new item.\r\n mainTable[index].addFirst(new Entry<K,V>(key, value));\r\n numberOfKeys++;\r\n if (numberOfKeys > (LOAD_THRESHOLD * mainTable.length)) {\r\n rehash();\r\n }\r\n return null;\r\n }", "public void insert(String key){\n DataPair dp = getDataPair(key);\n insert(dp);\n }", "private void insertAux2(K key, V val) {\n if(root == null) { //empty tree\n X = new Node(key, val);\n root = X;\n return;\n }\n Node temp = root;\n while(true) {\n int cmp = key.compareTo(temp.key);\n if (cmp < 0 && temp.left != null) { //go left\n comparisons += 1;\n temp = temp.left;\n } else if (cmp < 0 && temp.left == null) { //it goes in the next left\n comparisons += 1;\n X = new Node(key, val);\n temp.left = X;\n X.parent = temp;\n break;\n }\n if (cmp > 0 && temp.right != null) { //go right\n comparisons += 1;\n temp = temp.right;\n } else if (cmp > 0 && temp.right == null) { //it goes in the next right\n comparisons += 1;\n X = new Node(key, val);\n temp.right = X;\n X.parent = temp;\n break;\n }\n if(cmp == 0) { //no doubles, overlap pre-existing node\n comparisons += 1;\n temp.key = key;\n temp.val = val;\n X = temp;\n break;\n }\n }\n }", "private static void sortedInsert(Stack<Integer> stack, int x) {\n if (stack.isEmpty() || stack.peek() < x) {\n stack.push(x);\n return;\n }\n int temp = stack.pop();\n sortedInsert(stack, x);\n stack.push(temp);\n }", "public void insert(int x) {\n root = insertHelper(root, x);\n }", "private BinaryNode<AnyType> insert( AnyType x, BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t == null )\r\n\t\t\treturn new BinaryNode<>( x, null, null );\r\n\r\n\t\tint compareResult = x.compareTo( t.element );\r\n\r\n\t\tif( compareResult < 0 )\r\n\t\t\tt.left = insert( x, t.left );\r\n\t\telse if( compareResult > 0 )\r\n\t\t\tt.right = insert( x, t.right );\r\n\t\telse\r\n\t\t\t; // Duplicate; do nothing\r\n\t\treturn t;\r\n\t}", "Object insert(String key, Object param);", "public void binomialHeapInsert(Node x) {\n\t\tBinomialHeap h = new BinomialHeap();\n\t\th.head = x;\n\t\tBinomialHeap hPrime = this.binomialHeapUnion(h);\n\t\tthis.head = hPrime.head;\t\t\n\t}", "public boolean insert(K key, V value) {\n boolean isInserted = false;\n\n if (key != null) {\n if ((double) amountOfEntries / container.length > loadFactor) {\n extendContainer();\n }\n int index = indexFor(key);\n Entry<K, V> entry = container[index];\n if (entry == null) {\n //add new\n Entry newEntry = new Entry(key, value);\n container[index] = newEntry;\n amountOfEntries++;\n } else if (entry.key.equals(key)) {\n //update\n entry.value = value;\n }\n }\n return isInserted;\n }", "public void insert(Integer key){\r\n\t\tint start=this.root;\r\n\t\tint currentPos=avail;\r\n\t\tint temp=-1;\r\n\t\twhile(increaseCompares() && start!=-1) {\r\n\t\t\ttemp=start;\r\n\t\t\tcompares++;\r\n\t\t\tif(increaseCompares() && key<getKey(start)) {\r\n\t\t\t\tstart=getLeft(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstart=getRight(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Tree is empty. New Node is now root of tree\r\n\t\tif(increaseCompares() && temp==-1) {\r\n\t\t\tsetRoot(0);\r\n\t\t\tcompares++;\r\n\t\t\tsetKey(avail, key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\t//Compare values and place newNode either left or right of previous Node\r\n\t\telse if(increaseCompares() && key<getKey(temp)) {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetLeft(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetRight(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t}", "public int insert( Map x ) {\n throw new UnsupportedOperationException(\n \"Method insert( Map ) not supported in MRC\" );\n }", "void insert(int insertSize);", "public void insertKey(int key) {\n\t\t\tif (heap_size == capacity) {\n\t\t\t\tSystem.out.println(\"Overflow : couldn't insert key!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// First insert the new key at the end\n\t\t\theap_size++;\n\t\t\tint i = heap_size - 1;\n\t\t\tharr[i] = key;\n\n\t\t\t// Fix the min heap property if it is violated\n\t\t\twhile (i != 0 && harr[parent(i)] > harr[i]) {\n\t\t\t\tswap(i, parent(i));\n\t\t\t\ti = parent(i);\n\t\t\t}\n\t\t}", "@Override\n public void insert(K key) {\n try {\n this.rootNode = insertNode(this.rootNode, key);\n } catch (DuplicateKeyException e) {\n System.out.println(e.getMessage());\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }", "public TreeNode insert(TreeNode root, int key) {\n if (root == null) {\n root = new TreeNode(key);\n return root;\n }\n TreeNode cur = root, par = root;\n while (cur != null) {\n par = cur;\n if (cur.key == key) {\n return root;\n }\n if (key < cur.key) {\n cur = cur.left;\n } else {\n cur = cur.right;\n }\n }\n // this is when cur is null (out of the while)\n if (key < par.key) {\n par.left = new TreeNode(key);\n } else {\n par.right = new TreeNode(key);\n }\n \n return root;\n }", "@Override\n public void insert(Comparable k, Object v) {\n\n if (k == null) { // Check for null key\n throw new IllegalArgumentException(\"null key\");\n }\n\n // If size 0, just add pair\n else if (this.size == 0) {\n ls[this.size] = new Pair(k, v);\n this.size++;\n return;\n }\n // If # of items reached capacity\n else if (this.CAPACITY == this.size) {\n Pair[] newLs = new Pair[this.CAPACITY + 100];\n\n // Deep copy of previous Pair[]\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n newLs[i] = this.ls[i]; // Change this.ls value\n }\n this.ls = newLs; // Change field to new Pair[]\n this.ls[size] = new Pair(k, v); // Add the Pair\n this.CAPACITY += 100; // Increase capacity\n size++;\n return;\n\n } else {\n // Loop to check for duplicate exception\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n }\n\n // Add pair to array\n ls[this.size] = new Pair(k, v);\n this.size++;\n }\n\n }", "public static void insert(int xact, int key, int value) throws Exception {\n\t System.out.println(\"T(\"+(xact+1)+\"):I(\"+(key)+\",\"+value+\")\");\n\t if (mData.containsKey(key)) {\n\t\t System.out.println(\"T(\"+(xact+1)+\"):ROLLBACK\");\n\t\t throw new Exception(\"KEY ALREADY EXISTS IN T(\"+(xact+1)+\"):I(\"+key+\")\");\n\t }\n\t Version v = new Version(xact, xact, value);\n\t LinkedList<Version> m = new LinkedList<Version>();\n\t m.add(v);\n\t mData.put(key, m);\n\n }", "public Entry<K, V> insert(K key, V value) {\r\n try {\r\n int hash = key.hashCode();\r\n Entry<K, V> entry = new Entry<K, V>();\r\n entry.key = key;\r\n entry.value = value;\r\n table[compFunction(hash)].insertFront(entry);\r\n return entry;\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n return null;\r\n }\r\n }", "public void insert( AnyType x )\r\n\t{\r\n\t\troot = insert( x, root );\r\n\t}", "void MinInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] > arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }", "public void insert(T x, T y)\n\t{\n\t\tadd(x, y);\n\t}", "public void insert( int key, Integer data ){\n if (data == null) data = key;\n\n int index = computeHash(key);\n Node head = list[index];\n while( head != null ){ // Collision : key already in hashtable, put it in the linked list\n \n if(compare(head.key, key) == 0){ // Update : In case key is already present in list : exit\n head.data = data;\n return;\n }\n head = head.next; // put it at the end of the list\n }\n\n // No collision, new key; list.get(index) = null because that node at that index is not present\n list[index] = new Node(key, data, list[index]);\n }", "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}", "private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }", "static void sortedInsert(Stack<Integer> s, int x)\n\t{\n\t\t// Base case: Either stack is empty or newly\n\t\t// inserted item is greater than top (more than all\n\t\t// existing)\n\t\tif (s.isEmpty() || x > s.peek()) \n\t\t{\n\t\t\ts.push(x);\n\t\t\treturn;\n\t\t}\n\t\t// If top is greater, remove the top item and recur\n\t\tint temp = s.pop();\n\t\tsortedInsert(s, x);\n\n\t\t// Put back the top item removed earlier\n\t\ts.push(temp);\n\t}", "public void insert(int key,int value){\n\t\tif(map.containsKey(key)){\n\t\t\tNode n = map.get(key);\n\t\t\tdeleteNode(n);\n\t\t\taddToHead(n);\n\t\t} else {\n\t\t\tif(count > capacity){\n\t\t\t\tint key1 = tail.key;\n\t\t\t\tmap.remove(key1);\n\t\t\t\tdeleteTail();\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t} else {\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t}\n\t\t}\n\t}", "static TreeNode insert(TreeNode node, int key) \n\t{ \n\t // if tree is empty return new node \n\t if (node == null) \n\t return newNode(key); \n\t \n\t // if key is less then or grater then \n\t // node value then recur down the tree \n\t if (key < node.key) \n\t node.left = insert(node.left, key); \n\t else if (key > node.key) \n\t node.right = insert(node.right, key); \n\t \n\t // return the (unchanged) node pointer \n\t return node; \n\t}", "protected BinaryNode<AnyType> insert(AnyType x, BinaryNode<AnyType> t) {\n\t\tif (t == null)\n\t\t\tt = new BinaryNode<AnyType>(x);\n\t\telse if (x.compareTo(t.element) < 0)\n\t\t\tt.left = insert(x, t.left);\n\t\telse if (x.compareTo(t.element) > 0)\n\t\t\tt.right = insert(x, t.right);\n\t\telse\n\t\t\tt.duplicate.add(new BinaryNode(x)); // Duplicate\n\t\treturn t;\n\t}", "public static void insertHeap(int x)\n {\n if(s.isEmpty()){\n s.add(x);\n }\n else if(x>s.peek()){\n g.add(x);\n }\n else if(g.isEmpty()){\n g.add(s.poll());\n s.add(x);\n }\n else {\n s.add(x);\n }\n balanceHeaps();\n \n }", "public void insert(T element);", "protected int insertionIndex(int key) {\r\n\t\tint hash = key & 0x7fffffff;\r\n\t\tint index = this.hashFunc1(hash) * FREE.length;\r\n\t\t// int stepSize = hashFunc2(hash);\r\n\t\tbyte[] cur = new byte[4];\r\n\t\tkeys.position(index);\r\n\t\tkeys.get(cur);\r\n int storehash=(cur[0] << 24)+ ((cur[1] & 0xFF) << 16)+ ((cur[2] & 0xFF) << 8)+ (cur[3] & 0xFF);\r\n\r\n\t\tif (Arrays.equals(cur, FREE)) {\r\n\t\t\treturn index; // empty, all done\r\n\t\t} else if (storehash==key) {\r\n\t\t\treturn -index - 1; // already stored\r\n\t\t} else { // already FULL or REMOVED, must probe\r\n\t\t\t// compute the double hash\r\n\t\t\tfinal int probe = (1 + (hash % (size - 2))) * FREE.length;\r\n\r\n\t\t\t// if the slot we landed on is FULL (but not removed), probe\r\n\t\t\t// until we find an empty slot, a REMOVED slot, or an element\r\n\t\t\t// equal to the one we are trying to insert.\r\n\t\t\t// finding an empty slot means that the value is not present\r\n\t\t\t// and that we should use that slot as the insertion point;\r\n\t\t\t// finding a REMOVED slot means that we need to keep searching,\r\n\t\t\t// however we want to remember the offset of that REMOVED slot\r\n\t\t\t// so we can reuse it in case a \"new\" insertion (i.e. not an update)\r\n\t\t\t// is possible.\r\n\t\t\t// finding a matching value means that we've found that our desired\r\n\t\t\t// key is already in the table\r\n\t\t\tif (!Arrays.equals(cur, REMOVED)) {\r\n\t\t\t\t// starting at the natural offset, probe until we find an\r\n\t\t\t\t// offset that isn't full.\r\n\t\t\t\tdo {\r\n\t\t\t\t\tindex += (probe); // add the step\r\n\t\t\t\t\tindex %= (size * FREE.length); // for wraparound\r\n\t\t\t\t\tcur = new byte[FREE.length];\r\n\t\t\t\t\tkeys.position(index);\r\n\t\t\t\t\tkeys.get(cur);\r\n\t\t\t\t} while (!Arrays.equals(cur, FREE)\r\n\t\t\t\t\t\t&& !Arrays.equals(cur, REMOVED)\r\n\t\t\t\t\t\t&& storehash!=hash);\r\n\t\t\t}\r\n\r\n\t\t\t// if the index we found was removed: continue probing until we\r\n\t\t\t// locate a free location or an element which equal()s the\r\n\t\t\t// one we have.\r\n\t\t\tif (Arrays.equals(cur, REMOVED)) {\r\n\t\t\t\tint firstRemoved = index;\r\n\t\t\t\twhile (!Arrays.equals(cur, FREE)\r\n\t\t\t\t\t\t&& (Arrays.equals(cur, REMOVED) || storehash!=hash)) {\r\n\t\t\t\t\tindex += (probe); // add the step\r\n\t\t\t\t\tindex %= (size * FREE.length); // for wraparound\r\n\t\t\t\t\tcur = new byte[FREE.length];\r\n\t\t\t\t\tkeys.position(index);\r\n\t\t\t\t\tkeys.get(cur);\r\n\t\t\t\t}\r\n\t\t\t\t// NOTE: cur cannot == REMOVED in this block\r\n\t\t\t\treturn (!Arrays.equals(cur, FREE)) ? -index - 1 : firstRemoved;\r\n\t\t\t}\r\n\t\t\t// if it's full, the key is already stored\r\n\t\t\t// NOTE: cur cannot equal REMOVE here (would have retuned already\r\n\t\t\t// (see above)\r\n\t\t\treturn storehash!=hash ? -index - 1 : index;\r\n\t\t}\r\n\t}", "public void insert(String key, String value) throws KeyCollisionException{\n if( lookup(key) != null){\n throw new KeyCollisionException(\"cannot insert dublicate key\");\n }\n else{\n if( front == null){\n Node N = new Node(key,value);\n front = N;\n numItems++;\n }\n else{\n Node N = front;\n while( N != null){\n if(N.next == null){\n break;\n }\n N = N.next;\n }\n N.next = new Node(key,value);\n numItems++;\n }\n }\n }", "private BSTNode<K, V> insertHelper(BSTNode<K, V> root, K key, V value)\r\n throws DuplicateKeyException {\r\n if (root == null) {\r\n root = new BSTNode<K, V>(key, value);\r\n numKeys++;\r\n return root;\r\n }\r\n if (key.compareTo(root.key) == 0) { // Find duplicate key, throw exception\r\n throw new DuplicateKeyException();\r\n } else if (key.compareTo(root.key) > 0) { // Goes to right if key is larger\r\n root.right = insertHelper(root.right, key, value);\r\n } else { // Goes to left if key is smaller\r\n root.left = insertHelper(root.left, key, value);\r\n }\r\n return root;\r\n }", "public void insert(int key)\n {\n root = insertRec(root,key);\n }", "public void insert (k key, v val) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\t\n\t\t\tif (key.equals(curr.getKey()) && val.equals(curr.getValue())) { \n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Pair \" + key + \" \" + val + \" already exists\");\n\t\t\t\treturn;\t\t\t\t\t\t\t\t// if both key and value already exist, terminate\n\t\t\t}\n\t\t\telse if (curr.getNext() == null) {\t\t// if reached last element, append the new node to the end\n\t\t\t\tcurr.setNext(key, val);\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tcurr = curr.getNext();\t\t\t\t\t// propagate on the SLL until key and value matched or end of SLL reached\n\t\t}\n\t\tbuckets[b] = new Node<k,v>(key, val, null);\t// if there are no nodes at the hashed index, place the new node there\n\t}", "private BSTnode<K> insert(BSTnode<K> n, K key) throws DuplicateException {\n\t\tif (n == null) {// insert key as new node\n\t\t\tnumItems++;\n\t\t\tn = new BSTnode<K>(key);\n\t\t\treturn n;\n\t\t} else if (n.getKey().equals(key)) {\n\t\t\tthrow new DuplicateException();// no duplicates\n\t\t} else if (key.compareTo(n.getKey()) < 0) {\n\t\t\t// add key to the left subtree\n\t\t\tn.setLeft(insert(n.getLeft(), key));\n\t\t\treturn n;\n\t\t} else {\n\t\t\t// add key to the right subtree\n\t\t\tn.setRight(insert(n.getRight(), key));\n\t\t\treturn n;\n\t\t}\n\t}", "public void add(PuzzleBoard x) {\r\n // double size of array if necessary\r\n if (N == pq.length - 1) resize(2 * pq.length);\r\n\r\n // add x, and percolate it up to maintain heap invariant\r\n pq[++N] = x;\r\n swim(N);\r\n assert isMinHeap();\r\n }", "public static void insert(TreeNode root, int key) {\n\t\tcounter++;\r\n\r\n\t\t// key less than the value of root.\r\n\t\tif (key < root.item) {\r\n\t\t\tif (root.left == null) {\r\n\t\t\t\tTreeNode node = new TreeNode(null, key, null);\r\n\t\t\t\troot.left = node;\r\n\t\t\t} else {\r\n\t\t\t\tinsert(root.left, key);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (root.right == null) {\r\n\t\t\t\tTreeNode node = new TreeNode(null, key, null);\r\n\t\t\t\troot.right = node;\r\n\t\t\t} else {\r\n\t\t\t\tinsert(root.right, key);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static Node insert(Node node, int key) {\n\n // If the tree is empty, return a new node\n if (node == null)\n return newNode(key);\n\n // Otherwise, recur down the tree\n if (key < node.key)\n node.left = insert(node.left, key);\n else\n node.right = insert(node.right, key);\n\n // Return the (unchanged) node pointer\n return node;\n }", "private Node insert(Node x, int time, int req_index) {\n\t\tif (x == null) \n\t\t\treturn new Node(time, req_index);\n\t\tif (time < x.getTime()) {\n\t\t\tx.setLeft(insert(x.getLeft(), time, req_index));\n\t\t}\n\t\telse {\n\t\t\tx.setRight(insert(x.getRight(), time, req_index));\n\t\t}\n\t\treturn x;\n\t}", "public void insertKey(int k)\n\t{\n\t if (size == maxsize)\n\t {\n\t System.out.println(\"Overflow: Could not insertKey\");\n\t return;\n\t }\n\t \n\t // First insert the new key at the end\n\t size++;\n\t int i = size - 1;\n\t Heap[i] = k;\n\t \n\t // Fix the min heap property if it is violated\n\t while (i != 0 && Heap[parent(i)] < Heap[i])\n\t {\n\t swap(i, parent(i));\n\t i = parent(i);\n\t }\n\t}", "@Test\n\tpublic void testInsert() {\n\t\tHeap heap = new Heap(testArrayList.length + 1);\n\t\tdouble[] expected = new double[] { 1, 3, 24, 5, 15, 48, 32, 7, 36, 27, 38, 70, 53, 33, 93, 47 };\n\t\theap.build(testArrayList);\n\t\theap.insert(1);\n\t\tassertEquals(16, heap.getSize());\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t}", "public void insert(KeyedItem newItem);", "public void bstInsert(E x) {\n\n root = bstInsert(x, root, null);\n }", "public boolean add(Object x)\n {\n if (loadFactor() > 1)\n {\n resize(nearestPrime(2 * buckets.length - 1));\n }\n\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n while (current != null)\n {\n if (current.data.equals(x))\n {\n return false; // Already in the set\n }\n current = current.next;\n }\n Node newNode = new Node();\n newNode.data = x;\n newNode.next = buckets[h];\n buckets[h] = newNode;\n currentSize++;\n return true;\n }", "public void insert(int X)\n {\n root = insert(X, root);\n }", "void insert(T value, int position);", "public boolean insert(A x){ \n return false; \n }", "public void insert(String key, String val){\n\t\touterloop:\n\t\tfor(int i = 1; i < queueArray.length; i++){\n\t\t\tif(queueArray[i][0] == null){\n\t\t\t\tqueueArray[i][0] = key;\n\t\t\t\tqueueArray[i][1] = val;\n\t\t\t\tif(i != 1){\n\t\t\t\t\tcompareLeaf(i);\n\t\t\t\t}\n\t\t\t\tbreak outerloop;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic BSTNode insert(int key, Object value) throws OperationNotPermitted {\n\n\t\tBSTNode p = searchByKey(key);\n\t\tBSTNode n;\n\n\t\tif (p == null) {\n\t\t\t// tree is empty, create new root\n\n\t\t\tn = createNode(key, value);\n\t\t\t_root = n;\n\t\t} else if (p.key == key) {\n\t\t\t// key exists, update payload\n\n\t\t\tn = p;\n\t\t\tn.value = value;\n\t\t} else {\n\t\t\t// key does not exist\n\n\t\t\tn = createNode(key, value);\n\t\t\tn.parent = p;\n\n\t\t\tif (p != null) {\n\t\t\t\tif (key < p.key) {\n\t\t\t\t\tp.left = n;\n\t\t\t\t} else {\n\t\t\t\t\tp.right = n;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tupdateSubtreeSizePath(n.parent);\n\t\t}\n\n\t\treturn n;\n\t}", "public void insert(int index, T element);", "public void insert(int i, K k, P p) {\n\t\tfor (int j = keyCount; j > i; j--) {\n\t\t\tkeys[j] = keys[j - 1];\n\t\t\tpointers[j] = pointers[j - 1];\n\t\t}\n\t\tkeys[i] = k;\n\t\tpointers[i] = p;\n\t\tkeyCount++;\n\t}", "protected Object putElement(int key, Object value) {\n int index = key % capacity;\n if (index < 0) {\n index = -index;\n }\n if (map[index] == null) {\n //.... This is a new key since no bucket exists\n objectCounter++;\n map[index] = create(key, value);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n //.... A bucket already exists for this index: check whether \n // we already have a mapping for this key\n MapElement me = map[index];\n while (true) {\n if (me.getKey() == key) {\n return me.atInsert(value);\n } else {\n if (me.getNext() == null) {\n // No next element: so we have no mapping for this key\n objectCounter++;\n MapElement result = create(key, value);\n me.setNext(result);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n me = me.getNext();\n }\n }\n }\n }\n }", "public int insert(int newKey){\n int i=n-1;\n int x =0;\n if (isLeaf){\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i]) \n return -1;//duplicate return withoiut doinganything\n key[i+1] = key[i];\n i--;\n \n }\n if(x>=0){\n n++;\n key[i+1]=newKey;\n }\n }\n else{\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i])\n return -1;// find duplictte return without doing anithing \n \n else\n i--;\n }\n if(x>=0){\n \n int insertChild = i+1; // Subtree where new key must be inserted\n if (c[insertChild].isFull()){\n x++;// one more node.\n // The root of the subtree where new key will be inserted has to be split\n // We promote the mediand of that root to the current node and\n // update keys and references accordingly\n \n //System.out.println(\"This is the full node we're going to break \");// Debugging code\n //c[insertChild].printNodes();\n //System.out.println(\"going to promote \" + c[insertChild].key[T-1]);\n n++;\n c[n]=c[n-1];\n for(int j = n-1;j>insertChild;j--){\n c[j] =c[j-1];\n key[j] = key[j-1];\n }\n key[insertChild]= c[insertChild].key[T-1];\n c[insertChild].n = T-1;\n \n BTreeNode newNode = new BTreeNode(T);\n for(int k=0;k<T-1;k++){\n newNode.c[k] = c[insertChild].c[k+T];\n newNode.key[k] = c[insertChild].key[k+T];\n }\n \n newNode.c[T-1] = c[insertChild].c[2*T-1];\n newNode.n=T-1;\n newNode.isLeaf = c[insertChild].isLeaf;\n c[insertChild+1]=newNode;\n \n //System.out.println(\"This is the left side \");\n //c[insertChild].printNodes(); \n //System.out.println(\"This is the right side \");\n //c[insertChild+1].printNodes();\n //c[insertChild+1].printNodes();\n \n if (newKey <key[insertChild]){\n c[insertChild].insert(newKey); }\n else{\n c[insertChild+1].insert(newKey); }\n }\n else\n c[insertChild].insert(newKey);\n }\n \n \n }\n return x ;\n }", "static void insert(Node nd, int key)\n\t{\n\t\tif (nd == null) {\n\t\t\troot = new Node(key);\n\t\t\treturn;\n\t\t}\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tq.add(nd);\n\n\t\t// Do level order traversal until we find an empty place\n\t\twhile (!q.isEmpty()) {\n\t\t\tnd = q.remove();\n\n\t\t\tif (nd.left == null) {\n\t\t\t\tnd.left = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.left);\n\n\t\t\tif (nd.right == null) {\n\t\t\t\tnd.right = new Node(key);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tq.add(nd.right);\n\t\t}\n\t}", "public void insert(K k, V v) {\n if (k == null) {\n throw new IllegalArgumentException();\n }\n Item<K,V> i = new Item<K,V>(k, v);\n size += 1;\n if (root == null) {\n root = i;\n return;\n }\n\n Item<K,V> x = root;\n Item<K,V> p = root;\n while (true) {\n if (x == null) {\n break;\n }\n p = x;\n // less than\n if (x.getK().compareTo(k) <= 0){ \n x = x.getR();\n } else {\n x = x.getL();\n }\n }\n i.setP(p);\n if (p.getK().compareTo(k) <= 0){\n p.setR(i);\n } else {\n p.setL(i);\n }\n }", "void insert(EntryPair entry);", "void insert(Object value, int position);", "public void insert(T t) { \n int bucket = hash(t);\n Table.get(bucket).addLast(t);\n numElements++;\n }", "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 }", "public void insert(AnyType x) {\n root = merge(new LeftistNode<>(x), root);\n }", "private void insert(Node<E> x) {\n\t\tlast = last.next = x;\n\t}", "public boolean add(T x) {\n\n\n if (this.size == pq.length) {\n this.resize();\n }\n pq[this.size] = x;\n percolateUp(this.size);\n this.size++;\n System.out.println(\"size is \"+size);\n return true;\n }", "private void insertChild(K key, Node child) {\r\n\r\n // binary search for correct index\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int child_indexing;\r\n\r\n // to check if the key is already in there and get the correct index after using collections.binarySearch\r\n if (correct_place >= 0) {\r\n child_indexing = correct_place + 1;\r\n } else {\r\n child_indexing = -correct_place - 1;\r\n }\r\n\r\n if (correct_place >= 0) {\r\n keys.add(child_indexing, key);\r\n children.add(child_indexing, child);\r\n } else {\r\n keys.add(child_indexing, key);\r\n children.add(child_indexing + 1, child);\r\n }\r\n }", "public boolean insert(int val) {\n if (!map.containsKey(val)) {\n map.put(val, lst.size());\n lst.add(val);\n return true;\n }\n return false;\n }", "public void insert(T x)\n\t{\n\t\t//if the input is null, returns null\n\t\tif(x == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//if size == 0, inputs in the first index of the tree\n\t\tif(size == 0)\n\t\t{\n\t\t\tarray[0] = x;\n\t\t\tsize++;\n\t\t\treturn;\n\t\t}\n\n\t\t//declares variable and adds the input to the last index\n\t\tint index = size;\n\t\tarray[index] = x;\n\t\tint parent = (index-1)/2;\n\t\tint gParent = (index-3)/4;\n\t\t//gets the present level after input\n\t\tint level = getLevel(index+1);\n\t\t//if size < 3; does special input\n\t\tif(size <= 3)\n\t\t{\n\t\t\t//checks if the element at 0 is greater than the new one, if yes, swaps\n\t\t\tif(object.compare(array[0], array[index]) > 0)\n\t\t\t{\n\t\t\t\tT temp = array[0];\n\t\t\t\tarray[0] = array[index];\n\t\t\t\tarray[index] = temp;\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//else does nothing. \n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t//checks if level is even\n\t\tif(level % 2 == 0)\n\t\t{\n\t\t\t//compares it to its parent and carries out the right action. \n\t\t\tif(object.compare(array[index], array[parent]) == 0)\n\t\t\t{\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[parent]) > 0)\n\t\t\t{\n\n\t\t\t\tT temp = array[parent];\n\t\t\t\tarray[parent] = array[index];\n\t\t\t\tarray[index] = temp;\n\n\n\t\t\t\tint y = parent;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\n\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t}\n\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t\telse if(object.compare(array[index], array[parent]) < 0)\n\t\t\t{\n\t\t\t\tif(object.compare(array[index], array[gParent]) >= 0)\n\t\t\t\t{\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//switch till x > grandparent\n\t\t\t\t\tint y = index;\n\t\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) < 0 && y >2)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t\t}\n\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(object.compare(array[index], array[parent]) == 0)\n\t\t\t{\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[parent]) > 0)\n\t\t\t{\n\t\t\t\tif(object.compare(array[index], array[gParent]) <= 0)\n\t\t\t\t{\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//switch till x < grandparent\n\t\t\t\t\tint y = index;\n\t\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y >2)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t\t}\n\n\t\t\t\t\tsize++;\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[parent]) < 0)\n\t\t\t{\n\t\t\t\tT temp = array[parent];\n\t\t\t\tarray[parent] = array[index];\n\t\t\t\tarray[index] = temp;\n\n\t\t\t\tint y = parent;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) < 0 && y >2)\n\t\t\t\t{\n\n\t\t\t\t\tT memp = array[(y -3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = memp;\n\n\t\t\t\t\ty = (y -3)/4;\n\t\t\t\t}\n\n\t\t\t\tsize++;\n\t\t\t\treturn;\n\n\t\t\t}\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private Node insertHelperSize1(Key key, Value value) {\r\n Node tmp;\r\n if(key.compareTo(keys[0]) < 0) { // add key:value before contents\r\n tmp = children[0].insert(key,value);\r\n if(tmp != children[0]) { // merge interior node that bubbled up\r\n InteriorNode merge = (InteriorNode)tmp;\r\n setKeyValuePairs(merge.keys[0],merge.values[0],keys[0],values[0]);\r\n setChildren(merge.children[0],merge.children[1],children[1]);\r\n }\r\n } else { // add key:value after contents\r\n tmp = children[1].insert(key,value);\r\n if(tmp != children[1]) { // merge interior node that bubbled up\r\n InteriorNode merge = (InteriorNode)tmp;\r\n setKeyValuePairs(keys[0],values[0],merge.keys[0],merge.values[0]);\r\n setChildren(children[0],merge.children[0],merge.children[1]);\r\n }\r\n }\r\n return this;\r\n }", "@Override\n\tpublic void insert(K key) throws DuplicateException {\n\t\tif (key != null) {// bad key handling\n\t\t\tif (isEmpty()) {// if is empty, the root will be the inserted node\n\t\t\t\troot = insert(root, key);\n\t\t\t} else {\n\t\t\t\tinsert(root, key);// if not empty just insert\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.7696856", "0.73318255", "0.72938895", "0.7262815", "0.71329695", "0.6982996", "0.6911615", "0.6738825", "0.6725579", "0.669492", "0.6675455", "0.65811294", "0.6580578", "0.6454282", "0.64341205", "0.6421728", "0.64173377", "0.6412201", "0.6412201", "0.6398625", "0.6378774", "0.6374138", "0.63733834", "0.634574", "0.6326617", "0.6296771", "0.6290412", "0.62828624", "0.6281637", "0.62735265", "0.6240678", "0.62349075", "0.62274534", "0.6214215", "0.6212954", "0.62093705", "0.62017643", "0.61857474", "0.6173307", "0.61674005", "0.6161922", "0.61561465", "0.61539483", "0.6151148", "0.6146143", "0.6116516", "0.61113477", "0.61046475", "0.61023927", "0.60852003", "0.60826826", "0.6079407", "0.607704", "0.6068745", "0.60681635", "0.6062821", "0.6042148", "0.603545", "0.6034757", "0.60259587", "0.6020643", "0.6016222", "0.60089827", "0.59970886", "0.59963405", "0.59919536", "0.59914017", "0.59892195", "0.5982191", "0.597813", "0.59760183", "0.5969549", "0.59687084", "0.5959154", "0.59529644", "0.59454644", "0.5939232", "0.59373814", "0.5931569", "0.59219223", "0.59151024", "0.59058857", "0.5903184", "0.59028244", "0.5894677", "0.5887301", "0.588469", "0.58846587", "0.5878544", "0.5867169", "0.58572", "0.5850415", "0.58494943", "0.58481455", "0.5837173", "0.58301127", "0.5828445", "0.5827953", "0.5827811", "0.58265126" ]
0.6582998
11
Returns the element in heap whose key is minimum. Time complexity: O(1) Space complexity: O(1)
public T minimum() { return min.key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node binomialHeapMinimum() {\n\t\tNode y = null;\n\t\tNode x = this.head;\n\t\tint min = Integer.MAX_VALUE;\n\t\twhile(x!=null) {\n\t\t\tif (x.key < min) {\n\t\t\t\tmin = x.key;\n\t\t\t\ty = x;\n\t\t\t}\n\t\t\tx = x.rightSibling;\n\t\t}\n\t\treturn y;\n\t}", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "public node_data heapMinimum(){return _a[0];}", "public node_data heapExtractMin(){\n\t\tdouble min = _positiveInfinity;\n\t\tnode_data v=null;\n\t\tif (!isEmpty()){\n\t\t\tv = _a[0];\n\t\t\tmin = v.getWeight();\n\t\t\t_a[0]=_a[_size-1];\n\t\t\t_size = _size-1;\n\t\t\tminHeapify(0, _size);\n\t\t}\n\t\treturn v;\n\t}", "public int findMin()\n {\n if(isEmpty())\n {\n throw new NoSuchElementException(\"Underflow Exeption\");\n }\n return heap[0];\n }", "@Test\n\tpublic void testExtractMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\tdouble[] expected = new double[] { 5, 7, 24, 36, 15, 48, 32, 47, 93, 27, 38, 70, 53, 33, 93 };\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.extractMin().key);\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t\tassertEquals(14, heap.getSize());\n\t}", "public Vertex HeapExtractMin() {\n\n if (size == 1) {\n \t\n Vertex min = ver[0];\n size--;\n return min;\n }\n\n // Getting the last element and making it root element of the binary tree\n Vertex min = ver[0];\n Vertex lastItem = ver[size-1];\n ver[0]= lastItem;\n size--;\n // Calling heapMinHeapify to maintain heap property\n heapMinHeapify(0);\n return min;\n }", "public int deleteMin() {\n int keyItem = heap[0];\n delete(0);\n return keyItem;\n }", "public Node binomialHeapExtractMin() {\n\t\tNode x = this.deleteMin();\n\t\t\n\t\t// make a new heap\n\t\t// reverse the child list of x and assign it to the head of new heap.\n\t\tBinomialHeap hPrime = new BinomialHeap();\n\t\thPrime.head = reverseLinkedList(x.leftChild);\n\t\t\n\t\t// perform union on the child tree list of x and the original heap\n\t\tBinomialHeap h = this.binomialHeapUnion(hPrime);\n\t\tthis.head = h.head;\n\t\t\n\t\t// return the minimum node\n\t\treturn x;\n\t}", "public E minimum() {\n\t\tif (heap.size() <= 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn heap.get(0);\n\t}", "public E minimum() {\n\t\tif (heap.size() <= 0)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn heap.get(0);\n\t}", "public E extractMin() {\n\t\tif (heap.size() <= 0)\n\t\t\treturn null;\n\t\telse {\n\t\t\tE minVal = heap.get(0);\n\t\t\theap.set(0, heap.get(heap.size()-1)); // Move last to position 0\n\t\t\theap.remove(heap.size()-1);\n\t\t\tminHeapify(heap, 0);\n\t\t\treturn minVal;\n\t\t}\n\t}", "public E extractMin() {\n\t\tif (heap.size() <= 0)\n\t\t\treturn null;\n\t\telse {\n\t\t\tE minVal = heap.get(0);\n\t\t\theap.set(0, heap.get(heap.size() - 1)); // Move last to position 0\n\t\t\theap.remove(heap.size() - 1);\n\t\t\tminHeapify(heap, 0);\n\t\t\treturn minVal;\n\t\t}\n\t}", "public Point ExtractMin() {\n\t\tif (heapSize < 0)\n\t\t\tthrow new RuntimeException(\"MinHeap underflow!\");\n\t\tPoint min = new Point(heapArr[0]);\n\t\theapArr[0] = new Point(heapArr[heapSize - 1]);\n\t\theapSize = heapSize - 1;\n\t\tminHeapify(0);\n\t\treturn min;\n\n\t}", "public Point min() {\n\t\tif (heapSize >= 0)\n\t\t\treturn new Point(heapArr[0]);\n\t\telse\n\t\t\tthrow new RuntimeException(\"MinHeap is empty!\");\n\t}", "public Node deleteMin() {\n\t\t// if the heap is empty\n\t\t// return MAXINT as output\n\t\tNode min = new Node(Integer.MAX_VALUE);\n\t\tif(this.head == null)\n\t\t\treturn min;\n\t\t\n\t\t\n\t\tNode prevMin = null;\n\t\tNode curr = this.head;\n\t\tNode prev = null;\n\t\t\n\t\t// find the smallest node\n\t\t// keep track of node who points to this minimum node\n\t\twhile(curr!=null) {\n\t\t\tif(curr.key<min.key) {\n\t\t\t\tmin = curr;\n\t\t\t\tprevMin = prev;\n\t\t\t}\n\t\t\tprev = curr;\n\t\t\tcurr = curr.rightSibling;\n\t\t}\n\t\t\n\t\t// if its the head then move one pointer ahead\n\t\tif(prevMin == null)\n\t\t\tthis.head = min.rightSibling;\n\t\telse {\n\t\t\t// else attach the previous node to the rightSibling of min\n\t\t\tprevMin.rightSibling = min.rightSibling;\n\t\t}\n\t\tmin.rightSibling = null;\n\t\t\n\t\t//return min node\n\t\treturn min;\n\t}", "public DHeap_Item Get_Min()\n {\n\treturn array[0];\n }", "public int extractMin() {\n\t\t\tif (heap_size <= 0) {\n\t\t\t\treturn Integer.MAX_VALUE;\n\t\t\t} else if (heap_size == 1) {\n\t\t\t\theap_size--;\n\t\t\t\treturn harr[0];\n\t\t\t}\n\n\t\t\tint root = harr[0];\n\t\t\tharr[0] = harr[heap_size - 1];\n\t\t\theap_size--;\n\t\t\tminHeapify(0);\n\n\t\t\treturn root;\n\t\t}", "@Test\n\tpublic void testGetMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.getMin().key);\n\t\tassertEquals(15, heap.getSize());\n\t}", "private long minKey() {\n if (left.size == 0) return key;\n // make key 'absolute' (i.e. relative to the parent of this):\n return left.minKey() + this.key;\n }", "public E extractMin() {\r\n\t\tif (this.size == 0) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Heap underflow. Cannot extractMin from an empty heap.\");\r\n\t\t}\r\n\t\tE min = this.objectHeap[0];\r\n\t\tdouble costMin = this.costHeap[0];\r\n\t\tthis.objectHeap[0] = this.objectHeap[this.size - 1];\r\n\t\tthis.costHeap[0] = this.costHeap[this.size - 1];\r\n\t\tthis.size -= 1;\r\n\t\tthis.locations.delete(min);\r\n\t\tthis.locations.put(this.objectHeap[0], 0);\r\n\t\tthis.minHeapify(0);\r\n\t\treturn min;\r\n\t}", "private K smallest(BSTnode<K> n) {\n\t\tif (n.getLeft() == null) {\n\t\t\treturn n.getKey();\n\t\t} else {\n\t\t\treturn smallest(n.getLeft());\n\t\t}\n\t}", "public abstract Key getSmallest();", "public Key min(Node node)\n {\n \tif(node==null)\n \t\treturn null;\n \tif(node.left==null)\n \treturn node.key;\n \telse\n \t\treturn min(node.left);\n \t\n }", "public int heapMin() {\n return array[0];\n }", "private static Key min(Key... ks) {\n\t\tif (ks == null || ks.length == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tKey min = ks[0];\n\t\tfor (int i = 1; i < ks.length; i++) {\n\t\t\tif (ks[i].compareTo(min) < 0) {\n\t\t\t\tmin = ks[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}", "public AnyType deleteMin() throws NoSuchElementException {\n\t\t\n\t\t// if the heap is empty, throw a NoSuchElementException\n\t\tif(this.size() == 0){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\n\t\t// store the minimum item so that it may be returned at the end\n\t\tAnyType minValue = this.findMin();\n\n\t\t// replace the item at minIndex with the last item in the tree\n\t\tAnyType lastValue = this.array[this.size()-1];\n\t\tthis.array[0] = lastValue;\n\t\tthis.array[this.size() - 1] = null;\n\t\t\n\t\t// update size\n\t\tthis.currentSize--;\n\n\t\t// percolate the item at minIndex down the tree until heap order is restored\n\t\t// It is STRONGLY recommended that you write a percolateDown helper method!\n\t\tthis.percolateDown(0);\n\t\t\n\t\t// return the minimum item that was stored\n\t\treturn minValue;\n\t}", "public K min() {\n if (root == null)\n return null;\n else {\n Node curr = root;\n while (true) {\n if (curr.left != null)\n curr = curr.left;\n else\n return curr.key;\n }\n }\n }", "@Override\n public int getMinChild() {\n if (isEmpty()) {\n throw new IllegalStateException(\"Heap is empty.\");\n }\n return heap[0];\n }", "private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }", "public static <V extends Comparable<? super V>> V minValueKey(List<V> list)\n\t{\n\t\tCollections.sort(list);\n\t\treturn list.get(0);\n\t}", "public Key min();", "public K min();", "private static <K extends Comparable<? super K>, V> Node<K, V> findSmallestNode(Node<K, V> root) {\n @Var Node<K, V> current = root;\n while (current.left != null) {\n current = current.left;\n }\n return current;\n }", "private int min(int[] children) {\r\n int max = heap.size() - 1;\r\n if (children[0] <= max && children[1] <= max) {\r\n if (heap.get(children[0]) < heap.get(children[1])) {\r\n return children[0];\r\n } else {\r\n return children[1];\r\n }\r\n } else {\r\n return -1;\r\n }\r\n }", "public int minValue(Node node) {\n /* loop down to find the rightmost leaf */\n Node current = node;\n while (current.left != null)\n current = current.left;\n\n return (current.key);\n }", "private Node smallest(Node p){\n if(p == null){\n return null;\n }\n Node smallest = p;\n while(smallest.left!=null){\n smallest = smallest.left;\n }\n return smallest;\n }", "void minHeapify(int i)\n {\n int lt=MyHeap.left(i);\n int rt=MyHeap.right(i);\n int smallest=i;\n if(lt<size && arr[lt]<arr[i])\n smallest=lt;\n if(rt<size && arr[rt]<arr[smallest])\n smallest=rt;\n if(smallest!=i)\n {\n swap(i,smallest);\n minHeapify(smallest);\n }\n }", "public K min() throws EmptyTreeException {\n\t\tTree<K, V> t = this;\n\t\treturn min(t, key);\n\t}", "public void deleteMin() {\r\n\t\tif (empty())\r\n\t\t\treturn;\r\n\t\telse {\r\n\t\t\tif (this.size > 0) {\r\n\t\t\t\tthis.size--;\r\n\t\t\t}\r\n\t\t\tif (this.size == 0) {\r\n\t\t\t\tthis.empty = true;\r\n\t\t\t}\r\n\r\n\t\t\tHeapNode hN = this.min;\r\n\t\t\tint rnkCount = 0;\r\n\t\t\tHeapNode hNIterator = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\trnkCount++;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t}\r\n\t\t\tthis.HeapTreesArray[rnkCount] = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\trnkCount--;\r\n\t\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\t\tif (hNIterator != null) {\r\n\t\t\t\tbH.empty = false;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\tbH.HeapTreesArray[rnkCount] = hNIterator;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t\tbH.HeapTreesArray[rnkCount].rightBrother = null;\r\n\t\t\t\tif (hNIterator != null) {\r\n\t\t\t\t\thNIterator.leftBrother = null;\r\n\t\t\t\t}\r\n\t\t\t\trnkCount = rnkCount - 1;\r\n\t\t\t}\r\n\t\t\tthis.min = null;\r\n\t\t\tfor (int i = 0; i < this.HeapTreesArray.length; i++) {\r\n\t\t\t\tif (this.min == null) {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tif (this.HeapTreesArray[i].value < this.min.value) {\r\n\t\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\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\r\n\t\t\tif (!bH.empty()) {\r\n\t\t\t\tfor (int i = 0; i < bH.HeapTreesArray.length; i++) {\r\n\t\t\t\t\tif (bH.min == null) {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tif (bH.HeapTreesArray[i].value < bH.min.value) {\r\n\t\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\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\tthis.meld(bH);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "private int minChild(int ind)\n {\n int bestChild = kthChild(ind, 1);\n int k =2;\n int pos = kthChild(ind, k);\n while ((k <= d) && (pos < heapSize)){\n if(heap[pos] < heap[bestChild])\n {\n bestChild = pos;\n }\n else {\n pos = kthChild(ind, k++);\n }\n }\n return bestChild;\n\n }", "public E minimum() {\r\n\t\treturn objectHeap[0];\r\n\t}", "public T smallest(Node node) {\n while (node.left != null) {\n node = node.left;\n }\n return node.element;\n }", "public K min() {\n if (isEmpty()) throw new NoSuchElementException(\"calls min() with empty symbol table\");\n return min(root).key;\n }", "public K min() {\n if (isEmpty()) throw new NoSuchElementException(\"called min() with empty symbol table\");\n return min(root).key;\n }", "private void minHeapify(int v, int heapSize){\n\t\tint smallest;\n\t\tint left = leftChild(v);\n\t\tint right = rightChild(v);\n\t\tif (left<heapSize && _a[left].getWeight()<_a[v].getWeight()){\n\t\t\tsmallest = left;\n\t\t}\n\t\telse{\n\t\t\tsmallest = v;\n\t\t}\n\t\tif (right<heapSize && _a[right].getWeight()<_a[smallest].getWeight()){\n\t\t\tsmallest = right;\n\t\t}\n\t\tif (smallest!=v){\n\t\t\texchange(v, smallest);\n\t\t\tminHeapify(smallest, heapSize);\n\t\t}\t\t\n\t}", "public Key floor(Key key)\t\t\t\t//largest key less than or equal to the given key\n\t{\n\t\tNode x=floor(root,key);\n\t\tif(x!=null)\n\t\t\treturn x.key;\n\t\telse return null;\n\t}", "public int extractMinimum() {\n if (size == 0) {\n return Integer.MIN_VALUE;\n }\n if (size == 1) {\n size--;\n return arr[0];\n }\n\n MathUtil.swap(arr, 0, size - 1);\n size--;\n minHeapify(0);\n return arr[size];\n }", "private PriorityQueue<Integer> get(Node x, int key) {\n while (x != null) {\n int cmp = key - x.key;\n if (cmp < 0)\n x = x.left;\n else if (cmp > 0)\n x = x.right;\n else\n return x.val;\n }\n return null;\n }", "private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}", "private int minChild(int ind) {\n int bestChild = kthChild(ind, 1);\n int k = 2;\n int pos = kthChild(ind, k);\n while ((k <= 2) && (pos < heapSize)) {\n if (heap[pos] < heap[bestChild])\n bestChild = pos;\n pos = kthChild(ind, k++);\n }\n return bestChild;\n }", "private void minHeapify(int i) {\n int l, r, smallest, temp;\n\n l = leftchild(i);\n r = rightchild(i);\n\n if (r <= heapsize) {\n if (array[l] < array[r]) {\n smallest = l;\n } else {\n smallest = r;\n }\n if (array[i] > array[smallest]) {\n temp = array[i];\n array[i] = array[smallest];\n array[smallest] = temp;\n\n minHeapify(smallest);\n }\n else if ((l == heapsize) && (array[i] > array[l])) {\n temp = array[i];\n array[i] = array[l];\n array[l] = temp;\n\n }\n }\n }", "public Key min() {\n if (isEmpty()) throw new NoSuchElementException(\"called min() with empty symbol table\");\n return min(root).key;\n }", "public BSTMapNode findMin() \n\t{\n\t\t\n\t\t\n\t\treturn null;\n\t}", "public Key ceiling(Key key)\t\t\t\t//smallest key greater than or equal to the given key\n\t{\n\t\tNode x=ceiling(root,key);\n\t\tif(x!=null)\n\t\t\treturn x.key;\n\t\telse return null;\n\t}", "public void minHeapify(int i) {\n\t\tint smallest;\n\t\tint l = left(i);\n\t\tint r = right(i);\n\t\tif (l < heapSize && General.pointYCompare(heapArr[l], heapArr[i]) < 0)\n\t\t\tsmallest = l;\n\t\telse\n\t\t\tsmallest = i;\n\t\tif (r < heapSize && General.pointYCompare(heapArr[r], heapArr[smallest]) < 0)\n\t\t\tsmallest = r;\n\t\tif (smallest != i) {\n\t\t\tpointSwap(i, smallest);\n\t\t\tminHeapify(smallest);\n\t\t}\n\t}", "void MinInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] > arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }", "public T deleteMin()\n {\n // to handle empty excpetion\n if(size == 0)\n {\n throw new MyException(\"Heap is empty.\");\n }\n\n // create int hole, set to 0\n int hole = 0;\n // create return value as the item at index hole\n T returnValue = arr[hole];\n // create item to be last item of heap\n T item = arr[size-1];\n // decrement size\n size--;\n // call newHole() method to get newhole\n int newhole = newHole(hole, item);\n while(newhole != -1)\n {\n // set value of arr[newhole] to be arr[hole]\n arr[hole] = arr[newhole];\n // hole is now whatever newhole was\n hole = newhole;\n // update newhole by calling newHole()\n newhole = newHole(hole, item);\n }\n // put item where the hole is in the heap\n arr[hole] = item;\n return returnValue;\n }", "@Nullable\n protected abstract Map.Entry<K, V> onGetLowestEntry();", "public Key floor(final Key key) {\n int rank = rank(key);\n if (rank == 0) {\n return null;\n }\n if (rank < size && key.compareTo(keys[rank]) == 0) {\n return keys[rank];\n } else {\n return keys[rank - 1];\n }\n }", "public void minHeapify(int i) {\n\t\t\tint l = left(i);\n\t\t\tint r = right(i);\n\t\t\tint smallest = i;\n\n\t\t\tif (l < heap_size && harr[l] < harr[smallest]) {\n\t\t\t\tsmallest = l;\n\t\t\t}\n\t\t\tif (r < heap_size && harr[r] < harr[smallest]) {\n\t\t\t\tsmallest = r;\n\t\t\t}\n\t\t\tif (smallest != i) {\n\t\t\t\tswap(i, smallest);\n\t\t\t\tminHeapify(smallest);\n\t\t\t}\n\t\t}", "public T findMin();", "void minHeapify(int i) {\n\n\t\tint l = 2*i + 1;\n\t\tint r = 2*i + 2;\n\t\tint smallest = i;\n \n\t\tif(l < size && arr[l].element < arr[smallest].element)\n\t\t\tsmallest = l;\n\n\t\tif(r < size && arr[r].element < arr[smallest].element)\n\t\t\tsmallest = r;\n\n\t\tif(smallest != i) {\n\t\t\t// call method exchange to change \n\t\t\texchange(arr,i,smallest);\n\t\t\tminHeapify(smallest);\n\t\t}\n\t}", "public K min(Tree<K, V> t, K key) {\n\t\treturn left.min(left, this.key);\n\t}", "public T getMin() {\n\t\tif (heapSize > 0) {\n\t\t\treturn lstEle.get(0);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public T extractMin() {\n\t\tif (heapSize > 0) {\n\t\t\tSystem.out.print(\"LIST: \" );\n\t\t\tprintList();\n\t\t\tT retEle = lstEle.get(0);\n\t\t\tSystem.out.println(\"\\tRemoving : \" +retEle);\n\t\t\tlstEle.set(0, lstEle.get(heapSize - 1));\n\t\t\tlstEle.set(heapSize - 1, null);\n\t\t\theapSize--;\n\t\t\theapify();\n\t\t\tSystem.out.print(\"After HEAPIFY : \");\n\t\t\tprintList();\n\t\t\treturn retEle;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public TreeNode<T> getMinElement(){\n TreeNode<T> t = this;\n while(t.left != null){\n t = t.left;\n }\n return t;\n }", "int minPriority(){\n if (priorities.length == 0)\n return -1;\n\n int index = 0;\n int min = priorities[index];\n\n for (int i = 1; i < priorities.length; i++){\n if ((priorities[i]!=(-1))&&(priorities[i]<min)){\n min = priorities[i];\n index = i;\n }\n }\n return values[index];\n }", "int getMin() \n\t{ \n\t\tint x = min.pop(); \n\t\tmin.push(x); \n\t\treturn x; \n\t}", "public PrimEdge calculateMinimum() {\n int minWage = Integer.MAX_VALUE;\n PrimEdge result = null;\n for (Map.Entry<Integer, PrimEdge> entry : dtable.entrySet()) {\n if (entry.getValue().getWage() < minWage) {\n result = entry.getValue();\n minWage = entry.getValue().getWage();\n }\n }\n return result;\n }", "public MinHeapNode<T> deleMin() {\n\t\tif(!isEmpty()) { \r\n\t\t\tMinHeapNode<T> min = heap[1]; //min node\r\n\t heap[1] = heap[currentSize--]; //move bottom node to root\r\n\t heapDown(1); //move root down\r\n\t return min; \r\n\t } \r\n\t return null; \r\n\t}", "public AVLNode findMin() {\n\t\tif (this.empty()) {\n\t\t\treturn null;\n\t\t}\n\t\tAVLNode min = (AVLNode) this.root;\n\t\twhile (min.getLeft().getHeight() != -1) {\n\t\t\tmin = (AVLNode) min.getLeft();\n\t\t}\n\t\treturn min;\n\t}", "public TreeNode smallest() {\n\t\tif(root == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tTreeNode current = root; \n\t\t\twhile(current.getLeftChild() != null) {\n\t\t\t\tcurrent = current.getLeftChild();\n\t\t\t}\n\t\t\treturn current;\n\t\t}\n\t}", "public int kthSmallest(int[][] matrix, int k) {\n int rows = matrix.length;\n int columns = matrix[0].length;\n // setup a Min heap for getting the first k items in the heap\n PriorityQueue<Cell> minHeap = new PriorityQueue<Cell>(k, new Comparator<Cell>() {\n @Override\n public int compare(Cell o1, Cell o2) {\n if(o1.value == o2.value) return 0;\n return o1.value < o2.value ? -1 : 1;\n }\n });\n boolean[][] visited = new boolean[rows][columns];\n minHeap.offer(new Cell(0,0,matrix[0][0]));\n visited[0][0] = true;\n // BFS. Imaging the matrix is a graph, and neighbor is left, and down 1.\n // using BFS searching, but keep the data in min heap structure.\n for(int i = 0; i < k-1; i++){\n Cell curr = minHeap.poll();\n // two condition for putting the element into min heep\n // 1.if it is in the range of matrix\n // 2.if it is not visited.\n if(curr.row + 1 < rows && !visited[curr.row+1][curr.column]){\n minHeap.offer(new Cell(curr.row+1,curr.column,matrix[curr.row+1][curr.column]));\n visited[curr.row+1][curr.column] = true;\n }\n if(curr.column + 1 < columns && ! visited[curr.row][curr.column+1]){\n minHeap.offer(new Cell(curr.row,curr.column+1, matrix[curr.row][curr.column+1]));\n visited[curr.row][curr.column+1] = true;\n }\n }\n // after put first k item into min heap, we only need to get the top item\n return minHeap.peek().value;\n }", "public static Node findKthSmallest(Node node, int k){\n if(node!=null){ // node มีตัวตน\n int l = size(node.left);\n if(k==l+1){\n return node;\n }else if(k<l+1){ //ถ้า k is น้อยกว่า size ค่าของ kth จะอยูที่ left subtree.\n return findKthSmallest(node.left,k);\n }else{\n return findKthSmallest(node.right,k-l-1); // recursive right-subtree และค่า k ลบด้วย size ทางขวา และตัวมันเอง(1)\n }\n }\n else {\n return null;\n }\n\n }", "Object getMinimumValue(Object elementID) throws Exception;", "int getMinValue(AVLTreeNode node)\r\n {\n if (node == null) return Integer.MIN_VALUE;\r\n\r\n // if this is the left-most node\r\n if (node.left == null) return node.key;\r\n\r\n return getMinValue(node.left);\r\n }", "void Min_heapfy(Map<Integer, Integer> heapmap, SimpleVertex simpleVertex) {\n\n\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\t\t\theapmap.put(node.two.Vertexname, node.weight);\n\t\t\tmapVertixEdge.put(node.two.Vertexname, node);\n\n\t\t}\n\t\theapmap.remove(simpleVertex.Vertexname);\n\n\t\tfor (Integer v : heapmap.values()) {\n\t\t\tarr[count++] = v;\n\t\t\tSystem.out.println(v);\n\t\t}\n\n\t\t// arr = Arrays.copyOfRange(arr, 1, arr.length);\n\t\tint edgeWeight = new HeapForPrims().Max_heapfy(arr, 1);\n\n\t\tSimpleEdge removeedge = null;\n\t\tIterator<Entry<Integer, SimpleEdge>> it = mapVertixEdge.entrySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntry<Integer, SimpleEdge> pair = it.next();\n\t\t\tif (pair.getValue().weight == edgeWeight) {\n\t\t\t\tresultedge.add(pair.getValue());\n\t\t\t\tpair.getValue().EdgeVisited = true;\n\t\t\t\tremoveedge = pair.getValue();\n\n\t\t\t}\n\n\t\t}\n\t\twhile (mapVertixEdge.values().remove(removeedge))\n\t\t\t;\n\n\t\tMin_heapfy(heapmap, resultedge.get(resultedge.size() - 1).two);\n\n\t}", "public Node min() {\n\t\tNode x = root;\n\t\tif (x == null) return null;\n\t\twhile (x.getLeft() != null)\n\t\t\tx = x.getLeft();\n\t\treturn x;\n\t}", "ComparableExpression<T> min();", "public static <K, V extends Comparable<? super V>> K minValueKey(Map<K, V> map)\n\t{\n\t\tif (map.size() > 0)\n\t\t{\n\t\t\tList<Map.Entry<K, V>> list = new LinkedList<Map.Entry<K, V>>(map.entrySet());\n\t\t\tCollections.sort(list, new Comparator<Map.Entry<K, V>>()\n\t\t\t{\n\t\t\t\tpublic int compare(Map.Entry<K, V> o1, Map.Entry<K, V> o2)\n\t\t\t\t{\n\t\t\t\t\treturn (o1.getValue()).compareTo(o2.getValue());\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn list.get(0).getKey();\n\t\t\t}\n\t\t\tcatch (IndexOutOfBoundsException e)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public static Vector<Edge> computeMinimumSpanningTreeNodeHeap(Graph g){\r\n\t\t//minimum spanning tree\r\n\t\tVector<Edge> mst = new Vector<Edge>();\r\n\r\n\t\t//defining X\r\n\t\tint qntNodes = g.getNodes().length;\r\n\t\tbelongsToX = new boolean[qntNodes];\r\n\r\n\t\t//initializing X\r\n\t\tbelongsToX[0] = true;\r\n\t\t\r\n\t\t//initializing heap\r\n\t\tHeapNode heap = new HeapNode(qntNodes);\r\n\t\trestoreHeapProperties(g.getNodes()[0], heap);\r\n\r\n\t\t//main loop\r\n\t\tfor(int i = 1; i < qntNodes; i++){\t\t\t\r\n\t\t\t//find minimum edge that crosses the frontier\r\n\t\t\tNode newNode = heap.extractMin();\r\n\t\t\tEdge min = heap.getNodeMinEdge(newNode);\r\n\t\t\t\r\n\t\t\t//add new node to X\r\n\t\t\tbelongsToX[newNode.number] = true;\r\n\r\n\t\t\t//add minimum edge to tree\r\n\t\t\tmst.add(min);\r\n\t\t\t\r\n\t\t\t//restore heap properties\r\n\t\t\trestoreHeapProperties(newNode, heap);\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn mst;\r\n\t}", "private Node getLowestNode(Set<Node> openSet)\r\n {\r\n // find the node with the least f\r\n double minF = Double.MAX_VALUE;\r\n Node[] openArray = openSet.toArray(new Node[0]);\r\n\r\n Node q = null;\r\n for (int i = 0; i < openArray.length; ++i)\r\n {\r\n if (openArray[i].f < minF) \r\n {\r\n minF = openArray[i].f;\r\n q = openArray[i];\r\n }\r\n }\r\n return q;\r\n }", "public Website treeMinimum(Website site) {\r\n\t\tWebsite localSite = site; // Local pointer to given Site\r\n\t\twhile (localSite.getLeft() != null&&localSite.getLeft().getPageRank()!=0) { // Traversing Loop, stops at null node\r\n\t\t\tlocalSite = localSite.getLeft(); // incrementation Condition\r\n\t\t}\r\n\t\treturn localSite; // Returns minimum\r\n\t}", "private void gotoMinOf(IntTree<V> node) {\n while (node.size > 0) {\n stack = stack.plus(node);\n key += node.key;\n node = node.left;\n }\n }", "public static int kthSmallest(HeapIntPriorityQueue pq, int k){\n //Exception clause\n if(k<1 || k>pq.size()){\n throw new IllegalArgumentException();\n }\n //Auxiliary queue\n Queue <Integer> holder = new LinkedList<Integer>();\n int toReturn = 0;\n //Cycling through to get to the kth position\n for (int i=0; i<k; i++){\n toReturn = pq.remove();\n holder.add(toReturn);\n }\n //Refilling the PriorityQueue from the auxiliary queue\n while (!holder.isEmpty()){\n pq.add(holder.remove());\n }\n return toReturn;\n }", "public void testFindMin() {\r\n assertNull(tree.findMin());\r\n tree.insert(\"apple\");\r\n tree.insert(\"act\");\r\n assertEquals(\"act\", tree.findMin());\r\n tree.remove(\"act\");\r\n assertEquals(\"apple\", tree.findMin());\r\n }", "private Node min(Node node){\n if(node == null)\n return null;\n else if(node.left == null)\n return node;\n\n //walk left nodes\n return min(node.left);\n }", "public String getMinKey();", "Node minValueNode(Node node) \n { \n Node current = node; \n \n /* loop down to find the leftmost leaf */\n while (current.left != null) \n current = current.left; \n \n return current; \n }", "public static void main(String[] args) {\n\r\n\t\tint [][] arr = new int[][] {\r\n\t\t\t{8,9,10,12},\r\n\t\t\t{2,5,9,12},\r\n\t\t\t{3,6,10,11},\r\n\t\t\t{1,4,7,8}\r\n\t\t};\t\t\r\n\t\t\r\n\t\tPriorityQueue<HeapNode> heap = new PriorityQueue<>();\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\t{\r\n\t\t\theap.offer(new HeapNode(arr[i][0], i, 0));\r\n\t\t}\r\n\t\tint count=0;\r\n\t\twhile(count<16)\r\n\t\t{\r\n\t\t\tHeapNode min = heap.poll();\r\n\t\t\tSystem.out.println(min.value);\r\n\t\t\tcount++;\r\n\t\t\tint value=0;\r\n\t\t\tint nextIndex=min.index+1;\r\n\t\t\tif(nextIndex < arr[min.k].length)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tvalue=arr[min.k][nextIndex];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tvalue=Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t\theap.offer(new HeapNode(value, min.k, nextIndex));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public E returnMinElement(){\r\n if (theData.size() <= 0) return null;\r\n\r\n E min = theData.get(0).getData();\r\n\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n }\r\n }\r\n return min;\r\n }", "int Smallest()throws EmptyException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyException();\n\t\t}\n\t\tNode curr = head;\n\t\tint min = curr.data;\n\t\twhile (curr.next != null) {\n\t\t\tif (curr.next.data < min) {\n\t\t\t\tmin = curr.next.data;\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn min;\n\t}", "private Node findSmallest(Node curr) {\n Node prev = null;\n while(curr != null && !curr.isNull) {\n prev = curr;\n curr = curr.left;\n }\n return prev != null ? prev : curr;\n }", "private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }", "private Node<Value> min(Node<Value> x)\r\n {\r\n while (x.left != null) x = x.left;\r\n return x;\r\n }", "private static int searchSmallest(List<Integer> input) {\n\t\tint left = 0;\n\t\tint right = input.size()-1;\n\t\t\n\t\twhile(left < right) {\n\t\t\tint mid = left + (right-left)/2 + 1; System.out.println(\"mid=\" + mid);\n\t\t\t\n\t\t\tif(input.get(left) > input.get(mid)) {//smallest in left half\n\t\t\t\tright = mid-1;\n\t\t\t}else {\n\t\t\t\tleft = mid+1;\n\t\t\t}\n\t\t}\n\t\treturn left;//left=right now\n\t}", "private static Node delMin(ArrayList<Node> minHeap) {\n\t\tNode min = minHeap.remove(1);\n\t\t//put last element first\n\t\tint n = minHeap.size();\n\t\tif (n==1) return min;\n\t\tNode last = minHeap.remove(n-1);\n\t\tminHeap.add(1, last);\n\t\t//sink the new top to its right position\n\t\tsink(minHeap);\n\t\treturn min;\n\t}", "private Node min(Node x) {\n if (x.left == null)\n return x;\n else\n return min(x.left);\n }", "public String min() // return the value of the minimum key in the tree\r\n {\r\n\t \tif(empty()) {\r\n\t \t\treturn null;\r\n\t \t}\r\n return min(root).info;\r\n }" ]
[ "0.8018557", "0.7939211", "0.73440593", "0.7201252", "0.71840245", "0.7094222", "0.7044647", "0.7020037", "0.6977612", "0.69314885", "0.69314885", "0.6930695", "0.6921747", "0.68805647", "0.687142", "0.6853454", "0.68273854", "0.68185735", "0.6788793", "0.6763905", "0.6756211", "0.6744289", "0.67169774", "0.6711994", "0.6699894", "0.66612", "0.664134", "0.6593449", "0.6588364", "0.6577072", "0.6556439", "0.6548946", "0.6534215", "0.6512604", "0.65075284", "0.65011626", "0.6478632", "0.64705443", "0.64595735", "0.6458992", "0.64520645", "0.645048", "0.6447801", "0.644078", "0.64340484", "0.642555", "0.6424393", "0.64231765", "0.64008427", "0.6395982", "0.63513786", "0.6349894", "0.63330704", "0.6324973", "0.63194275", "0.63116467", "0.6304808", "0.62738067", "0.62643445", "0.62606204", "0.6253348", "0.6248621", "0.6247783", "0.6246356", "0.6242181", "0.6210775", "0.62052464", "0.61963874", "0.6191165", "0.6191067", "0.6187696", "0.61868185", "0.61773866", "0.6159362", "0.61421376", "0.6134685", "0.6127497", "0.61155516", "0.61146307", "0.6103824", "0.6097761", "0.60899746", "0.60877395", "0.6083883", "0.60823625", "0.6078049", "0.6069498", "0.6056407", "0.60469407", "0.60410196", "0.60309124", "0.6022615", "0.6018727", "0.6011895", "0.6010366", "0.60044646", "0.59905714", "0.59855133", "0.59793115", "0.5977786" ]
0.66284955
27
Deletes the element from heap whose key is minimum. Time complexity: O(logn) Space complexity: O(1)
public Node<T> extractMin() { Node<T> z = min; if (z != null) { if (z.child != null) { Node<T> leftChild = z.child.leftSibling; Node<T> rightChild = z.child; z.child.parent = null; while (leftChild != rightChild) { leftChild.parent = null; leftChild = leftChild.leftSibling; } leftChild = leftChild.rightSibling; // add child to the root list Node<T> tmp = z.rightSibling; z.rightSibling = leftChild; leftChild.leftSibling = z; tmp.leftSibling = rightChild; rightChild.rightSibling = tmp; } // remove z from the root list z.rightSibling.leftSibling = z.leftSibling; z.leftSibling.rightSibling = z.rightSibling; if (z == z.rightSibling) { min = null; } else { min = z.rightSibling; consolidate(); } size--; } return z; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int deleteMin() {\n int keyItem = heap[0];\n delete(0);\n return keyItem;\n }", "public void deleteMin()\t\t\t\t//delete smallest key\n\t{\n\t\troot=deleteMin(root);\n\t}", "void deleteMin() {\n delete(keys[0]);\n }", "private static Node delMin(ArrayList<Node> minHeap) {\n\t\tNode min = minHeap.remove(1);\n\t\t//put last element first\n\t\tint n = minHeap.size();\n\t\tif (n==1) return min;\n\t\tNode last = minHeap.remove(n-1);\n\t\tminHeap.add(1, last);\n\t\t//sink the new top to its right position\n\t\tsink(minHeap);\n\t\treturn min;\n\t}", "public AnyType deleteMin() throws NoSuchElementException {\n\t\t\n\t\t// if the heap is empty, throw a NoSuchElementException\n\t\tif(this.size() == 0){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\n\t\t// store the minimum item so that it may be returned at the end\n\t\tAnyType minValue = this.findMin();\n\n\t\t// replace the item at minIndex with the last item in the tree\n\t\tAnyType lastValue = this.array[this.size()-1];\n\t\tthis.array[0] = lastValue;\n\t\tthis.array[this.size() - 1] = null;\n\t\t\n\t\t// update size\n\t\tthis.currentSize--;\n\n\t\t// percolate the item at minIndex down the tree until heap order is restored\n\t\t// It is STRONGLY recommended that you write a percolateDown helper method!\n\t\tthis.percolateDown(0);\n\t\t\n\t\t// return the minimum item that was stored\n\t\treturn minValue;\n\t}", "public T deleteMin()\n {\n // to handle empty excpetion\n if(size == 0)\n {\n throw new MyException(\"Heap is empty.\");\n }\n\n // create int hole, set to 0\n int hole = 0;\n // create return value as the item at index hole\n T returnValue = arr[hole];\n // create item to be last item of heap\n T item = arr[size-1];\n // decrement size\n size--;\n // call newHole() method to get newhole\n int newhole = newHole(hole, item);\n while(newhole != -1)\n {\n // set value of arr[newhole] to be arr[hole]\n arr[hole] = arr[newhole];\n // hole is now whatever newhole was\n hole = newhole;\n // update newhole by calling newHole()\n newhole = newHole(hole, item);\n }\n // put item where the hole is in the heap\n arr[hole] = item;\n return returnValue;\n }", "public Node deleteMin() {\n\t\t// if the heap is empty\n\t\t// return MAXINT as output\n\t\tNode min = new Node(Integer.MAX_VALUE);\n\t\tif(this.head == null)\n\t\t\treturn min;\n\t\t\n\t\t\n\t\tNode prevMin = null;\n\t\tNode curr = this.head;\n\t\tNode prev = null;\n\t\t\n\t\t// find the smallest node\n\t\t// keep track of node who points to this minimum node\n\t\twhile(curr!=null) {\n\t\t\tif(curr.key<min.key) {\n\t\t\t\tmin = curr;\n\t\t\t\tprevMin = prev;\n\t\t\t}\n\t\t\tprev = curr;\n\t\t\tcurr = curr.rightSibling;\n\t\t}\n\t\t\n\t\t// if its the head then move one pointer ahead\n\t\tif(prevMin == null)\n\t\t\tthis.head = min.rightSibling;\n\t\telse {\n\t\t\t// else attach the previous node to the rightSibling of min\n\t\t\tprevMin.rightSibling = min.rightSibling;\n\t\t}\n\t\tmin.rightSibling = null;\n\t\t\n\t\t//return min node\n\t\treturn min;\n\t}", "public void binomialHeapDelete(Node x) {\n\t\tthis.binomialHeapDecreaseKey(x, Integer.MIN_VALUE);\n\t\tthis.binomialHeapExtractMin();\n\t}", "public void deleteMin() {\r\n\t\tif (empty())\r\n\t\t\treturn;\r\n\t\telse {\r\n\t\t\tif (this.size > 0) {\r\n\t\t\t\tthis.size--;\r\n\t\t\t}\r\n\t\t\tif (this.size == 0) {\r\n\t\t\t\tthis.empty = true;\r\n\t\t\t}\r\n\r\n\t\t\tHeapNode hN = this.min;\r\n\t\t\tint rnkCount = 0;\r\n\t\t\tHeapNode hNIterator = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\trnkCount++;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t}\r\n\t\t\tthis.HeapTreesArray[rnkCount] = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\trnkCount--;\r\n\t\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\t\tif (hNIterator != null) {\r\n\t\t\t\tbH.empty = false;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\tbH.HeapTreesArray[rnkCount] = hNIterator;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t\tbH.HeapTreesArray[rnkCount].rightBrother = null;\r\n\t\t\t\tif (hNIterator != null) {\r\n\t\t\t\t\thNIterator.leftBrother = null;\r\n\t\t\t\t}\r\n\t\t\t\trnkCount = rnkCount - 1;\r\n\t\t\t}\r\n\t\t\tthis.min = null;\r\n\t\t\tfor (int i = 0; i < this.HeapTreesArray.length; i++) {\r\n\t\t\t\tif (this.min == null) {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tif (this.HeapTreesArray[i].value < this.min.value) {\r\n\t\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\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\r\n\t\t\tif (!bH.empty()) {\r\n\t\t\t\tfor (int i = 0; i < bH.HeapTreesArray.length; i++) {\r\n\t\t\t\t\tif (bH.min == null) {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tif (bH.HeapTreesArray[i].value < bH.min.value) {\r\n\t\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\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\tthis.meld(bH);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public int Delete_Min()\n {\n \tthis.array[0]=this.array[this.getSize()-1];\n \tthis.size--; \n \tthis.array[0].setPos(0);\n \tint numOfCompares = heapifyDown(this, 0);\n \treturn numOfCompares;\n }", "public static int delete(int[] arr,int heapSize)//SortedInDecendingOrder(MinHeap)\n\t{\n\t\t/*Replaceing Last Element With Min-Root & Heapifying*/\n\t\t//Replacing\n\t\tint temp=arr[0];\n\t\tarr[0]=arr[heapSize-1];\n\t\theapSize--;\n\t\t//Heapifying\n\t\tint parentIndex=0;\n\t\tint leftIndex=1;\n\t\tint rightIndex=2;\n\t\tint minIndex=parentIndex;\n\t\twhile(leftIndex<heapSize)\n\t\t{\n\t\t\tif(arr[leftIndex]<arr[minIndex])\n\t\t\t\tminIndex=leftIndex;\n\t\t\tif(rightIndex<heapSize && arr[rightIndex]<arr[minIndex])\n\t\t\t\tminIndex=rightIndex;\n\t\t\tif(minIndex!=parentIndex)//SWAP\n\t\t\t{\n\t\t\t\tint t=arr[parentIndex];\n\t\t\t\tarr[parentIndex]=arr[minIndex];\n\t\t\t\tarr[minIndex]=t;\n\t\t\t\tparentIndex=minIndex;\n\t\t\t\tleftIndex=2*parentIndex+1;\n\t\t\t\trightIndex=leftIndex+1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\treturn temp;\n\t}", "public int Delete(DHeap_Item item)\n {\n \tthis.Decrease_Key(item, Math.abs(Integer.MIN_VALUE+item.getKey()));\n \treturn this.Delete_Min();\n }", "public void deleteMin();", "public void delete(Node<T> x) {\n decreaseKey(x, min.key);\n extractMin();\n }", "public boolean delete(int i) {\r\n\t\tif (i >= theHeap.size() || i < 0)\r\n\t\t\treturn false;\r\n\t\tInteger minimo = (Integer) getValue(i) - (Integer) getMin() + 1;\r\n\t\tdecreaseKey(i, minimo);\r\n\t\tremoveMin();\r\n\t\treturn true;\r\n\t}", "public T deleteMin();", "public void decreaseKey(MinHeap minHeap, int newKey, int vertex){\n int index = minHeap.indexes[vertex];\r\n\r\n //get the node and update its value\r\n HeapNode node = minHeap.minHeap[index];\r\n node.distance = newKey;\r\n minHeap.swim(index); // decrease the key in minHeap\r\n }", "@Override\n public int delete(int index) {\n if (isEmpty()) {\n throw new IllegalStateException(\"Heap is empty.\");\n }\n\n int keyItem = heap[index];\n heap[index] = heap[heapSize - 1];\n usedSize--;\n heapSize--;\n heapifyDown(index);\n return keyItem;\n }", "protected int removeFirst() throws Exception {\n if (size > 0) {\n int temp = heap[1];\n heap[1] = heap[size];\n heap[size] = 0;\n size--;\n return temp;\n } else {\n throw new Exception(\"No Item in the heap\");\n }\n }", "void minDecrease(int i,int x)\n {\n arr[i]=x;\n while(i!=0 && arr[MyHeap.parent(i)]>arr[i])\n {\n swap(MyHeap.parent(i),i);\n i=MyHeap.parent(i);\n }\n }", "public int remove() \r\n { \r\n int v = h[1];\r\n hPos[v] = 0; // v is no longer in heap\r\n h[N+1] = 0; // put null node into empty spot\r\n \r\n h[1] = h[N--];\r\n siftDown(1);\r\n \r\n return v;\r\n }", "private int deleteMax() {\n int ret = heap[0];\n heap[0] = heap[--size];\n\n // Move root back down\n int pos = 0;\n while (pos < size / 2) {\n int left = getLeftIdx(pos), right = getRightIdx(pos);\n\n // Compare left and right child elements and swap accordingly\n if (heap[pos] < heap[left] || heap[pos] < heap[right]) {\n if (heap[left] > heap[right]) {\n swap(pos, left);\n pos = left;\n } else {\n swap(pos, right);\n pos = right;\n }\n } else {\n break;\n }\n }\n\n return ret;\n }", "public void heapDecreaseKey(node_data node){\n\t\tint v = node.getKey();\n\t\tint i = 0;\n\t\twhile (i<_size && v!=_a[i].getKey()) i++;\n\t\tif (node.getWeight() <_a[i].getWeight()){\n\t\t\t_a[i] = node;\n\t\t\twhile (i>0 && _a[parent(i)].getWeight()>_a[i].getWeight()){\n\t\t\t\texchange(i, parent(i));\n\t\t\t\ti = parent(i);\n\t\t\t}\n\t\t}\n\t}", "public MinHeapNode<T> deleMin() {\n\t\tif(!isEmpty()) { \r\n\t\t\tMinHeapNode<T> min = heap[1]; //min node\r\n\t heap[1] = heap[currentSize--]; //move bottom node to root\r\n\t heapDown(1); //move root down\r\n\t return min; \r\n\t } \r\n\t return null; \r\n\t}", "void delete(final Key key) {\n int r = rank(key);\n if (r == size || keys[r].compareTo(key) != 0) {\n return;\n }\n for (int i = r; i < size - 1; i++) {\n keys[i] = keys[i + 1];\n values[i] = values[i + 1];\n }\n size--;\n keys[size] = null;\n values[size] = null;\n }", "public int delete(int ind)\n {\n if(isEmpty())\n {\n throw new NoSuchElementException(\"Underflow Exeption\");\n }\n else {\n int keyItem = heap[ind];\n heap[ind] = heap[heapSize-1];\n heapSize--;\n heapifyDown(ind);\n return keyItem;\n }\n }", "public void deleteMin() {\n if (isEmpty()) throw new NoSuchElementException(\"Symbol table underflow\");\n root = deleteMin(root);\n// TODO:adding check for assurance\n }", "public abstract int deleteMin();", "public void deleteMin() {\n if (isEmpty()) throw new NoSuchElementException(\"Symbol table underflow\");\n root = deleteMin(root);\n assert check();\n }", "public void deleteMin() {\n root = deleteMin(root);\n }", "public void deleteMin() {\n root = deleteMin(root);\n }", "public void delete(final Key key) {\n if (isEmpty()) return;\n int r = rank(key);\n if (r == size || (keys[r].compareTo(key) != 0)) {\n return;\n }\n for (int j = r; j < size - 1; j++) {\n keys[j] = keys[j + 1];\n values[j] = values[j + 1];\n }\n size--;\n keys[size] = null;\n values[size] = null;\n }", "private Node delete(Node h, int key) {\n if (key - h.key < 0) {\n if (!isRed(h.left) && !isRed(h.left.left))\n h = moveRedLeft(h);\n h.left = delete(h.left, key);\n } else {\n if (isRed(h.left))\n h = rotateRight(h);\n if (key - h.key == 0 && (h.right == null))\n return null;\n if (!isRed(h.right) && !isRed(h.right.left))\n h = moveRedRight(h);\n if (key - h.key == 0) {\n Node x = min(h.right);\n h.key = x.key;\n h.val = x.val;\n h.right = deleteMin(h.right);\n } else\n h.right = delete(h.right, key);\n }\n return balance(h);\n }", "public void deleteMin() {\n if (isEmpty()) throw new NoSuchElementException(\"Symbol table underflow\");\n root = deleteMin(root);\n }", "public Node<E> remove_min_node(){\r\n if (theData.size() <= 0) return null;\r\n\r\n int index = 0 ;\r\n E min = theData.get(0).getData();\r\n //searching min element\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n index = i;\r\n }\r\n }\r\n\r\n //copying element for return\r\n Node<E> item = new Node<E>(theData.get(index).getData());\r\n item.data = theData.get(index).getData();\r\n item.count = theData.get(index).getCount();\r\n\r\n //removing all occurances\r\n while (theData.get(index).count > 1)\r\n theData.get(index).count-=1;\r\n\r\n if (theData.get(index).count == 1 ){\r\n\r\n if(index != theData.size()-1){\r\n theData.set(index, theData.remove(theData.size() - 1));\r\n fixHeap(index);\r\n }else\r\n theData.remove(theData.size() - 1);\r\n }\r\n return item;\r\n }", "public int delete() {\r\n int ret = heap.get(0);\r\n heap.set(0, heap.get(heap.size() - 1));\r\n heap.remove(heap.size() - 1);\r\n\r\n siftDown(0);\r\n\r\n return ret;\r\n }", "private int remove(int index){\n\t\tremovedItem=heap[index];\n\t\theap[index]=INFINITE;\n\t\tshiftUp(index);\n\t\treturn extractMax();\n\t}", "public void deleteMax()\t\t\t\t//delete largest key\n\t{\n\t\troot=deleteMax(root);\n\t}", "public void deleteKey(int index) {\n decreaseKey(index, Integer.MIN_VALUE);\n extractMinimum();\n }", "public V remove(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t//for(int i=0;i<table[bucket].size()-1;i++){\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\t//location.remove(key\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].remove(i);\n\t\tsize--;\n\t\t/*if(table[bucket].size()==0) {\n\t\t utilizedbuckets.remove(bucket);\n\t\t}*/\n\t\treturn previousvalue;\n\t }\t\n\t}\n\treturn null;\n }", "private Node deleteMin(Node h) {\n if (h.left == null)\n return null;\n\n if (!isRed(h.left) && !isRed(h.left.left))\n h = moveRedLeft(h);\n\n h.left = deleteMin(h.left);\n return balance(h);\n }", "@Override\n public T remove() throws NoSuchElementException {\n if (size() == 0) {\n // throws NoSuchElementException if the heap is empty\n throw new NoSuchElementException();\n }\n\n // Store the root of heap before it is removed\n T root = heap[0];\n // Replace root with last element in the heap\n heap[0] = heap[size() - 1];\n // Decrease number of elements by 1, removes the old root from heap\n nelems--;\n // Trickle down the new root to the appropriate level in the heap\n trickleDown(0);\n\n // Return the old root\n return root;\n }", "public boolean decreaseKey(int i, Integer element) {\r\n\t\tif (i < 0 || i > theHeap.size() - 1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (element <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttheHeap.set(i, (T) (Integer) ((Integer) theHeap.get(i) - element));\r\n\t\tsiftUp(i);\r\n\t\treturn true;\r\n\t}", "@Test\n public void testDelMin() {\n PriorityQueue<Integer> instance = new PriorityQueue<>();\n instance.insert(7);\n instance.insert(5);\n instance.insert(6);\n assertEquals(new Integer(5), instance.delMin());\n }", "public void delete(String key){\r\n\t\tint hash = hash(key);\r\n for(int i = 0; i < M; i++){\r\n if(hash + i < M){\r\n if(keys[hash + i] != null && keys[hash + i].equals(key)){\r\n remove(hash + i);\r\n N--;\r\n break;\r\n }\r\n }else{\r\n if(keys[hash + i - M] != null && keys[hash + i - M].equals(key)){\r\n remove(hash + i - M);\r\n N--;\r\n break;\r\n }\r\n }\r\n\t\t}\r\n }", "@Override\n public E remove() {\n if (size == 0){\n throw new NoSuchElementException();\n }\n E removed = heap[0];\n heap[0] = heap[--size];\n siftDown(0);\n return removed;\n }", "public T removeMin ();", "public void deleteKey(int i) {\n\t\t\tdecreaseKey(i, Integer.MIN_VALUE);\n\t\t\textractMin();\n\t\t}", "public void HeapdecreaseKey(Vertex[] queue, int i, Vertex key) {\r\n\t\tqueue[i] = key;\r\n\t\twhile (i > 0 && queue[(i - 1) / 2].dist > queue[i].dist) {\r\n\t\t\tVertex temp = queue[(i - 1) / 2];\r\n\t\t\tVertex temp2 = queue[i];\r\n\t\t\ttemp.setHandle(i);\r\n\t\t\tqueue[i] = temp;\r\n\t\t\ttemp2.setHandle((i - 1) / 2);\r\n\t\t\tqueue[(i - 1) / 2] = temp2;\r\n\t\t\ti = (i - 1) / 2;\r\n\t\t}\r\n\t}", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "@Override\n public V remove(Object key) {\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tfor(int i=0;i<tempBucket.size();i++) {\n\t \tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \tif(tempEntry.getKey() == key) {\n\t \t\tV returnValue = tempEntry.getValue();\n\t \t\ttempBucket.remove(i);\n\t \t\tsize --;\n\t \t\treturn returnValue;\n\t \t}\n\t }\n \t\n \tif(size < buckets.length*BETA) {\n \t\trehash(SHRINK_FACTOR);\n \t}\n \t\n \treturn null;\n }", "@Test\n\tpublic void testDecreaseKey() {\n\t\tHeap heap = new Heap(testArrayList);\n\t\theap.decreaseKey(11, 1);\n\t\tArrayList<Integer> expected = new ArrayList<>(\n\t\t\t\tArrays.asList(1, 5, 3, 7, 15, 24, 32, 47, 36, 27, 38, 48, 53, 33, 93));\n\t\tassertEquals(expected, heap.getHeapArray());\n\t}", "@Test\n\tpublic void testExtractMin() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\tdouble[] expected = new double[] { 5, 7, 24, 36, 15, 48, 32, 47, 93, 27, 38, 70, 53, 33, 93 };\n\t\theap.build(testArrayList);\n\t\tassertEquals(3, heap.extractMin().key);\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t\tassertEquals(14, heap.getSize());\n\t}", "private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }", "public HuffmanTree removeMin();", "public AnyType deleteMin() {\n if (isEmpty())\n throw new UnderflowException();\n\n AnyType minItem = root.element;\n root = merge(root.left, root.right);\n\n return minItem;\n }", "public int removeMin() \n {\n\t//error\n\tif ( queue.isEmpty() ) {//nothing to remove\n\t System.out.println( \"Error! Nothing to remove!\" );\n\t throw new NoSuchElementException();\n\t}\n\n\tint ret = (int) queue.get(0);\n\tqueue.remove(0);\n\treturn ret; \n }", "public Tree<K, V> delete(K key) {\n\t\tif (key.compareTo(this.key) == 0) {\n\t\t\ttry {\n\t\t\t\tthis.key = left.max();\n\t\t\t\tthis.value = left.lookup(left.max());\n\t\t\t\tleft = left.delete(this.key); \n\t\t\t} catch (EmptyTreeException e) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.key = right.min();\n\t\t\t\t\tthis.value = right.lookup(right.min());\n\t\t\t\t\tright = right.delete(this.key);\n\t\t\t\t} catch (EmptyTreeException f) {\n\t\t\t\t\treturn EmptyTree.getInstance();\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (key.compareTo(this.key) < 0) {\n\t\t\tleft = left.delete(key);\n\t\t} else {\n\t\t\tright = right.delete(key);\n\t\t}\n\t\treturn this;\n\t}", "@Override\n public T removeMax() throws EmptyCollectionException {\n if (count == 0) {\n throw new EmptyCollectionException(\"Heap\");\n }\n T element = heap[0];\n // swap item at top of heap, with last item added\n heap[0] = heap[count - 1];\n // call heapify to see if new root needs to swap down\n heapifyRemove();\n\n count--;\n return element;\n }", "public void remove(E key) {\t//O(n)\r\n\t\t//checks if there is an element with the same value as the key\r\n\t\tint index=compareTo(key);\t\r\n\t\tif (index!=-1) {\t//element exists in array\r\n\t\t\tfor (int k=index+1; k<=size;k++) {\t//shifting element\r\n\t\t\t\tlist[k-1]=list[k];\r\n\t\t\t}\r\n\t\t\tsize--;\t//decreasing size\r\n\t\t\t//checks if the size of array is not 0 and less than 25% of the capacity of the array\r\n\t\t\tif (size!=0 && capacity/size >=4)\r\n\t\t\t\tresize(this.capacity/2);\t//decreasing size of array\r\n\t\t\tSystem.out.println(key+\" removed!\");\r\n\t\t} else {\t//element doesn't exist in array\r\n\t\t\tSystem.out.println(key +\" is not in the list\");\r\n\t\t}\r\n\t}", "public Entry remove(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n n.remove();\n size--;\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null; \n }", "@Override\n @SuppressWarnings(\"Duplicates\")\n public V remove(K key) {\n TreeNode<KeyValuePair<K, V>> previous = root;\n TreeNode<KeyValuePair<K, V>> current = root;\n boolean smaller = false;\n V value = null;\n TreeNode<KeyValuePair<K, V>> result = null;\n int iter = 0;\n while(true) {\n if(current == null) {\n break;\n }\n// System.out.println(\"Iteration #\" + iter);\n// System.out.println(\"Previous = \" + previous.getValue());\n// System.out.println(\"Current = \" + current.getValue());\n if(key.compareTo(current.getValue().getKey()) < 0) {\n// System.out.println(\"Less\");\n smaller = true;\n previous = current;\n current = current.getLeft();\n } else if(key.compareTo(current.getValue().getKey()) > 0) {\n// System.out.println(\"Larger\");\n smaller = false;\n previous = current;\n current = current.getRight();\n } else if (key.equals(current.getValue().getKey())) {\n if(current.getValue().getKey() == previous.getValue().getKey()) {\n if(current.getLeft() == null && current.getRight() == null) root = null;\n else if(current.getLeft() == null && current.getRight() != null) root = root.getRight();\n else if(current.getLeft() != null && current.getRight() == null) root = root.getLeft();\n else if(current.getRight() != null && current.getLeft() != null) current.setValue(minVal(current));\n }\n// System.out.println(\"Found the value! key:val = \" + current.getValue().getKey()+\":\"+current.getValue().getValue());\n// System.out.println(\"Previous = \" + previous.getValue());\n result = current;\n break;\n }\n iter++;\n }\n if(result != null) {\n// System.out.println(\"not null result\");\n value = result.getValue().getValue();\n if(current.getLeft() == null && current.getRight() == null) {\n if(smaller) previous.setLeft(null);\n else previous.setRight(null);\n } else if(current.getLeft() != null && current.getRight() == null) {\n if(smaller) previous.setLeft(current.getLeft());\n else previous.setRight(current.getLeft());\n } else if(current.getLeft() == null && current.getRight() != null) {\n// System.out.println(\"Right not null\");\n// System.out.println(\"Previous = \" + previous.getValue());\n// System.out.println(\"Current = \" + current.getValue());\n if(smaller) previous.setLeft(current.getRight());\n else previous.setRight(current.getRight());\n } else {\n// System.out.println(\"Else\");\n current.setValue(minVal(current));\n }\n size--;\n return value;\n }\n return null;\n }", "public T deleteMin()\n\t{\t\n\t\t//declating variables\n\t\tint minIndex = 0;\n\t\tboolean flag = false;\n\t\tboolean flag2 = false;\n\t\t//if size == 0; returns null\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t//if checks size and deletes accordingly.\n\t\tif(size == 1)\n\t\t{\n\t\t\tT tempo = array[0];\n\t\t\tarray[0] = null;\n\t\t\tsize--;\n\t\t\treturn tempo;\n\n\t\t}\n\n\t\tif(size == 2)\n\t\t{\n\t\t\tT temp = array[0];\n\t\t\tarray[0] = array[1];\n\t\t\tarray[1] = null;\n\t\t\tsize--;\n\t\t\treturn temp;\n\n\t\t}\n\t\tif(size == 3)\n\t\t{\n\t\t\tT tempo = array[0];\n\t\t\tint small = grandChildMin(1, 2);\n\t\t\tarray[0] = array[small];\n\t\t\tif(small == 2)\n\t\t\t{\n\t\t\t\tarray[small] = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tarray[1] = array[2];\n\t\t\t\tarray[2] = null;\n\t\t\t}\n\n\t\t\tsize--;\n\t\t\treturn tempo;\n\t\t}\n\n\t\t//if size > 3 does sophisticated deleting\n\t\tT temp = array[0];\n\t\tarray[0] = array[size-1];\n\t\tarray[size-1] = null;\n\t\tsize--;\n\t\tint index = 0;\n\n\t\t//gets the smallest of the children & grandchildren\n\t\tint smallest = min(index).get(0);\n\t\t//while it has grandchildren, keeps going\n\t\twhile(smallest != 0)\n\t\t{\n\t\t\t//doesn't switch if im less than the smallest grandchild\n\t\t\t//& breaks\n\t\t\tif(object.compare(array[index], array[smallest]) <= 0 )\n\t\t\t{\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//special case when i could switch with child or grandchild\n\t\t\tif( min(index).size() > 1)\n\t\t\t{\n\t\t\t\tflag2 = true;\n\t\t\t}\n\n\t\t\t//switches the locations and updates index\n\t\t\tT lemp = array[index];\n\t\t\tarray[index] = array[smallest];\n\t\t\tarray[smallest] = lemp;\n\t\t\tindex = smallest;\n\t\t\tsmallest = min(smallest).get(0);\n\n\t\t}\n\t\t//if i dont switch, i check if i have to switch then percolate back up\n\t\tif(flag == true)\n\t\t{\n\t\t\tif(object.compare(array[index], array[grandChildMin(2*index+1, 2*index+2)]) > 0)\n\t\t\t{\n\t\t\t\tint mIndex = grandChildMin(2*index+1, 2*index+2);\n\t\t\t\tT k = array[mIndex];\n\t\t\t\tarray[mIndex] = array[index];\n\t\t\t\tarray[index] = k;\n\n\t\t\t\tint y = mIndex;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT f = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = f;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(object.compare(array[index], array[(index-1)/2]) > 0)\n\t\t\t{\n\t\t\t\tT m = array[(index-1)/2];\n\t\t\t\tarray[(index-1)/2] = array[index];\n\t\t\t\tarray[index] = m;\n\t\t\t\tint y = (index-1)/2;\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT k = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = k;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse if(flag2 == true)\n\t\t{\n\t\t\tint y = index;\n\n\t\t\tif(getLevel(y+1) % 2 == 1)\n\t\t\t{\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT k = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = k;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(object.compare(array[y], array[(y-3)/4]) < 0 && y > 2)\n\t\t\t\t{\n\t\t\t\t\tT k = array[(y-3)/4];\n\t\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\t\tarray[y] = k;\n\t\t\t\t\ty = (y-3)/4;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\n\t\telse if(object.compare(array[index], array[grandChildMin(2*index +1, 2*index+2)]) > 0 && grandChildMin(2*index +1, 2*index+2) != 0)\n\t\t{\n\t\t\tminIndex = grandChildMin(2*index+1, 2*index+2);\n\t\t\tT wemp = array[index];\n\t\t\tarray[index] = array[minIndex];\n\t\t\tarray[minIndex] = wemp;\n\n\t\t\tint y = minIndex;\n\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t{\n\t\t\t\tT demp = array[(y-3)/4];\n\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\tarray[y] = demp;\n\t\t\t\ty = (y-3)/4;\n\t\t\t}\n\t\t}\n\n\t\telse if (object.compare(array[index], array[(index-1)/2]) > 0) \n\t\t{\n\n\t\t\tT femp = array[(index-1)/2];\n\t\t\tarray[(index-1)/2] = array[index];\n\t\t\tarray[index] = femp;\n\n\t\t\tint y = (index-1)/2;\n\t\t\twhile(object.compare(array[y], array[(y-3)/4]) > 0 && y > 2)\n\t\t\t{\n\t\t\t\tT demp = array[(y-3)/4];\n\t\t\t\tarray[(y-3)/4] = array[y];\n\t\t\t\tarray[y] = demp;\n\t\t\t\ty = (y-3)/4;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\treturn temp;\n\t}", "public E removeMin() {\n // TODO: YOUR CODE HERE\n E min = getElement(1);\n swap(1, size());\n setElement(size(), null);\n bubbleDown(1);\n size -= 1;\n return min;\n }", "public void removeMin() {\n\t\troot = removeMin(root);\n\t}", "private A deleteLargest(int subtree) {\n return null; \n }", "public Node deleteNode(Node root, int key) {\n if (root == null)\n return root;\n\n /* Otherwise, recur down the tree */\n if (key < root.data)\n root.left = deleteNode(root.left, key);\n else if (key > root.data)\n root.right = deleteNode(root.right, key);\n\n // if key is same as root's\n // key, then This is the\n // node to be deleted\n else {\n // node with only one child or no child\n if (root.left == null)\n return root.right;\n else if (root.right == null)\n return root.left;\n\n // node with two children: Get the inorder\n // successor (smallest in the right subtree)\n root.data = minValue(root.right);\n\n // Delete the inorder successor\n root.right = deleteNode(root.right, root.data);\n }\n\n return root;\n }", "public Key ceiling(Key key)\t\t\t\t//smallest key greater than or equal to the given key\n\t{\n\t\tNode x=ceiling(root,key);\n\t\tif(x!=null)\n\t\t\treturn x.key;\n\t\telse return null;\n\t}", "public Entry remove(Object key) {\n int hashCode = key.hashCode();\n int index = compFunction(hashCode);\n\n if(defTable[index].isEmpty()) {\n return null;\n }\n\n Entry entry = new Entry();\n ListNode current = defTable[index].front();\n try{\n while(true) {\n if(( (Entry) current.item()).key().equals(key)) {\n entry.key = key;\n entry.value = ((Entry) current.item()).value();\n current.remove();\n size--;\n return entry;\n }\n if(current==defTable[index].back()) {\n break;\n }\n current = current.next();\n }\n } catch(Exception err) {\n System.out.println(err);\n }\n return null;\n }", "void MinInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] > arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }", "public void deleteKey(int i)\n\t{\n\t decreaseKey(i, Integer.MAX_VALUE);\n\t extractMax();\n\t}", "public Node binomialHeapMinimum() {\n\t\tNode y = null;\n\t\tNode x = this.head;\n\t\tint min = Integer.MAX_VALUE;\n\t\twhile(x!=null) {\n\t\t\tif (x.key < min) {\n\t\t\t\tmin = x.key;\n\t\t\t\ty = x;\n\t\t\t}\n\t\t\tx = x.rightSibling;\n\t\t}\n\t\treturn y;\n\t}", "public V remove(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> temp = entries[index];\n Entry<K, V> previous = temp;\n\n while (temp != null) {\n final Entry<K, V> next = temp.nextEntry;\n if (hash == temp.hash && key == temp.get()) {\n size--;\n if (previous == temp) {\n entries[index] = next;\n } else {\n previous.nextEntry = next;\n }\n return temp.value;\n }\n previous = temp;\n temp = next;\n }\n\n return null;\n }", "public Node removeMin() {\n \t\t// TODO Complete this method!\n \t\tif (indexOfLeastPriority == 2) {\n \t\t\tNode toReturn = getNode(1);\n \t\t\tsetNode(1, null);\n \t\t\treturn toReturn;\n \t\t}\n \t\tint indexOfReplacement = indexOfLeastPriority - 1;\n \t\tNode nodeOfReplacement = getNode(indexOfReplacement);\n \t\tNode toRemove = getNode(1);\n \t\tsetNode(indexOfReplacement, null);\n \t\tsetNode(1, nodeOfReplacement);\n \t\tbubbleDown(1);\n \t\t//decrement IoLP\n \t\tindexOfLeastPriority--;\n \t\treturn toRemove;\n \t}", "boolean remMinEltTester(IHeap Heap, IBinTree Tree){\n\t\t\tLinkedList<Integer> treeResult2 = Tree.getTreeList();\n\t\t\tLinkedList<Integer> newHeapList2 = Heap.getTreeList();\n\t\t\t\n\t\t\tnewHeapList2.sort(null);\n\t\t\t\n\t\t\tif (newHeapList2.size() > 0) {\n\t\t\t\tnewHeapList2.remove(0);\n\t\t\t}\n\t\t\t\n\t\t\ttreeResult2.sort(null);\n\t\t\t\n\t\t\t\n\t\t\treturn ((treeResult2.equals(newHeapList2)) && Heap.isHeap());\n\t\t}", "protected MapElement removeElement(int key) {\n int index = key % capacity;\n if (index < 0) {\n index = -index;\n }\n\n if (map[index] == null) {\n return null;\n } else {\n MapElement me = map[index];\n MapElement prev = null;\n\n while (true) {\n if (me.getKey() == key) {\n // Keys match\n if (me.beforeRemove()) {\n if (prev == null) {\n // The first element in the chain matches\n map[index] = me.getNext();\n } else {\n // An element further down in the chain matches - \n // delete it from the chain\n prev.setNext(me.getNext());\n }\n contents--;\n }\n return me;\n } else {\n // Keys don't match, try the next element\n prev = me;\n me = me.getNext();\n if (me == null) {\n return null;\n }\n }\n }\n }\n }", "private Node<Value> delete(Node<Value> x, String key, int d)\r\n {\r\n if (x == null) return null;\r\n char c = key.charAt(d);\r\n if (c > x.c) x.right = delete(x.right, key, d);\r\n else if (c < x.c) x.left = delete(x.left, key, d);\r\n else if (d < key.length()-1) x.mid = delete(x.mid, key, d+1);\r\n else if (x.val != null) { x.val = null; --N; }\r\n if (x.mid == null && x.val == null)\r\n {\r\n if (x.left == null) return x.right;\r\n if (x.right == null) return x.left;\r\n Node<Value> t;\r\n if (StdRandom.bernoulli()) // to keep balance\r\n { t = min(x.right); x.right = delMin(x.right); }\r\n else\r\n { t = max(x.left); x.left = delMax(x.left); }\r\n t.right = x.right;\r\n t.left = x.left;\r\n return t;\r\n }\r\n return x;\r\n }", "private Node deleteMin(Node n)\n {\n if (n.left == null) \n return n.right;\n n.left = deleteMin(n.left); \n n.count= 1 + size(n.left)+ size(n.right); \n return n;\n }", "public void delete(int key) {\r\n\t\tint i = ArrayUtils.binarySearch(keys, size, key);\r\n\r\n\t\tif (i >= 0) {\r\n\t\t\tremoveAt(i);\r\n\t\t}\r\n\t}", "public void heapDecreaseKey(Entry<K,V>[] a,int pos, int val )\r\n\t{\n\t\tEntry<K,V> e = a[pos];\r\n\t\tif(e.getKey().intValue()<val)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wrong input\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t// compare it with parent\r\n\t\tK k = (K) new Integer(val);\r\n\t\te.setKey(k);\r\n\t\twhile(pos>0 && (a[parent(pos)].getKey().intValue()>a[pos].getKey().intValue()) )\r\n\t\t{\r\n\t\t\tswap(a,pos,parent(pos));\r\n\t\t\tpos = parent(pos);\r\n\t\t}\r\n\r\n\t}", "public FHeapNode removeMax()\r\n {\r\n FHeapNode z = maxNode;\r\n //hmap.remove(maxNode.gethashtag());\t\t\t\t\t\t\t\t\t\t//remove the node from the hashtable\r\n \r\n if (z != null) \r\n\t\t{\r\n \t for (HashMap.Entry<String, FHeapNode> entry : hmap.entrySet()) \r\n {\r\n \tif(entry.getValue() == maxNode)\r\n \t{\r\n \t\thmap.remove(entry.getKey());\r\n \t\tbreak;\r\n \t}\r\n }\r\n \t \r\n int numKids = z.degree;\r\n FHeapNode x = z.child;\r\n FHeapNode tempRight;\r\n\r\n while (numKids > 0) \t\t\t\t\t\t\t\t\t\t\t\t\t// iterate trough all the children of the max node\r\n\t\t\t{\r\n tempRight = x.right; \r\n x.left.right = x.right;\t\t\t\t\t\t\t\t\t\t\t\t// remove x from child list\r\n x.right.left = x.left;\r\n \r\n x.left = maxNode;\t\t\t\t\t\t\t\t\t\t\t\t\t// add x to root list of heap\r\n x.right = maxNode.right;\r\n maxNode.right = x;\r\n x.right.left = x;\r\n \r\n x.parent = null;\t\t\t\t\t\t\t\t\t\t\t\t\t// set parent[x] to null\r\n x = tempRight;\r\n numKids--;\r\n }\r\n\t\t\tz.left.right = z.right;\t\t\t\t\t\t\t\t\t\t\t\t\t// remove z from root list of heap\r\n z.right.left = z.left;\r\n\r\n if (z == z.right)\r\n\t\t\t{\r\n maxNode = null;\r\n } \r\n\t\t\telse \r\n\t\t\t{\r\n maxNode = z.right;\r\n meld();\r\n } \r\n nNodes--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// decrement size of heap\r\n }\r\n \r\n\r\n return z;\r\n }", "public Node binomialHeapExtractMin() {\n\t\tNode x = this.deleteMin();\n\t\t\n\t\t// make a new heap\n\t\t// reverse the child list of x and assign it to the head of new heap.\n\t\tBinomialHeap hPrime = new BinomialHeap();\n\t\thPrime.head = reverseLinkedList(x.leftChild);\n\t\t\n\t\t// perform union on the child tree list of x and the original heap\n\t\tBinomialHeap h = this.binomialHeapUnion(hPrime);\n\t\tthis.head = h.head;\n\t\t\n\t\t// return the minimum node\n\t\treturn x;\n\t}", "public void decreaseKey(int i, int new_val)\n\t{\n\t Heap[i] = new_val;\n\t while (i != 0 && Heap[parent(i)] < Heap[i])\n\t {\n\t swap(i, parent(i));\n\t i = parent(i);\n\t }\n\t}", "@Override\n\tpublic String remove(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key)) {\n\t\t\t\thashArray[hashVal] = deleted;\n\t\t\t\tthis.numOfItems--;\n\t\t\t\treturn key;\n\t\t\t}\n\t\t\thashVal++;\n\t\t\thashVal = hashVal % size;\n\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic E remove() \r\n\t{\r\n\t\tif(theData.isEmpty())\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t//Save the top of the Heap.\r\n\t\tE result = theData.get(0);\r\n\t\t\r\n\t\t//If only one item then remove it.\r\n\t\tif(theData.size() == 1)\r\n\t\t{\r\n\t\t\ttheData.remove(0);\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Remove the last item from the ArrayList and place it into\r\n\t\t * the first position. \r\n\t\t*/\r\n\t\ttheData.set(0, theData.remove(theData.size() - 1));\r\n\t\t\r\n\t\t//The parent starts at the top.\r\n\t\tint parent = 0;\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tint leftChild = 2 * parent + 1;\r\n\t\t\tif(leftChild >= theData.size())\r\n\t\t\t{\r\n\t\t\t\tbreak; //Out of Heap.\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint rightChild = leftChild + 1;\r\n\t\t\tint minChild = leftChild; //Assume leftChild is smaller.\r\n\t\t\t\r\n\t\t\t//See whether rightChild is smaller.\r\n\t\t\tif(rightChild < theData.size()\r\n\t\t\t\t&& compare(theData.get(leftChild), theData.get(rightChild)) > 0)\r\n\t\t\t{\r\n\t\t\t\tminChild = rightChild;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//assert: minChild is the index of the smaller child.\r\n\t\t\t//Move smaller child up the heap if necessary.\r\n\t\t\tif(compare(theData.get(parent), theData.get(minChild)) > 0)\r\n\t\t\t{\r\n\t\t\t\tswap(parent, minChild);\r\n\t\t\t\tparent = minChild;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbreak; //Heap property is restored.\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private void heapifyRemove() {\n // this is called after the item at the bottom-left has been put at the root\n // we need to see if this item should swap down\n int node = 0;\n int left = 1;\n int right = 2;\n int next;\n\n // store the item at the root in temp\n T temp = heap[node];\n\n // find out where we might want to swap root \n if ((heap[left] == null) && (heap[right] == null)) {\n next = count; // no children, so no swapping\n return;\n } else if (heap[right] == null) {\n next = left; // we will check left child\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) { // figure out which is the biggest of the two children\n next = left; // left is bigger than right, so check left child\n } else {\n next = right; // check right child\n }\n\n // compare heap[next] to item temp, if bigger, swap, and then repeat process\n while ((next < count) && (((Comparable) heap[next]).compareTo(temp) > 0)) {\n heap[node] = heap[next];\n node = next;\n left = 2 * node + 1; // left child of current node\n right = 2 * (node + 1); // right child of current node\n if ((heap[left] == null) && (heap[right] == null)) {\n next = count;\n } else if (heap[right] == null) {\n next = left;\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) {\n next = left;\n } else {\n next = right;\n }\n }\n heap[node] = temp;\n\n }", "void Min_heapfy(Map<Integer, Integer> heapmap, SimpleVertex simpleVertex) {\n\n\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\t\t\theapmap.put(node.two.Vertexname, node.weight);\n\t\t\tmapVertixEdge.put(node.two.Vertexname, node);\n\n\t\t}\n\t\theapmap.remove(simpleVertex.Vertexname);\n\n\t\tfor (Integer v : heapmap.values()) {\n\t\t\tarr[count++] = v;\n\t\t\tSystem.out.println(v);\n\t\t}\n\n\t\t// arr = Arrays.copyOfRange(arr, 1, arr.length);\n\t\tint edgeWeight = new HeapForPrims().Max_heapfy(arr, 1);\n\n\t\tSimpleEdge removeedge = null;\n\t\tIterator<Entry<Integer, SimpleEdge>> it = mapVertixEdge.entrySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntry<Integer, SimpleEdge> pair = it.next();\n\t\t\tif (pair.getValue().weight == edgeWeight) {\n\t\t\t\tresultedge.add(pair.getValue());\n\t\t\t\tpair.getValue().EdgeVisited = true;\n\t\t\t\tremoveedge = pair.getValue();\n\n\t\t\t}\n\n\t\t}\n\t\twhile (mapVertixEdge.values().remove(removeedge))\n\t\t\t;\n\n\t\tMin_heapfy(heapmap, resultedge.get(resultedge.size() - 1).two);\n\n\t}", "public static int deleteMaxHeap(Heap<Integer> heap) {\n\t\tint temp;\n\t\tif (heap.count == 0) {\n\t\t\treturn -1;\n\t\t}\n\t\ttemp = heap.elements[0];\n\t\theap.elements[0] = heap.elements[heap.count - 1];\n\t\theap.count--;\n\t\theapifyMax(heap, 0);\n\t\treturn temp;\n\t}", "public E extractMin() {\r\n\t\tif (this.size == 0) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Heap underflow. Cannot extractMin from an empty heap.\");\r\n\t\t}\r\n\t\tE min = this.objectHeap[0];\r\n\t\tdouble costMin = this.costHeap[0];\r\n\t\tthis.objectHeap[0] = this.objectHeap[this.size - 1];\r\n\t\tthis.costHeap[0] = this.costHeap[this.size - 1];\r\n\t\tthis.size -= 1;\r\n\t\tthis.locations.delete(min);\r\n\t\tthis.locations.put(this.objectHeap[0], 0);\r\n\t\tthis.minHeapify(0);\r\n\t\treturn min;\r\n\t}", "public boolean decreaseKey(Node<T> x, T k) {\n if (x.key.compareTo(k) < 0) {\n return false;\n }\n x.key = k;\n Node<T> y = x.parent;\n if (y != null && x.key.compareTo(y.key) <= 0) {\n cut(x, y);\n cascadingCut(y);\n }\n if (x.key.compareTo(min.key) <= 0) {\n min = x;\n }\n\n return true;\n }", "private Node removeMin(Node node){\n if(node == null)\n return null;\n else if(node.left == null) {//use right child to replace this node (min value node)\n if(node.count!=0){ //multiple value in same node\n node.count--;\n return node;\n }\n else{\n decDepth(node.right); //maintain depth when chain in right tree\n return node.right;\n }\n }\n\n //walk through left branch\n node.left = removeMin(node.left);\n if(node!=null) node.size--; // the min value must be removed\n return node;\n }", "public node_data heapMinimum(){return _a[0];}", "@Override\n public V remove(K key) {\n Entry<K, V> removed = new Entry<>(null, null);\n if(containsKey(key)) {\n LinkedList<Entry<K, V>> pointer = entryArr[Math.floorMod(key.hashCode(), entryArr.length)];\n for(int i = 0; i < pointer.size(); i++) {\n if(pointer.get(i).keyEquals(new Entry<K, V>(key, null))) {\n removed = pointer.get(i);\n pointer.remove(pointer.get(i));\n break;\n }\n }\n size--;\n }\n return removed.value;\n }", "void Minheap()\n {\n for(int i= (size-2)/2;i>=0;i--)\n {\n minHeapify(i);\n }\n }", "public void remove(int key) {\n newkey = hashfunc(key);\n arr[newkey]= -1;\n \n }", "private BSTnode<K> actualDelete(BSTnode<K> n, K key) {\n\t\tif (n == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (key.equals(n.getKey())) {\n\t\t\t// n is the node to be removed\n\t\t\tif (n.getLeft() == null && n.getRight() == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tif (n.getLeft() == null) {\n\t\t\t\treturn n.getRight();\n\t\t\t}\n\t\t\tif (n.getRight() == null) {\n\t\t\t\treturn n.getLeft();\n\t\t\t}\n\n\t\t\t// if we get here, then n has 2 children\n\t\t\tK smallVal = smallest(n.getRight());\n\t\t\tn.setKey(smallVal);\n\t\t\tn.setRight(actualDelete(n.getRight(), smallVal));\n\t\t\treturn n;\n\t\t}\n\n\t\telse if (key.compareTo(n.getKey()) < 0) {\n\t\t\tn.setLeft(actualDelete(n.getLeft(), key));\n\t\t\treturn n;\n\t\t}\n\n\t\telse {\n\t\t\tn.setRight(actualDelete(n.getRight(), key));\n\t\t\treturn n;\n\t\t}\n\t}", "private Node<Value> delMin(Node<Value> x)\r\n {\r\n if (x.left == null) return x.right;\r\n x.left = delMin(x.left);\r\n return x;\r\n }", "public void removeMin() {\n if (isEmpty()) throw new RuntimeException(\"underflow\");\n root = removeMin(root);\n }", "public void remove(int key) {\n\t\t// Make sure that the key is present.\n\t\tassert (find(key));\n\t\t\n\t\tif (key == head.key) {\n\t\t\thead = head.next;\n\t\t\treturn;\n\t\t}\n\t\tIntNode curr;\n\t\tfor (curr = head; curr.next != null && curr.next.key < key; curr = curr.next);\n\t\tcurr.next = curr.next.next;\n\t}", "public Entry remove(Object key) {\r\n if (find(key) == null) {\r\n return null;\r\n } else { \r\n try{\r\n int index = compFunction(key.hashCode());\r\n if (hash_table[index].size() == 1) {\r\n Entry entry = (Entry)hash_table[index].front().item();\r\n hash_table[index] = null;\r\n return entry;\r\n } else { \r\n DListNode current = (DListNode) hash_table[index].front();\r\n while(current.isValidNode()){\r\n Entry pair = (Entry) current.item();\r\n if(pair.key().equals(key)){\r\n current.remove();\r\n size--;\r\n return pair;\r\n }\r\n current = (DListNode) current.next();\r\n }\r\n \r\n System.out.println(\"Couldn't find the item\");\r\n return null;\r\n }\r\n \r\n }catch(InvalidNodeException e){\r\n return null;\r\n }\r\n }\r\n }", "private void minHeapify(int v, int heapSize){\n\t\tint smallest;\n\t\tint left = leftChild(v);\n\t\tint right = rightChild(v);\n\t\tif (left<heapSize && _a[left].getWeight()<_a[v].getWeight()){\n\t\t\tsmallest = left;\n\t\t}\n\t\telse{\n\t\t\tsmallest = v;\n\t\t}\n\t\tif (right<heapSize && _a[right].getWeight()<_a[smallest].getWeight()){\n\t\t\tsmallest = right;\n\t\t}\n\t\tif (smallest!=v){\n\t\t\texchange(v, smallest);\n\t\t\tminHeapify(smallest, heapSize);\n\t\t}\t\t\n\t}" ]
[ "0.79818904", "0.75186735", "0.75125664", "0.73099387", "0.73029304", "0.7288151", "0.72187555", "0.7198345", "0.7140635", "0.71195275", "0.7078159", "0.7057601", "0.70505744", "0.6938909", "0.6853702", "0.6850439", "0.6771413", "0.6763678", "0.6752426", "0.67393637", "0.6715815", "0.67139196", "0.66952115", "0.66781104", "0.66577893", "0.6653847", "0.66498005", "0.66413647", "0.6610244", "0.655955", "0.655955", "0.6557315", "0.6541017", "0.65290076", "0.6527506", "0.650073", "0.6455719", "0.6452046", "0.6450668", "0.6435272", "0.64192545", "0.64183515", "0.63968813", "0.6396518", "0.63823533", "0.63664883", "0.63547707", "0.63463396", "0.6341354", "0.63323164", "0.63105667", "0.63047487", "0.62988955", "0.6288642", "0.6288454", "0.6285809", "0.6250559", "0.6244067", "0.62414736", "0.6233473", "0.6231465", "0.62245494", "0.6202048", "0.6198592", "0.6197186", "0.6193819", "0.61918384", "0.61868924", "0.6186451", "0.6179199", "0.61582875", "0.6149057", "0.6132776", "0.6131534", "0.61314774", "0.61259097", "0.61229354", "0.61193174", "0.6116822", "0.6113659", "0.6107912", "0.6060839", "0.6024906", "0.60158914", "0.60146683", "0.60076314", "0.6005902", "0.60058296", "0.60012", "0.5999703", "0.5996368", "0.59953415", "0.59763485", "0.5976217", "0.5940654", "0.593907", "0.5932689", "0.5919825", "0.5914309", "0.59090066", "0.590417" ]
0.0
-1
The upper bound on the maximum degree. Time complexity: O(1) Space complexity: O(1)
protected int getDegreeBound(double n) { // The base should be the golden ratio: 1.61803... return (int) Math.floor(Math.log(n) / Math.log(1.6)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int findMaxDegree() {\n\t\tint gradoMax = 0;\n\t\t\n\t\tfor(String s : grafo.vertexSet()) {\n\t\t\tint grado = grafo.degreeOf(s);\n\t\t\t\n\t\t\tif(grado > gradoMax) {\n\t\t\t\tgradoMax = grado;\n\t\t\t\tverticeGradoMax = s;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn gradoMax;\n\t}", "double getRight(double max);", "public int getMaximumPoints();", "double getMax();", "double getMax();", "public float getMaxBankAngle() { return MaxBankAngle; }", "public double calculateMaximumAverageDegree(double gamma, int max_dist_length)\n\t{\n\t\tdouble ak = zeta(gamma-1,1)/zeta(gamma,1);\n\t\t\n\t\t ak = (zeta(gamma-1,max_dist_length)-1)/(zeta(gamma,max_dist_length)-1);\n\t\treturn ak;\n\t}", "int getMaximum();", "static int maxSum()\n {\n // Find array sum and i*arr[i] with no rotation\n int arrSum = 0; // Stores sum of arr[i]\n int currVal = 0; // Stores sum of i*arr[i]\n for (int i=0; i<arr.length; i++)\n {\n arrSum = arrSum + arr[i];\n currVal = currVal+(i*arr[i]);\n }\n\n // Initialize result as 0 rotation sum\n int maxVal = currVal;\n\n // Try all rotations one by one and find\n // the maximum rotation sum.\n for (int j=1; j<arr.length; j++)\n {\n currVal = currVal + arrSum-arr.length*arr[arr.length-j];\n if (currVal > maxVal)\n maxVal = currVal;\n }\n\n // Return result\n return maxVal;\n }", "public long getPropertyBalanceMax();", "private static int upperBound(int[] A, int target) {\n int max = A.length;\n int min = -1;\n while (max - min > 1) {\n int mid = ( max + min ) / 2;\n if(A[mid] <= target) {\n min = mid;\n } else {\n max = mid;\n }\n }\n\n return max;\n\n }", "public float maxTorque();", "public float getMaxCY5();", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "public double getRight(double max) {\n return Math.max(max, max - (this.length * Math.cos(Math.toRadians(this.theta)))); \n }", "Double getMaximumValue();", "public int getMaxFloor();", "public abstract int getMaximumValue();", "java.math.BigDecimal getMaximum();", "int getMax( int max );", "int max();", "public int getDegree () {\n int size = myCoefficients.size();\n if (size <= 0) {\n return -1;\n }\n else {\n return size - 1;\n }\n }", "public int findMax(){\n return nilaiMaks(this.root);\n }", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "@Override\n public int degree() {\n boolean first = true;\n int highestKey = 0;\n for (Map.Entry<Integer, Integer> e : this.values.entrySet()) {\n int expo = e.getKey();\n int coeff = e.getValue();\n if (first) {\n highestKey = expo;\n first = false;\n } else if (coeff != 0 && expo > highestKey)\n highestKey = expo;\n }\n return highestKey;\n }", "int getMax();", "protected int findHighestDegree(int start)\n\t{\n\t\tif ((start < getNeighborhoodArray().length) && (start >= 0))\n\t\t{\n\t\t\tint highest = getNeighborhoodArray()[start];\n\t\t\tint highestNode = start;\n\t\t\n\t\t\tfor (int i = (start + 1); i < getNeighborhoodArray().length; i++)\n\t\t\t{\n\t\t\t\tif (getNeighborhoodArray()[i] > highest)\n\t\t\t\t{\n\t\t\t\t\thighest = getNeighborhoodArray()[i];\n\t\t\t\t\thighestNode = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn highestNode;\n\t\t}\n\t\treturn -1;\n\t}", "private int largestPowerOf2(int n) { \n\t\tint res = 2;\n\t\twhile (res < n) {\n\t\t\tint rem = res;\n\t\t\tres = (int) Math.pow(res, 2);\n\t\t\tif (res > n)\n\t\t\t\treturn rem;\n\t\t}\n\t\treturn res;\n\t}", "int getMaxRotation();", "abstract int degree(int i);", "public int upperBound() {\n\t\tif(step > 0)\n\t\t\treturn last;\n\t\telse\n\t\t\treturn first;\n\t}", "public float getMaxCY3();", "public int getDegree() {return getParametersArray().length - 1;}", "public double max() {\n/* 323 */ Preconditions.checkState((this.count != 0L));\n/* 324 */ return this.max;\n/* */ }", "private RolapCalculation getAbsoluteMaxSolveOrder() {\n // Find member with the highest solve order.\n RolapCalculation maxSolveMember = calculations[0];\n for (int i = 1; i < calculationCount; i++) {\n RolapCalculation member = calculations[i];\n if (expandsBefore(member, maxSolveMember)) {\n maxSolveMember = member;\n }\n }\n return maxSolveMember;\n }", "@Override\n\tprotected double getUpperBound() {\n\t\treturn 0;\n\t}", "int getMaxEXP();", "int getMaxEXP();", "public float maxSpeed();", "java.math.BigDecimal getWBMaximum();", "public double getMaximumDouble() {\n/* 255 */ return this.max;\n/* */ }", "@Override\n\tpublic int getMaxIterations() {\n\t\treturn maxIterations;\n\t}", "public double getMaximum() {\n return (max);\n }", "private int getBestGuess(double values[]){\n int maxIndex=0;\n double max=0;\n for(int i=0;i<4;i++){\n if(values[i]>max) {\n max = values[i];\n maxIndex=i;\n }\n }\n return maxIndex+1;\n }", "double getMaxActiveAltitude();", "int getMax_depth();", "E maxVal();", "private int max(int profondeur)\n\t{\n\t\tif(profondeur == 0 || grille.fin())\n\t\t{\n\t\t\treturn eval();\n\t\t}\n\t\tint max_val = -1000;\n\t\tfor(int y = 0; y < grille.getTaille(); y++)\n\t\t{\n\t\t\tfor(int x = 0; x < grille.getTaille(); x++)\n\t\t\t{\n\t\t\t\tCoordonnee test = new Coordonnee(x, y);\n\t\t\t\tif(grille.getCase(test).getContenu() == grille.getCaseVide())\n\t\t\t\t{\n\t\t\t\t\tgrille.jouer(test, getPion());\n\t\t\t\t\tint val = min(profondeur-1);\n\t\t\t\t\t//System.out.println(x + \" \" + y + \" : \" + val);\n\t\t\t\t\t//grille.afficher();\n\t\t\t\t\tif(val > max_val)\n\t\t\t\t\t{\n\t\t\t\t\t\tmax_val = val;\n\t\t\t\t\t}\n\t\t\t\t\tannuler(test);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max_val;\n\t}", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getDegree();", "int getDegree();", "public double getMaximumValue() { return this.maximumValue; }", "public float getMaxAlturaCM();", "public int getDegree() {\n return coefs.length - 1;\n }", "public float getMaximumFloat() {\n/* 266 */ return (float)this.max;\n/* */ }", "@Override\n public int iamax(IComplexNDArray x) {\n return NativeBlas.icamax(x.length(), x.data(), x.offset(), 1) - 1;\n }", "public double max(Triangle figure) {\n double[] sides = {\n figure.getA().distanceTo(figure.getB()),\n figure.getA().distanceTo(figure.getC()),\n figure.getC().distanceTo(figure.getB()),\n };\n double maxSide = 0;\n for (double i : sides) {\n if (maxSide < i) {\n maxSide = i;\n }\n }\n return maxSide;\n }", "BigInteger getMax_freq();", "private static final double maxDecel(double speed) {\n return limit(1, speed * 0.5 + 1, 2);\n }", "public final int getMaxIterations()\r\n\t{\r\n\t\treturn maxIterations;\r\n\t}", "float xMax();", "public float getMaxValue();", "public Point getMax () {\r\n\r\n\treturn getB();\r\n }", "public final double getMax() {\r\n\t\treturn this.m_max;\r\n\t}", "private int degreeFromCoefficients(int numOfCoefficients) {\n return (int) (0.5*(-1 + (int)(Math.sqrt(1+8*numOfCoefficients))))-1;\n }", "public int getMaxpower() {\n\t\treturn 0;\r\n\t}", "public static double GetMaxPassengers() \r\n {\r\n return maxPassengers;\r\n }", "abstract int getMaxLevel();", "private static void solve() {\n\t\tList<Integer> rgtMax= new ArrayList<>();\n\t\tList<Integer> lftMax= new ArrayList<>();\n\t\t\n\t\tpopulateRgtMax(rgtMax);\n\t\tpopulateLftMax(lftMax);\n\t\t\t\t\n\t\tint area=findMaxArea(lftMax,rgtMax);\n\t\tSystem.out.println(area);\n\t\t\n\t}", "public double getMaxRange() {\n return maxRange;\n }", "public Factura getMaxNumeroFactura();", "public double getMaximumPositionErrorInArcsec ( ) {\r\n\t\treturn 5.0;\r\n\t}", "public double getMaximumPositionErrorInArcsec ( ) {\r\n\t\treturn 5.0;\r\n\t}", "private int FindMaxSum(int[] arr, int length) {\r\n\t\t\r\n\t\tint incl = arr[0];\r\n\t\tint excl = 0;\r\n\t\tint excl_new = 0;\r\n\t\t\r\n\t\tfor(int i = 1;i<arr.length;i++)\r\n\t\t{\r\n\t\t\texcl_new = (incl > excl) ? incl : excl;\r\n\t\t\t \r\n /* current max including i */\r\n incl = excl + arr[i];\r\n excl = excl_new;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn excl>incl?excl:incl;\r\n\t}", "protected final int getMax() {\n\treturn(this.max);\n }", "public double getMaxWithdrawal() {\n\t\treturn maxWithdrawal;\n\t}", "public int getDegree(int v);", "public static void findMaxPalindromeBruteForce(Palindrome palind){\n\t\tfor (long i = Main.topLimit; i > Main.lowLimit; i--){\n\t\t\tfor (long j = i; j > Main.lowLimit; j--){\n\t\t\t\tlong mult = i * j;\n\t\t\t\tif (mult > palind.getMaxMultipl() && isPalindrome(mult + \"\")){\n\t\t\t\t\tpalind.setMaxMultipl(mult);\n\t\t\t\t\tpalind.setIMax(i);\n\t\t\t\t\tpalind.setJMax(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int MAX_Lookback( int optInTimePeriod )\n {\n if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) )\n optInTimePeriod = 30;\n else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) )\n return -1;\n return (optInTimePeriod-1);\n }", "public Integer findMaxSatisfaction(Integer timelimit) {\n\t\treturn satisfactionAnalyzer.findMaxSatisfaction(timelimit);\n\t}", "public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }", "public int getUpperBound() {\r\n return upperBound;\r\n }", "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public int getMaxAdvance() {\n return -1;\n }", "static int findLargestPowerOf2InRange(int N){\n N = N| (N>>1);\n N = N| (N>>2);\n N = N| (N>>4);\n N = N| (N>>8);\n\n\n //as now the number is 2 * x-1, where x is required answer, so adding 1 and dividing it by\n\n return (N+1)>>1;\n }", "public float getMaximumSpan(int axis) {\n return Integer.MAX_VALUE;\n }", "public int deplacementMax(Couleur couleurJoueur) {\n\t\tint max = 0;\n\t\tDeplacement deplacementCourant;\n\t\tfor(int i = 0; i < Constantes.N; i++) {\n\t\t\tfor(int j = 0; j < Constantes.N; j++) {\n\t\t\t\tPosition pos = new Position(i, j);\n\t\t\t\tif((obtenirPion(pos) != null) && obtenirPion(pos).aMemeCouleur(couleurJoueur)) {\n\t\t\t\t\tdeplacementCourant = new Deplacement();\n\t\t\t\t\tdeplacementCourant.add(pos);\n\t\t\t\t\tint maxCourant = backtrack(deplacementCourant, couleurJoueur);\n\t\t\t\t\tif(maxCourant > max) {\n\t\t\t\t\t\tmax = maxCourant;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"DeplMax: \" + max);\n\t\treturn max;\n\t}", "public K max();", "public static int iterationsUpperBound(double error, int k) {\r\n\t\treturn (int)(Math.log(1.0/error)*Math.pow(Math.E, k)+0.5);\r\n\t}", "static int recurseMaxStolenValue(int[] values,int i){\r\n\t if(i >= values.length) return 0;\r\n\t if(i == values.length -1) return values[values.length-1];\r\n\t \r\n\t return Math.max( values[i] + recurseMaxStolenValue(values,i+2)\r\n\t ,values[i+1] + recurseMaxStolenValue(values,i+3)\r\n\t );\r\n\t /*\r\n\t *Approach #2 for Recursion --> This approach won't work to convert to DP,but recursion yields right result\r\n\t */\r\n\t \r\n\t /*\r\n\t if(i >= values.length) return 0; \r\n\t int result1 = values[i]+recurseMaxStolenValue(values,i+2);\r\n\t int result2 = recurseMaxStolenValue(values,i+1);\r\n\t return (Math.max(result1,result2));\r\n\t */\r\n\t \r\n\t }", "public int getBestPolynomialRegressionDegree() {\n int bestPolynomialDegree = 0;\n double tmpCrossErrorAvg, tmpCrossErrorSum, minCrossError = Double.MAX_VALUE;\n int interval = (data.length / testingSetNumber), i;\n Regression regression;\n for (int j = 1; j <= maxPolynomialDegree; j++) {\n tmpCrossErrorSum = 0;\n i = 0;\n int k = 0;\n while (i < data.length) {\n devideDataPartly(k++, interval);\n regression = new NPolynomialRegressionModel(trainingSet, j);\n regression.process();\n for (Double[] value : testingSet) {\n tmpCrossErrorSum += Math.pow(regression.countY(value[0]) - value[1], 2);\n }\n if (i + interval == data.length - 1) {\n i = data.length + 1;\n } else if (i + 3 * interval > data.length) {\n i = data.length - interval - 1;\n } else {\n i += interval;\n }\n }\n tmpCrossErrorAvg = tmpCrossErrorSum / (testingSetNumber - j);\n if (tmpCrossErrorAvg < minCrossError) {\n minCrossError = tmpCrossErrorAvg;\n bestPolynomialDegree = j;\n }\n }\n return bestPolynomialDegree;\n }", "public double getMaximumDistance() {\n double l = 0;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.max(l, distances[i]);\n }\n\n return l;\n }", "public double max() {\n\t\tif (count() > 0) {\n\t\t\treturn _max.get();\n\t\t}\n\t\treturn 0.0;\n\t}", "double getMax() {\n\t\t\treturn value_max;\n\t\t}" ]
[ "0.687639", "0.6656774", "0.651788", "0.6359924", "0.6359924", "0.6302441", "0.629765", "0.62798244", "0.62461203", "0.6162452", "0.61376905", "0.6127335", "0.6109546", "0.6100932", "0.60952723", "0.6068808", "0.6056528", "0.60024554", "0.59987074", "0.59573966", "0.59513265", "0.59448594", "0.59196025", "0.5910931", "0.590073", "0.5863356", "0.58605427", "0.58525366", "0.58321774", "0.58246416", "0.5823036", "0.580919", "0.5773637", "0.5770508", "0.57695097", "0.5736874", "0.57291454", "0.57291454", "0.57229936", "0.5708755", "0.56920755", "0.56897074", "0.5681951", "0.56786793", "0.5674548", "0.5674021", "0.56678677", "0.56650037", "0.5664662", "0.5664662", "0.5664662", "0.5664662", "0.5664662", "0.5664662", "0.56620526", "0.56620526", "0.56586975", "0.5653184", "0.5644003", "0.5639991", "0.56399137", "0.563569", "0.56356055", "0.56343484", "0.5631848", "0.5625735", "0.5625151", "0.5624434", "0.56202316", "0.5606754", "0.559707", "0.5593377", "0.559107", "0.5587618", "0.5585261", "0.5584602", "0.55816615", "0.55816615", "0.5578379", "0.55770874", "0.5576268", "0.5575768", "0.5571293", "0.5570113", "0.5569894", "0.556705", "0.55598277", "0.55596703", "0.5557111", "0.5544664", "0.554466", "0.5543465", "0.55430204", "0.5539542", "0.55324924", "0.55323917", "0.5531174", "0.5526696", "0.55236274", "0.5520923" ]
0.692137
0
Assigns to element x within heap the new key value, which we assume to be no greater than its current key value. Time complexity: O(1) Space complexity: O(1)
public boolean decreaseKey(Node<T> x, T k) { if (x.key.compareTo(k) < 0) { return false; } x.key = k; Node<T> y = x.parent; if (y != null && x.key.compareTo(y.key) <= 0) { cut(x, y); cascadingCut(y); } if (x.key.compareTo(min.key) <= 0) { min = x; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(int key, int value) {\n int hash = key % 1024;\n TreeNode treeNode = array[hash];\n if (treeNode == null) {\n array[hash] = new TreeNode(value);\n }\n if (value > treeNode.value) {\n\n }\n\n }", "void MaxInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] < arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }", "private void siftDown(int k, T x) {\n int half = size >>> 1;\n while (k < half) {\n int child = (k << 1) + 1;\n Object c = heap[child];\n int right = child + 1;\n if (right < size &&\n comparator.compare((T) c, (T) heap[right]) > 0)\n c = heap[child = right];\n if (comparator.compare(x, (T) c) <= 0)\n break;\n heap[k] = c;\n k = child;\n }\n heap[k] = x;\n }", "private void heapifyAdd() {\n // TODO. The general idea of this method is that we are checking whether the \n // most recently added item, which has been put at the end of the array, \n //needs to be swapped with its parent. We do this in a loop, until a swap isn’t needed or we reach the root. This is not recursive.\n\n // Pseudocode:\n // assign newly added item to a temp var.\n // use an index variable to keep track of the index where that value was added\n // while the index isn’t pointing at the root, and while the node at this index is greater than the node at its parent:\n // copy the parent node to the index location (move parent node down the heap)\n // set the index to the parent index\n // when we are at the root, or the parent of current index isn’t bigger, we are done\n // copy the temp variable to the location of the current index. \n T temp;\n int next = count - 1;\n\n temp = heap[next];\n\n while ((next != 0) && (((Comparable) temp).compareTo(heap[(next - 1) / 2]) > 0)) {\n heap[next] = heap[(next - 1) / 2];\n next = (next - 1) / 2;\n }\n heap[next] = temp;\n }", "static void heapIncreaseKey(int[]ar , int i , int key){\r\n\t\tif(i>heapSize || i<1 ) {System.out.println(\"array index is wrong\");return;}\r\n\t\tif(ar[i] > key ) {System.out.println(\"key cannot be smaller than existing value\");return;}\r\n\t\tar[i] = key;\r\n\t\twhile(i>0 && ar[parent(i)] < ar[i]) {\r\n\t\t\tswap(ar,parent(i),i);\r\n\t\t\ti = parent(i);\r\n\t\t}\r\n\t}", "public void increaseKey(FHeapNode x, int k)\r\n {\r\n x.key = x.key + k;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//increment value of x.key\r\n FHeapNode y = x.parent;\t\t\r\n\r\n if ((y != null) && (x.key > y.key))\t\t\t\t\t\t\t\t\t\t\t//remove node x and its children if incremented key value is greater than its parent\r\n\t\t{\r\n cut(x, y);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//remove node x from parent node y, add x to root list of heap.\r\n cascadingCut(y);\t\t\t\t\t\t\t\t\t\t\t\t\t\t//check the child cut value of parent y and perform cascading cut if required\r\n }\r\n\r\n if (x.key > maxNode.key)\t\t\t\t\t\t\t\t\t\t\t\t\t//update maxnode pointer if necessary\r\n\t\t{\r\n maxNode = x;\r\n }\r\n }", "void minDecrease(int i,int x)\n {\n arr[i]=x;\n while(i!=0 && arr[MyHeap.parent(i)]>arr[i])\n {\n swap(MyHeap.parent(i),i);\n i=MyHeap.parent(i);\n }\n }", "public void binomialHeapDecreaseKey(Node x, int k) {\n\t\tif(k>x.key) {\n\t\t\tSystem.out.println(\"New key is greater than current key\");\n\t\t}\n\t\telse {\n\t\t\t// change the key of given node to k\n\t\t\tx.key = k;\n\t\t\tNode y = x;\n\t\t\tNode z = y.p;\n\t\t\t// bubble up the node to its correct position in the tree\n\t\t\t// by just exchanging the key values of all nodes in\n\t\t\t// y's path to the root\n\t\t\twhile(z!=null && y.key < z.key) {\n\t\t\t\tint temp = z.key;\n\t\t\t\tz.key = y.key;\n\t\t\t\ty.key = temp;\n\t\t\t\ty = z;\n\t\t\t\tz = y.p;\n\t\t\t}\n\t\t}\n\t}", "public void heapInsert(int key) throws Exception{\n\t\tn = n+1;\n\t\tint[] newArray = new int[n];\n\t\tfor(int i = 0; i< a.length; i++){\n\t\t\tnewArray[i] = a[i];\n\t\t}\n\t\tnewArray[n-1] = Integer.MIN_VALUE;\n\t\tthis.a = newArray;\n\t\theapIncreaseKey(n-1,key);\n\t}", "public static void adjustHeap(int []arr,int i,int length){\n int temp=arr[i];//first get current value/item\n for(int k=i*2+1;k<length;k=k*2+1){//from the left child of current item,in other word,the 2i+1 item\n if(k+1<length&&arr[k]<arr[k+1]){//if the left child is less than the right child ,let k point to right child\n k++;\n }\n if(arr[k]>temp){//if k item-the max of left-right child is more than i item ,swap it ,and maybe k item and his child need to change\n arr[i]=arr[k];\n i=k;\n }else{\n break;\n }\n }\n arr[i]=temp;//place the temp=arr[i] at right position\n }", "void MinInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] > arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }", "public void insertKey(int key) {\n\t\t\tif (heap_size == capacity) {\n\t\t\t\tSystem.out.println(\"Overflow : couldn't insert key!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// First insert the new key at the end\n\t\t\theap_size++;\n\t\t\tint i = heap_size - 1;\n\t\t\tharr[i] = key;\n\n\t\t\t// Fix the min heap property if it is violated\n\t\t\twhile (i != 0 && harr[parent(i)] > harr[i]) {\n\t\t\t\tswap(i, parent(i));\n\t\t\t\ti = parent(i);\n\t\t\t}\n\t\t}", "private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}", "@Override\n protected void downHeap(int k)\n {\n while (2 * k <= this.count)\n {\n //identify which of the 2 children are smaller\n int j = 2 * k;\n if (j < this.count && this.isGreater(j, j + 1))\n {\n j++;\n }\n //if the current value is < the smaller child, we're done\n if (!this.isGreater(k, j))\n {\n break;\n }\n //if not, swap and continue testing\n this.swap(k, j);\n k = j;\n }\n \tthis.elementsToArrayIndex.put(elements[k], k);\n }", "public void heapDecreaseKey(node_data node){\n\t\tint v = node.getKey();\n\t\tint i = 0;\n\t\twhile (i<_size && v!=_a[i].getKey()) i++;\n\t\tif (node.getWeight() <_a[i].getWeight()){\n\t\t\t_a[i] = node;\n\t\t\twhile (i>0 && _a[parent(i)].getWeight()>_a[i].getWeight()){\n\t\t\t\texchange(i, parent(i));\n\t\t\t\ti = parent(i);\n\t\t\t}\n\t\t}\n\t}", "public static void insertHeap(int x)\n {\n if(s.isEmpty()){\n s.add(x);\n }\n else if(x>s.peek()){\n g.add(x);\n }\n else if(g.isEmpty()){\n g.add(s.poll());\n s.add(x);\n }\n else {\n s.add(x);\n }\n balanceHeaps();\n \n }", "void insert(int ele){\n if(heapLen>=A.length)\n {\n System.out.println(\"Heap is full\");\n }\n else\n {\n A[heapLen] = 1<< 31;\n heapLen++;\n increaseKey(heapLen, ele);\n \n \n }\n }", "private void heapifyRemove() {\n // this is called after the item at the bottom-left has been put at the root\n // we need to see if this item should swap down\n int node = 0;\n int left = 1;\n int right = 2;\n int next;\n\n // store the item at the root in temp\n T temp = heap[node];\n\n // find out where we might want to swap root \n if ((heap[left] == null) && (heap[right] == null)) {\n next = count; // no children, so no swapping\n return;\n } else if (heap[right] == null) {\n next = left; // we will check left child\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) { // figure out which is the biggest of the two children\n next = left; // left is bigger than right, so check left child\n } else {\n next = right; // check right child\n }\n\n // compare heap[next] to item temp, if bigger, swap, and then repeat process\n while ((next < count) && (((Comparable) heap[next]).compareTo(temp) > 0)) {\n heap[node] = heap[next];\n node = next;\n left = 2 * node + 1; // left child of current node\n right = 2 * (node + 1); // right child of current node\n if ((heap[left] == null) && (heap[right] == null)) {\n next = count;\n } else if (heap[right] == null) {\n next = left;\n } else if (((Comparable) heap[left]).compareTo(heap[right]) > 0) {\n next = left;\n } else {\n next = right;\n }\n }\n heap[node] = temp;\n\n }", "protected void heapify(int i) {\n \tE temp;\n\t\tE left = null;\n\t\tE right = null;\n\t\tE current = internal[i];\n\n\t\tif(left(i) < heapSize) left = internal[left(i)];\n\t\tif(right(i) < heapSize ) right = internal[right(i)];\n\n\t\tif(left != null && right != null){\n\t\t\tif(compy.compare(current, right) < 0 && compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tif(compy.compare(right, left) < 0){\n\t\t\t\t\tinternal[i] = left;\n\t\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\t\theapify(left(i));\n\t\t\t\t}else{\n\t\t\t\t\tinternal[i] = right;\n\t\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\t\theapify(right(i));\n\t\t\t\t}\n\t\t\t}else if(compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[left(i)];\n\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\theapify(left(i));\n\t\t\t}else if(compy.compare(current, right) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[right(i)];\n\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\theapify(right(i));\n\t\t\t}\n\t\t}else if(left != null){\n\t\t\tif(compy.compare(current, left) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[left(i)];\n\t\t\t\tinternal[left(i)] = temp;\n\t\t\t\theapify(left(i));\n\t\t\t}\n\t\t}else if(right != null){\n\t\t\tif(compy.compare(current, right) < 0){\n\t\t\t\ttemp = current;\n\t\t\t\tinternal[i] = internal[right(i)];\n\t\t\t\tinternal[right(i)] = temp;\n\t\t\t\theapify(right(i));\n\t\t\t}\n\t\t}\n }", "public void insert(int x)\n {\n if(isFull())\n {\n throw new NoSuchElementException(\"Overflow Exception\");\n }\n else {\n heap[heapSize++] = x;\n heapifyUp(heapSize-1);\n\n }\n }", "public void insertKey(int k)\n\t{\n\t if (size == maxsize)\n\t {\n\t System.out.println(\"Overflow: Could not insertKey\");\n\t return;\n\t }\n\t \n\t // First insert the new key at the end\n\t size++;\n\t int i = size - 1;\n\t Heap[i] = k;\n\t \n\t // Fix the min heap property if it is violated\n\t while (i != 0 && Heap[parent(i)] < Heap[i])\n\t {\n\t swap(i, parent(i));\n\t i = parent(i);\n\t }\n\t}", "private void heapify(int idx) {\r\n // TODO\r\n }", "private void heapify(final int i) {\n assert(valid(i));\n if (leaf(i)) return;\n final int v = H[i];\n final int left_child = ls(i);\n final int right_child = rs(i);\n int largest = (v >= H[left_child]) ? i : left_child;\n if (right_child != n && H[largest] < H[right_child])\n largest = right_child;\n assert(valid(largest));\n if (largest != i) {\n H[i] = H[largest]; H[largest] = v;\n heapify(largest);\n }\n }", "public void binomialHeapInsert(Node x) {\n\t\tBinomialHeap h = new BinomialHeap();\n\t\th.head = x;\n\t\tBinomialHeap hPrime = this.binomialHeapUnion(h);\n\t\tthis.head = hPrime.head;\t\t\n\t}", "public void decreaseKey(int i, int new_val)\n\t{\n\t Heap[i] = new_val;\n\t while (i != 0 && Heap[parent(i)] < Heap[i])\n\t {\n\t swap(i, parent(i));\n\t i = parent(i);\n\t }\n\t}", "private void minHeapify(int v, int heapSize){\n\t\tint smallest;\n\t\tint left = leftChild(v);\n\t\tint right = rightChild(v);\n\t\tif (left<heapSize && _a[left].getWeight()<_a[v].getWeight()){\n\t\t\tsmallest = left;\n\t\t}\n\t\telse{\n\t\t\tsmallest = v;\n\t\t}\n\t\tif (right<heapSize && _a[right].getWeight()<_a[smallest].getWeight()){\n\t\t\tsmallest = right;\n\t\t}\n\t\tif (smallest!=v){\n\t\t\texchange(v, smallest);\n\t\t\tminHeapify(smallest, heapSize);\n\t\t}\t\t\n\t}", "public void insert(int val) {\r\n heap.add(val);\r\n int curr = heap.size() - 1;\r\n\r\n while (val < heap.get(getParent(curr))) {\r\n swap(curr, getParent(curr));\r\n curr = getParent(curr);\r\n }\r\n }", "public void trickleUp(TreeHeapNode newNode)\n\t{\n\t\tint bottom = newNode.getKey();\n\t\tTreeHeapNode current = newNode;\n\t\twhile( current.parent != null && current.parent.getKey() < bottom )\n\t\t{\n\t\t\tcurrent.setKey(current.parent.getKey());\n\t\t\tcurrent = current.parent;\n\t\t}\n\t\tcurrent.setKey(bottom);\n\t}", "public void AddToLine(PriorityCustomer newcustomer)\n {\n // put your code here\n int index = size + 1; //where we'll add the new value\n heap[index] = newcustomer; // add new customer to that position\n while (index > 3) //while customer has parents since we dont want to swap the current customer being served, it is index > 3 instead of index > 1\n {\n int parentIndex = index/2; //get parent index \n if (heap[parentIndex].getPriority() < newcustomer.getPriority()) // if parent value is lower\n {\n heap[index] = heap[parentIndex]; //perform swap\n heap[parentIndex] = newcustomer; //sets parent to new customer\n index = parentIndex; //update index\n }\n else\n {\n break; //no swap needed\n }\n }\n size++; //increase size\n }", "public void insert(int k) {\n int i = 0;\n\n heapsize = heapsize + 1;\n i = heapsize;\n i = i - 1;\n\n if (heapsize == 1) {\n array[0] = k;\n } else {\n while ((i > 0) && ((array[parent(i)]) > k)) {\n array[i] = array[parent(i)];\n i = parent(i);\n }\n array[i] = k;\n }\n }", "public boolean replaceKey(int i, T element) {\r\n\t\tif (i < 0 || i > theHeap.size() - 1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif ((Integer) element <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttheHeap.set(i, (T) element);\r\n\r\n\t\tif (i != 0 && (compare(getValue((i - 1) >> 1), getValue(i)) > 0)) {\r\n\t\t\tsiftUp();\r\n\t\t} else {\r\n\t\t\tsiftDown(i);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void insert(int value) {\r\n\t\tif (this.empty) {\r\n\t\t\tthis.empty = false;\r\n\t\t\tthis.size++;\r\n\t\t\tHeapTreesArray[0] = new HeapNode(value);\r\n\t\t\tthis.min = HeapTreesArray[0];\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tHeapNode hN = new HeapNode(value);\r\n\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\tbH.insert(value);\r\n\t\tthis.meld(bH);\r\n\t\tif (this.min.value > value) {\r\n\t\t\tthis.min = hN;\r\n\t\t}\r\n\t}", "public void balanceHeaps(){\n \n //If max heap size is greater than min heap then pop the first element and put int min heap\n if(maxHeap.size() > minHeap.size())\n minHeap.add(maxHeap.pollFirst());\n\n }", "private void fixHeap(){\r\n int i = 1;\r\n int v = array[i].value.getYear();\r\n while(hasChildren(i)){\r\n Node left = array[getLeftChildIndex(i)];\r\n Node right = array[getRightChildIndex(i)];\r\n if(left != null){\r\n if(right != null){\r\n if(left.value.getYear() < right.value.getYear()){\r\n if(v > left.value.getYear()){\r\n swap(array[i], left);\r\n i = getLeftChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n else{\r\n if(v > right.value.getYear()){\r\n swap(array[i], right);\r\n i = getRightChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n if(v > left.value.getYear()){\r\n swap(array[i], left);\r\n i = getLeftChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n\r\n }", "public boolean increaseKey(int i, int element) {\r\n\t\tif (i < 0 || i > theHeap.size() - 1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (element <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttheHeap.set(i, (T) (Integer) ((Integer) theHeap.get(i) + element));\r\n\t\tsiftDown(i);\r\n\t\treturn true;\r\n\t}", "public boolean increaseKey(V val, P priority) {\n PriorityQueueElement<P, V> element = elementsMap.get(val);\n if (element == null) {\n return false;\n } else {\n if (type == HeapType.MAX_HEAP && comparePriority(priority, element.priority) <= 0) {\n return false;\n } else {\n element.priority = priority;\n int current = indexesMap.get(element);\n int parent = (current / 2);\n while (parent > 0 && violatesProperty(current, parent)) {\n swapElements(current, parent);\n current = parent;\n parent = (current / 2);\n }\n\n return true;\n }\n }\n }", "void push(Integer x) {\n if (s.isEmpty()) {\n minEle = x;\n s.push(x);\n System.out.println(\"Number Inserted: \" + x);\n return;\n }\n // if new number is less than original minEle\n if (x < minEle) {\n s.push(2 * x - minEle);\n minEle = x;\n } else {\n s.push(x);\n }\n System.out.println(\"Number Inserted: \" + x);\n }", "public static void heapify() {\n //배열을 heap 자료형으로 만든다.\n // 1d 2d 2d 3d 3d 3d 3d 4d\n// int[] numbers = {9, 12, 1, 3, 6, 2, 8, 4};\n // 1depth의 자식노드 numbers[2i], numbers[2i+1]\n int[] numbers = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7};\n int i = 1;\n while (true) {\n int target = numbers[i-1];\n int left = numbers[2*i-1];\n\n if (2*i == numbers.length) {\n if (left > target){\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n print(numbers);\n break;\n }\n int right =numbers[2*i];\n\n if (left > right) {\n if(left > target) {\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n }else if (right > left) {\n if (right > target) {\n numbers[i-1] = right;\n numbers[2*i] = target;\n }\n }\n i++;\n\n print(numbers);\n }\n\n }", "private void heapify(int i) {\n if (!hasLeft(i))\n return;\n int max = i;\n if (this.heap.get(max).compareTo(this.heap.get(leftIndex(i))) < 0)\n max = leftIndex(i);\n if (hasRight(i) && this.heap.get(max)\n .compareTo(this.heap.get(rightIndex(i))) < 0)\n max = rightIndex(i);\n if (max == i)\n return; // ho finito\n // scambio i con max e richiamo la funzione ricorsivamente sull'indice\n // del nodo figlio uguale a max\n E app = this.heap.get(i);\n this.heap.set(i, this.heap.get(max));\n this.heap.set(max, app);\n heapify(max);\n }", "public void insertKey(int x){\r\n\t\tSystem.out.println(\"insertKey: Leaf\");\r\n\t\t//check if input is duplicate entry\r\n\t\tif (this.containsKey(x)){\r\n\t\t\tSystem.out.println(\"Error: Duplicate key entry\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//makes sure inputs positive\r\n\t\tif(x<1){\r\n\t\t\tSystem.out.println(\"Input Error: You cannot input a negative value for a key\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif ((!this.containsKey(x)) && (!this.isFull())){\r\n\t\t\tkeys[counter]=x;\r\n\t\t\tcounter++;\r\n\t\t\tArrays.sort(keys,0,counter);//sort\r\n\t\t}else if (this.isFull()){\r\n\t\t\tArrays.sort(keys);//sort\r\n\t\t\tBPlusTree.splitChild(this, x);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t}", "private void swim(int x) {\n while (x > 1 && less(heap[x / 2], heap[x])) {\n exch(heap, x, x / 2);\n x = x / 2;\n }\n }", "private void fixHeap(int indexItem){\r\n int child = indexItem;\r\n int parent = get_parent(child);\r\n // Fixing heap for upperbounds\r\n while (parent >= 0 && compare(theData.get(parent).data, theData.get(child).data) < 0) {\r\n swap(parent, child);\r\n child = parent;\r\n parent = get_parent(child);\r\n }\r\n\r\n parent = indexItem;\r\n\r\n // Fixing heap for lowerbounds\r\n while (true) {\r\n int leftChild = get_left_child(parent);\r\n if (leftChild >= theData.size()) {\r\n break;\r\n }\r\n int rightChild = leftChild + 1;\r\n int maxChild = leftChild;\r\n\r\n if (rightChild < theData.size() && compare(theData.get(leftChild).data, theData.get(rightChild).data) < 0) {\r\n maxChild = rightChild;\r\n }\r\n\r\n if (compare(theData.get(parent).data, theData.get(maxChild).data) < 0) {\r\n swap(parent, maxChild);\r\n parent = maxChild;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public void heapDecreaseKey(Entry<K,V>[] a,int pos, int val )\r\n\t{\n\t\tEntry<K,V> e = a[pos];\r\n\t\tif(e.getKey().intValue()<val)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wrong input\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t// compare it with parent\r\n\t\tK k = (K) new Integer(val);\r\n\t\te.setKey(k);\r\n\t\twhile(pos>0 && (a[parent(pos)].getKey().intValue()>a[pos].getKey().intValue()) )\r\n\t\t{\r\n\t\t\tswap(a,pos,parent(pos));\r\n\t\t\tpos = parent(pos);\r\n\t\t}\r\n\r\n\t}", "private static <K extends Comparable<? super K>, V> Node<K, V> putAndCopy0(\n K key, V value, @Var @Nullable Node<K, V> current) {\n\n if (current == null) {\n return new Node<>(key, value);\n }\n\n int comp = key.compareTo(current.getKey());\n if (comp < 0) {\n // key < current.data\n Node<K, V> newLeft = putAndCopy0(key, value, current.left);\n current = current.withLeftChild(newLeft);\n\n } else if (comp > 0) {\n // key > current.data\n Node<K, V> newRight = putAndCopy0(key, value, current.right);\n current = current.withRightChild(newRight);\n\n } else {\n current = new Node<>(key, value, current.left, current.right, current.getColor());\n }\n\n // restore invariants\n return restoreInvariants(current);\n }", "public void changePriority(int newpriority, int element) {\n\t\tif(newpriority<0 || isPresent(element)==false) {\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\tint index= location.get(element);\n\t\t\tint oldP= heap.get(index).priority;\n\t\t\tPair p= new Pair(newpriority,element);\n\t\t\theap.add(index,p);\n\t\t\tif (oldP < newpriority) {\n\t\t\t\tpushDown(index);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpercolateUp(index);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void heapify(int left, int right) {\r\n\t\tint k = 2 * left;\r\n\r\n\t\tif (k > right)\r\n\t\t\treturn;\r\n\r\n\t\tif ((k + 1) > right) {\r\n\t\t\tif (c[k - 1].compareTo(c[left - 1]) > 0)\r\n\t\t\t\tswitchElements(left - 1, k - 1);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (c[k - 1].compareTo(c[k]) < 0)\r\n\t\t\tk++;\r\n\r\n\t\tif (c[left - 1].compareTo(c[k - 1]) < 0) {\r\n\t\t\tswitchElements(left - 1, k - 1);\r\n\t\t\theapify(k, right);\r\n\t\t}\r\n\t}", "private static void Heapify(int[] A, int i, int size)\n {\n // get left and right child of node at index i\n int left = LEFT(i);\n int right = RIGHT(i);\n\n int smallest = i;\n\n // compare A[i] with its left and right child\n // and find smallest value\n if (left < size && A[left] < A[i]) {\n smallest = left;\n }\n\n if (right < size && A[right] < A[smallest]) {\n smallest = right;\n }\n\n // swap with child having lesser value and\n // call heapify-down on the child\n if (smallest != i) {\n swap(A, i, smallest);\n Heapify(A, smallest, size);\n }\n }", "public void insert(Integer x) {\n pq[++N] = x;\n swim(N);\n }", "private void trickleDown(int index) {\n // Get the index of the first child of the element at the specified index\n int firstChildIndex = firstChild(index);\n // Get the value stored in the heap array at the specified index\n T value = heap[index];\n\n // Trickle down element until end of heap\n while (firstChildIndex < size()) {\n // Keep track of swapValue and swapIndex in heap. Initialize with value at index\n T swapValue = value;\n int swapIndex = -1;\n\n // Loop to find the maximum or minimum among all d children of node using\n // compareToHelper which checks if heap is max-dHeap or min-dHeap and returns value\n // accordingly\n for (int i = 0; i < d && i + firstChildIndex < size(); i++) {\n if (compareToHelper(heap[i + firstChildIndex], swapValue) > 0) {\n // Update swapValue and swapIndex if greater or smaller value is found among\n // children depending on whether heap is maxheap or min-dHeap\n swapValue = heap[i + firstChildIndex];\n swapIndex = i + firstChildIndex;\n }\n }\n\n // Break from the loop when none of the children are greater or smaller than value at\n // index\n if (swapValue.compareTo(value) == 0) {\n break;\n } else {\n // If any of the children are greater or smaller than value at index, swap the\n // values and store swapIndex in index depending on whether heap is maxheap or\n // min-dHeap\n heap[swapIndex] = heap[index];\n heap[index] = swapValue;\n index = swapIndex;\n\n // Find the children of the maximum or minimum child node for the next iteration\n // depending on whether heap is maxheap or min-dHeap\n firstChildIndex = firstChild(index);\n }\n }\n }", "public void push(int priority, int element)\n\t{\n\t\tif(priority<0 || isPresent(element)){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\tPair newElement = new Pair<>(priority, element);\n\t\theap.add(newElement);\n\t\t//moves to correct position in heap and saves location\n\t\tint loc = percolateUpLeaf();\n\t\tlocation.put(element, loc);\n\t}", "private PriorityQueue<Integer> get(Node x, int key) {\n while (x != null) {\n int cmp = key - x.key;\n if (cmp < 0)\n x = x.left;\n else if (cmp > 0)\n x = x.right;\n else\n return x.val;\n }\n return null;\n }", "protected void siftUp() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1;\t// >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 2\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tchild = parent;\r\n\t\t}\r\n\t}", "public void insert( int x) \r\n {\r\n h[++N] = x;\r\n siftUp( N);\r\n }", "@Override\r\n\t\tpublic int compareTo(HeapNode o) {\n\t\t\treturn new Integer(value).compareTo(o.value);\r\n\t\t}", "public static Object PQupheap(Object... arg) {\nUNSUPPORTED(\"c01vxogao855zs8fe94tpim9g\"); // void\nUNSUPPORTED(\"5hhoge8azwixhuw1r6f1ae6d\"); // PQupheap(int k)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"7e1sq1127wt16hr7o0andcwob\"); // snode* x = pq[k];\nUNSUPPORTED(\"7bfu0p9xmzkty10xv4n4l5cqs\"); // int v = x->n_val;\nUNSUPPORTED(\"1j1bbq23z0qzohezignztjo66\"); // int next = k/2;\nUNSUPPORTED(\"ae5pat4mp4l6k25pvk8saz8c7\"); // snode* n;\nUNSUPPORTED(\"70492o1szwz9au93c3is2goa\"); // while ((n = pq[next])->n_val < v) {\nUNSUPPORTED(\"4i53ezzk69bsmpugd2h8bo35\"); // pq[k] = n;\nUNSUPPORTED(\"iolnc8pg22pbme3zbdim1eqy\"); // (n)->n_idx = k;\nUNSUPPORTED(\"8fpdpgwovt0k58t5u167v63is\"); // k = next;\nUNSUPPORTED(\"eqtnhenyor3dwsa6on9crthdd\"); // next /= 2;\nUNSUPPORTED(\"7ijd6pszsxnoopppf6xwo8wdl\"); // }\nUNSUPPORTED(\"1lxwoekai0i8v3rg0vrg6ahmx\"); // pq[k] = x;\nUNSUPPORTED(\"7ss0wudteh17yswf0ihopig7z\"); // (x)->n_idx = k;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public void trickleDown(TreeHeapNode newNode)\n\t{\n\t\tTreeHeapNode current = newNode;\n\t\tint top = newNode.getKey();\n\t\tTreeHeapNode largerChild;\n\t\twhile(current.leftChild != null || current.rightChild != null) //while node has at least one child\n\t\t{\n\t\t\tif(current.rightChild != null && //rightchild exists?\n\t\t\t\t\tcurrent.leftChild.getKey() <\n\t\t\t\t\tcurrent.rightChild.getKey() )\n\t\t\t\tlargerChild = current.rightChild;\n\t\t\telse\n\t\t\t\tlargerChild = current.leftChild;\n\t\t\tif(top >= largerChild.getKey() )\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcurrent.setKey(largerChild.getKey());\n\t\t\tcurrent = largerChild;\n\t\t}\n\t\tcurrent.setKey(top);\n\t}", "public void insert(int key)\n\t{\n\t\tTreeHeapNode newNode = new TreeHeapNode();\n\t\tnewNode.setKey(key);\n\t\tif(numNodes == 0) root = newNode;\n\t\telse\n\t\t{\n\t\t\t//find place to put newNode\n\t\t\tTreeHeapNode current = root;\n\t\t\tint n = numNodes+1;\n\t\t\tint k;\n\t\t\tint[] path = new int[n];\n\t\t\tint j = 0;\n\t\t\twhile(n >= 1)\n\t\t\t{\n\t\t\t\tpath[j] = n % 2;\n\t\t\t\tn /= 2;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t//find parent of new child\n\t\t\tfor(k = j-2; k > 0; k--)\n\t\t\t{\n\t\t\t\tif(path[k] == 1)\n\t\t\t\t\tcurrent = current.rightChild;\n\t\t\t\telse\n\t\t\t\t\tcurrent = current.leftChild;\n\t\t\t}\n\t\t\t//find which child new node should go into\n\t\t\t\n\t\t\tif(current.leftChild != null)\n\t\t\t{\n\t\t\t\tcurrent.rightChild = newNode;\n\t\t\t\tnewNode.isLeftChild = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcurrent.leftChild = newNode;\n\t\t\t\tnewNode.isLeftChild = true;\n\t\t\t}\n\t\t\tnewNode.parent = current;\n\t\t\t\n\t\t\ttrickleUp(newNode);\n\t\t}\n\t\tnumNodes++;\n\t}", "private Node putHelper(K key, V value, Node p) {\n if(p == null){\n size++;\n Node node = new Node(key, value);\n return node;\n }\n int cmp = key.compareTo(p.key);\n if(cmp < 0){\n // put int the left\n p.left = putHelper(key, value, p.left);\n }else if(cmp > 0){\n // put in the right\n p.right = putHelper(key, value, p.right);\n }else{\n p.value = value;\n }\n return p;\n }", "public void heapify(int parent) { \t\n \tint largest = parent;\n \tint lchild = 2*parent;\n int rchild = 2*parent + 1;\n if (lchild <= this.size && this.heap[lchild] > this.heap[largest]) \n largest = lchild; \n \n if (rchild <= this.size && this.heap[rchild] > this.heap[largest]) \n largest = rchild; \n \n if (largest != parent) \n { \n int temp = this.heap[parent]; \n this.heap[parent] = this.heap[largest]; \n this.heap[largest] = temp;\n this.heapify(largest);\n } \n }", "void reheap (int a[], int length, int i) throws Exception {\n boolean done = false;\n int T = a[i];\n int parent = i;\n int child = 2*(i+1)-1;\n while ((child < length) && (!done)) {\n compex(parent, child);\n pause();\n if (child < length - 1) {\n if (a[child] < a[child + 1]) {\n child += 1;\n }\n }\n if (T >= a[child]) {\n done = true;\n }\n else {\n a[parent] = a[child];\n parent = child;\n child = 2*(parent+1)-1;\n }\n }\n a[parent] = T;\n }", "public void binomialHeapDelete(Node x) {\n\t\tthis.binomialHeapDecreaseKey(x, Integer.MIN_VALUE);\n\t\tthis.binomialHeapExtractMin();\n\t}", "private <E extends Comparable<E>> void heapify(E[] array){\n\t\tif(array.length > 0){\n\t\t\tint n = 1;\n\t\t\twhile( n < array.length){\t//for each value in the array\n\t\t\t\tn++;\n\t\t\t\t\n\t\t\t\tint child = n-1;\n\t\t\t\tint parent = (child-1)/2;\n\t\t\t\twhile(parent >= 0 && array[parent].compareTo(array[child]) < 0){\t//if the heap property isn't observed between the parent and child, swap them and readjust parent/child values until it is\n\t\t\t\t\tabstractSorter.swap(array, parent, child);\n\t\t\t\t\tchild = parent;\n\t\t\t\t\tparent = (child-1)/2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean decreaseKey(int i, Integer element) {\r\n\t\tif (i < 0 || i > theHeap.size() - 1) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (element <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttheHeap.set(i, (T) (Integer) ((Integer) theHeap.get(i) - element));\r\n\t\tsiftUp(i);\r\n\t\treturn true;\r\n\t}", "private static void restoreHeapProperties(Node newNode, HeapNode heap) {\r\n\t\tVector<Edge> edges = newNode.edges;\r\n\t\t\r\n\t\t//I need to analize all nodes that share an edge with newNode and only them. \r\n\t\tfor(Edge e : edges){\r\n\t\t\tNode otherNode = (e.n1 == newNode) ? e.n2 : e.n1;\r\n\t\t\t\r\n\t\t\tif(!belongsToX[otherNode.number]){ //newNode in X and otherNode in V-X. \r\n\t\t\t\tif(heap.getNodeInfo(otherNode) == -1){ //node didn't exist on heap. Add it.\r\n\t\t\t\t\theap.setNodeMinEdge(otherNode, e);\r\n\t\t\t\t\theap.add(otherNode);\r\n\t\t\t\t}else{ \t\t\t\t\t\t\t\t\t\t\t\t //node already exists on heap\r\n\t\t\t\t\tif(heap.getNodeMinEdge(otherNode).cost > e.cost){ //new edge costs less then previous. Delete and re-add the node.\r\n\t\t\t\t\t\theap.delete(otherNode);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\theap.setNodeMinEdge(otherNode, e);\r\n\t\t\t\t\t\theap.add(otherNode);\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}", "@Test\n\tpublic void testDecreaseKey() {\n\t\tHeap heap = new Heap(testArrayList);\n\t\theap.decreaseKey(11, 1);\n\t\tArrayList<Integer> expected = new ArrayList<>(\n\t\t\t\tArrays.asList(1, 5, 3, 7, 15, 24, 32, 47, 36, 27, 38, 48, 53, 33, 93));\n\t\tassertEquals(expected, heap.getHeapArray());\n\t}", "private static <T> void siftUp (HeapSet<T> heap, int start) {\r\n\t\tint child = start;\r\n\t\twhile (child > 0) {\r\n\t\t\tint remainder = (child - 1) % 2;\r\n\t\t\tint root = ((child - 1) - remainder) / 2;\r\n\t\t\tif (((Comparable<? super T>) heap._list.get (root)).compareTo (heap._list.get (child)) < 0) {\r\n\t\t\t\tCollections.swap (heap._list, root, child);\r\n\t\t\t\tHeapSet.fireEvent (heap, root, child);\r\n\t\t\t\tchild = root;\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void sortedInsert(Stack<Integer> stack, int x) {\n if (stack.isEmpty() || stack.peek() < x) {\n stack.push(x);\n return;\n }\n int temp = stack.pop();\n sortedInsert(stack, x);\n stack.push(temp);\n }", "public void insert(T val) {\n\t\tlstEle.add(val);\n\t\theapSize++;\n\t\t// Need to move up the tree and satisfy the heap property\n\t\tint currIndex = heapSize - 1;\n\t\tint parentIndex = getParent(currIndex);\n\t\tif (parentIndex >= 0) {\n\t\t\tdo {\n\t\t\t\tT parentVal = lstEle.get(parentIndex);\n\t\t\t\tif (parentVal.compareTo(val) > 0) {\n\t\t\t\t\tlstEle.set(parentIndex, val);\n\t\t\t\t\tlstEle.set(currIndex, parentVal);\n\t\t\t\t\tcurrIndex = parentIndex;\n\t\t\t\t\tparentIndex = getParent(currIndex);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} while (parentIndex >= 0);\n\t\t}else{\n\t\t\t//do nothing\n\t\t}\n\t\t\n\t}", "@Override\n public void insert(int element) {\n if (isFull()) {\n throw new IllegalStateException(\"Heap is full.\");\n }\n\n // Percolate up\n usedSize++;\n heap[heapSize++] = element; // insert element\n heapifyUp(heapSize - 1);\n\n // Percolate down (doesn't work)\n //usedSize++;\n //heap[heapSize++] = element;\n //heapifyDown(heapSize - 1);\n }", "void push(int x) {\n\t\tif (stack.size() == 0) {\n\t\t\tstack.push(x);\n\t\t\tminEle = x;\n\t\t} else if (x >= minEle) {\n\t\t\tstack.push(x);\n\t\t} else if (x < minEle) {\n\t\t\t// Push something smaller than original value\n\t\t\t// At any time when we pop , we will see if the value\n\t\t\t// of the peek is less then min or not\n\t\t\tstack.push(2 * x - minEle);\n\t\t\tminEle = x;\n\t\t}\n\t}", "void changePriority(int x, int p){\n priorities[x] = p;\n }", "public void put(int key, int value) {\n if (capacity == 0) {\n return;\n } else if (nodeMap.containsKey(key)) {\n // if key exists in nodemap\n Node node = nodeMap.get(key);\n node.val = value;\n DoubleLinkedList list = countMap.get(node.count);\n list.remove(node);\n if (min == node.count && countMap.get(min).size() == 0) {\n min++;\n }\n node.count++;\n DoubleLinkedList list2 = countMap.getOrDefault(node.count, null);\n if (list2 == null) {\n list2 = new DoubleLinkedList();\n countMap.put(node.count, list2);\n }\n list2.add(node);\n \n } else if (currentCount < capacity) {\n // if current count < capacity\n min = 1;\n DoubleLinkedList list = countMap.getOrDefault(min, null);\n if (list == null) {\n list = new DoubleLinkedList();\n countMap.put(min, list);\n }\n Node node = new Node(key, value);\n nodeMap.put(key, node);\n list.add(node);\n currentCount++;\n } else {\n // if current count == capacity\n DoubleLinkedList list = countMap.get(min);\n Node node = list.removeFromFront();\n nodeMap.remove(node.key);\n min = 1;\n DoubleLinkedList list2 = countMap.get(min);\n Node node2 = new Node(key, value);\n nodeMap.put(key, node2);\n list2.add(node2);\n }\n // System.out.println(\"put; (\" + key + \",\" + value + \"); \" + \"countMap: \" + countMap + \"\\n\");\n // System.out.println(\"nodemap: \" + nodeMap);\n }", "private static void Heapify(int[] A , int i , int size){\r\n\t\t\r\n\t\tint left = LEFT(i);\r\n\t\tint right = RIGHT(i);\r\n\t\tint smallest =i;\r\n\t\t\r\n\t\t// get left and right child of node at index i \r\n\t\t//& compare A[i] with its left and right child\r\n\t\t\r\n\t\tif(left<size && A[left] < A[i]){\r\n\t\t\tsmallest = left;\r\n\t\t}\r\n\t\tif(right<size && A[right] < A[smallest]){\r\n\t\t\tsmallest = right;\r\n\t\t}\r\n\t\t// swap with child having lesser value and\r\n\t\t// call heapify-down on the child\r\n\t\tif(smallest !=i){\r\n\t\t\tswap(A,i,smallest);\r\n\t\t\tHeapify(A,smallest,size);\r\n\t\t}\r\n\t\t\r\n\t}", "public void insert(int n) {\n if (size == capacity) {\n Integer[] grow = new Integer[capacity *= 2];\n System.arraycopy(heap, 0, grow, 0, heap.length);\n heap = grow;\n }\n\n // Insert new element\n heap[size] = n;\n\n // Move element to correct spot\n int currPos = size++, parentPos;\n while (heap[currPos] > heap[parentPos = getParentIdx(currPos)]) {\n swap(currPos, parentPos);\n currPos = parentPos;\n }\n }", "public void assign(int indice, T element) {\r\n\t\tif (theHeap.size() == 0 || indice > theHeap.size()) {\r\n\t\t\ttheHeap.add(element);\r\n\t\t} else {\r\n\t\t\ttheHeap.add(indice, element);\r\n\t\t}\r\n\t}", "void minHeapify(int i) {\n\n\t\tint l = 2*i + 1;\n\t\tint r = 2*i + 2;\n\t\tint smallest = i;\n \n\t\tif(l < size && arr[l].element < arr[smallest].element)\n\t\t\tsmallest = l;\n\n\t\tif(r < size && arr[r].element < arr[smallest].element)\n\t\t\tsmallest = r;\n\n\t\tif(smallest != i) {\n\t\t\t// call method exchange to change \n\t\t\texchange(arr,i,smallest);\n\t\t\tminHeapify(smallest);\n\t\t}\n\t}", "private void bubbleUp(int index)\n {\n if(index == 0) //Base Case\n return;\n if(isMax == false) //Maxheap\n {\n if(arrayList.get(index).compareTo(arrayList.get((index-1)/2)) >= 0)\n return;\n else\n {\n E tempElement = arrayList.get((index-1)/2);\n arrayList.set((index-1)/2, arrayList.get(index));\n arrayList.set(index, tempElement);\n bubbleUp((index-1)/2);\n }\n }\n else //Minheap\n {\n if(arrayList.get(index).compareTo(arrayList.get((index-1)/2)) <= 0)\n return;\n else\n {\n E tempElement = arrayList.get((index-1)/2);\n arrayList.set((index-1)/2, arrayList.get(index));\n arrayList.set(index, tempElement);\n bubbleUp((index-1)/2);\n }\n }\n }", "void push(int x) \n\t{ \n\t\tif(isEmpty() == true) \n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tmin.push(x); \n\t\t} \n\t\telse\n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tint y = min.pop(); \n\t\t\tmin.push(y); \n\t\t\tif(x < y) \n\t\t\t\tmin.push(x); \n\t\t\telse\n\t\t\t\tmin.push(y); \n\t\t} \n\t}", "public void decreaseKey(MinHeap minHeap, int newKey, int vertex){\n int index = minHeap.indexes[vertex];\r\n\r\n //get the node and update its value\r\n HeapNode node = minHeap.minHeap[index];\r\n node.distance = newKey;\r\n minHeap.swim(index); // decrease the key in minHeap\r\n }", "public static void main(String[] args) {\n\r\n\t\tint [][] arr = new int[][] {\r\n\t\t\t{8,9,10,12},\r\n\t\t\t{2,5,9,12},\r\n\t\t\t{3,6,10,11},\r\n\t\t\t{1,4,7,8}\r\n\t\t};\t\t\r\n\t\t\r\n\t\tPriorityQueue<HeapNode> heap = new PriorityQueue<>();\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\t{\r\n\t\t\theap.offer(new HeapNode(arr[i][0], i, 0));\r\n\t\t}\r\n\t\tint count=0;\r\n\t\twhile(count<16)\r\n\t\t{\r\n\t\t\tHeapNode min = heap.poll();\r\n\t\t\tSystem.out.println(min.value);\r\n\t\t\tcount++;\r\n\t\t\tint value=0;\r\n\t\t\tint nextIndex=min.index+1;\r\n\t\t\tif(nextIndex < arr[min.k].length)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tvalue=arr[min.k][nextIndex];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tvalue=Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t\theap.offer(new HeapNode(value, min.k, nextIndex));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void maxHeapifyUp(int index) {\n while( (index != 0) && (heap.get(index).compareTo(heap.get(parentIndex(index)))) > 0 ) {\n swap(heap, index, parentIndex(index));\n index = parentIndex(index);\n }\n }", "protected void heapdown(int i) {\r\n\t\twhile (true) {\r\n\t\t\tint left = left(i);\r\n\t\t\tint right = right(i);\r\n\t\t\tint childToUse = i;\r\n\r\n\t\t\tif (left < list.size() && list.get(i).getValue() > list.get(left).getValue()) {\r\n\t\t\t\tchildToUse = left;\r\n\t\t\t}\r\n\r\n\t\t\tif (right < list.size() && list.get(childToUse).getValue() > list.get(right).getValue()) {\r\n\t\t\t\tchildToUse = right;\r\n\t\t\t}\r\n\r\n\t\t\tif (childToUse == i) {\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tswap(i, childToUse);\r\n\t\t\t\ti = childToUse;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void heapDown(int position) {\n\t\tMinHeapNode<T> temp = heap[position]; \r\n\t\tint child; \r\n\t\tfor (; position * 2 <= currentSize; position = child) { \r\n\t\t\tchild = 2 * position; //get child\r\n\t\t\tif (child != currentSize && heap[child + 1].getTime() < heap[child].getTime()) \r\n\t\t\t\tchild++; \r\n\t if (heap[child].getTime() < temp.getTime()) //child < node\r\n\t \theap[position] = heap[child]; //move child up \r\n\t else \r\n\t break; \r\n\t } \r\n\t heap[position] = temp; \r\n\t }", "public void decreaseKey(int locationToChange, double valueOfElem) {\r\n\t\tint i = locationToChange;\r\n\t\tif (valueOfElem > this.costHeap[i]) {\r\n\t\t\tthrow new RuntimeException(\"New key is larger than current key\");\r\n\t\t}\r\n\t\tthis.costHeap[i] = valueOfElem;\r\n\t\twhile (i > 0 && this.costHeap[this.parent(i)] > this.costHeap[i]) {\r\n\t\t\t// exchange i with parent(i)\r\n\t\t\tE tempE = objectHeap[i];\r\n\t\t\tdouble tempC = this.costHeap[i];\r\n\t\t\tthis.objectHeap[i] = this.objectHeap[parent(i)];\r\n\t\t\tthis.costHeap[i] = this.costHeap[parent(i)];\r\n\t\t\tthis.locations.put(this.objectHeap[i], i);\r\n\t\t\tthis.objectHeap[parent(i)] = tempE;\r\n\t\t\tthis.costHeap[parent(i)] = tempC;\r\n\t\t\tthis.locations.put(tempE, parent(i));\r\n\t\t\ti = parent(i);\r\n\t\t}\r\n\t}", "public static void heap(int[] data, int number){\n for(int i=1; i<number; i++){\n int child = i;\n while(child>0){\n int parent = child/2;\n if(data[child] > data[parent]){\n int temp=data[parent];\n data[parent]=data[child];\n data[child]=temp;\n }\n child=parent;\n }\n }\n }", "@Test\n\tpublic void testInsert() {\n\t\tHeap heap = new Heap(testArrayList.length + 1);\n\t\tdouble[] expected = new double[] { 1, 3, 24, 5, 15, 48, 32, 7, 36, 27, 38, 70, 53, 33, 93, 47 };\n\t\theap.build(testArrayList);\n\t\theap.insert(1);\n\t\tassertEquals(16, heap.getSize());\n\t\tassertArrayEquals(expected, heap.getKeyArray());\n\t}", "public void push(int value){\n //To be written by student\n localSize++;\n top++;\n if(localSize>A.getSize()){\n A.doubleSize();\n try{\n A.modifyElement(value,top);\n }catch(Exception c){c.printStackTrace();}\n }\n else{try{\n A.modifyElement(value,top);\n }catch(Exception a){a.printStackTrace();} }\n }", "private TreeNode<K, V> put(TreeNode<K, V> node, K key, V value){\r\n \r\n // If the node is null, create a new node with the information\r\n // passed into the function\r\n if(node == null){\r\n return new TreeNode<>(key, value);\r\n }\r\n \r\n // Compare the keys recursively to find the correct spot to insert\r\n // the new node or if the key already exists\r\n if(node.getKey().compareTo(key) > 0){\r\n // If the current node has a value greater than our key, go left\r\n node.left = put(node.left, key, value);\r\n }\r\n else if(node.getKey().compareTo(key) < 0){\r\n // If the current node has a value less than our key, go right\r\n node.right = put(node.right, key, value);\r\n }\r\n else{\r\n // If the keys are equal, only update the value\r\n node.setValue(value);\r\n }\r\n \r\n // Return the updated or newly inserted node\r\n return node;\r\n }", "public int insert(int newKey){\n int i=n-1;\n int x =0;\n if (isLeaf){\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i]) \n return -1;//duplicate return withoiut doinganything\n key[i+1] = key[i];\n i--;\n \n }\n if(x>=0){\n n++;\n key[i+1]=newKey;\n }\n }\n else{\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i])\n return -1;// find duplictte return without doing anithing \n \n else\n i--;\n }\n if(x>=0){\n \n int insertChild = i+1; // Subtree where new key must be inserted\n if (c[insertChild].isFull()){\n x++;// one more node.\n // The root of the subtree where new key will be inserted has to be split\n // We promote the mediand of that root to the current node and\n // update keys and references accordingly\n \n //System.out.println(\"This is the full node we're going to break \");// Debugging code\n //c[insertChild].printNodes();\n //System.out.println(\"going to promote \" + c[insertChild].key[T-1]);\n n++;\n c[n]=c[n-1];\n for(int j = n-1;j>insertChild;j--){\n c[j] =c[j-1];\n key[j] = key[j-1];\n }\n key[insertChild]= c[insertChild].key[T-1];\n c[insertChild].n = T-1;\n \n BTreeNode newNode = new BTreeNode(T);\n for(int k=0;k<T-1;k++){\n newNode.c[k] = c[insertChild].c[k+T];\n newNode.key[k] = c[insertChild].key[k+T];\n }\n \n newNode.c[T-1] = c[insertChild].c[2*T-1];\n newNode.n=T-1;\n newNode.isLeaf = c[insertChild].isLeaf;\n c[insertChild+1]=newNode;\n \n //System.out.println(\"This is the left side \");\n //c[insertChild].printNodes(); \n //System.out.println(\"This is the right side \");\n //c[insertChild+1].printNodes();\n //c[insertChild+1].printNodes();\n \n if (newKey <key[insertChild]){\n c[insertChild].insert(newKey); }\n else{\n c[insertChild+1].insert(newKey); }\n }\n else\n c[insertChild].insert(newKey);\n }\n \n \n }\n return x ;\n }", "private void maxHeapifyDown(int index) {\n assert index >= 0 && index < heap.size();\n\n while (!isLeaf(index)) {\n int j = leftChildIndex(index);\n\n if ( (j < heap.size() - 1) && (heap.get(j).compareTo(heap.get(j + 1)) < 0) ) {\n j++;\n }\n\n if (heap.get(index).compareTo(heap.get(j)) >= 0) {\n return;\n }\n \n swap(heap, index, j);\n index = j;\n }\n }", "private void heapInsert(int[] arr, int index) {\n while (arr[index] > arr[(index - 1) / 2]) {\n swap(arr, index, (index - 1) / 2);\n index = (index - 1) / 2;\n }\n }", "private void heapifyDown(int index) {\r\n\t\tint leftChildIndex = index * 2 + 1;\r\n\t\tint rightChildIndex = index * 2 + 2;\r\n\t\tint swapIndex = index;\r\n\t\t\r\n\t\t// if left child exists and greater than current node\r\n\t\tif (leftChildIndex < currentIndex) {\r\n\t\t\tif (heap.get(leftChildIndex).compareTo(heap.get(swapIndex)) > 0)\r\n\t\t\t\tswapIndex = leftChildIndex;\r\n\r\n\t\t\t// if right child exists and greater than current node and left child\r\n\t\t\tif (rightChildIndex < currentIndex) {\r\n\t\t\t\tif (heap.get(rightChildIndex).compareTo(heap.get(swapIndex)) > 0)\r\n\t\t\t\t\tswapIndex = rightChildIndex;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (swapIndex != index) { // swap if necessary\r\n\t\t\tE temp = heap.get(index);\r\n\t\t\theap.set(index, heap.get(swapIndex));\r\n\t\t\theap.set(swapIndex, temp);\r\n\r\n\t\t\theapifyDown(swapIndex); // check next level down\r\n\t\t}\r\n\t}", "public void minHeapInsert(node_data node){\n\t\tresize(1);\n\t\t_a[_size-1] = new NodeData((NodeData) node);\n\t\t_a[_size-1].setWeight(_positiveInfinity);\n\t\theapDecreaseKey(node);\n\t}", "public void insert(int key,int value){\n\t\tif(map.containsKey(key)){\n\t\t\tNode n = map.get(key);\n\t\t\tdeleteNode(n);\n\t\t\taddToHead(n);\n\t\t} else {\n\t\t\tif(count > capacity){\n\t\t\t\tint key1 = tail.key;\n\t\t\t\tmap.remove(key1);\n\t\t\t\tdeleteTail();\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t} else {\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t}\n\t\t}\n\t}", "void enqueue(int x, int p){\n for(int i=0;i<size;i++){\n if(values[i]==(-1)){\n values[i] = x;\n priorities[i] = p;\n break;\n }\n }\n }", "public void push(int x) {\n Integer elem = x;\n queue.offer(elem);\n topElem = elem;\n }", "public void push(int x) {\n if(x <= min){\n stack.push(min);\n min=x;\n }\n stack.push(x);\n }", "private void upheap(int pos) {\n\t\t// implement this method\n\t\twhile (pos > 1) {\n\t\t\tint pos2 = (pos) / 2;\n\t\t\tif (pos < 0)\n\t\t\t\tpos = 0;\n\t\t\tif ((comparator.compare(apq.get(pos), apq.get(pos2)) >= 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tswap(pos, pos2);\n\t\t\tpos = pos2;\n\n\t\t}\n\t\tlocator.set(apq.get(pos), pos);\n\t}", "public void put(int key, int value) {\n Node n = map.get(key);\n if(n == null){\n n = new Node(key, value);\n add(n);\n map.put(key, n);\n }\n else{\n n.val = value;\n update(n);\n }\n if(map.size() > this.capacity ){\n //we need to remove a stale node now\n Node removeNode = tail.prev;\n remove(removeNode);\n map.remove(removeNode.key);\n return;\n }\n return;\n }", "static void sortedInsert(Stack<Integer> s, int x)\n\t{\n\t\t// Base case: Either stack is empty or newly\n\t\t// inserted item is greater than top (more than all\n\t\t// existing)\n\t\tif (s.isEmpty() || x > s.peek()) \n\t\t{\n\t\t\ts.push(x);\n\t\t\treturn;\n\t\t}\n\t\t// If top is greater, remove the top item and recur\n\t\tint temp = s.pop();\n\t\tsortedInsert(s, x);\n\n\t\t// Put back the top item removed earlier\n\t\ts.push(temp);\n\t}", "private static <T> void heapify (HeapSet<T> heap) {\r\n\t\tfor (int i = heap.size () - 1; i >= 0; --i) {\r\n\t\t\tsiftDown (heap, i, heap.size ());\r\n\t\t}\r\n\t}" ]
[ "0.6642492", "0.6622422", "0.65209776", "0.6501423", "0.6460673", "0.64601004", "0.64061743", "0.6384436", "0.6384124", "0.6339848", "0.63353", "0.63278675", "0.6322286", "0.62827486", "0.6262223", "0.625294", "0.62485105", "0.6214881", "0.6213619", "0.6155771", "0.61540353", "0.6142099", "0.6135113", "0.61279494", "0.6123053", "0.60763186", "0.60592747", "0.6041765", "0.6038758", "0.6027446", "0.6025674", "0.60240585", "0.5978436", "0.5976922", "0.5975677", "0.5969305", "0.59680784", "0.59663326", "0.5961962", "0.59610695", "0.5922107", "0.5921966", "0.59136635", "0.59045064", "0.59026575", "0.5895702", "0.5893423", "0.58762646", "0.58722967", "0.5861822", "0.58583355", "0.5852055", "0.58440375", "0.5842437", "0.58285564", "0.5819492", "0.58114284", "0.5802788", "0.57916987", "0.5791072", "0.57871306", "0.5785549", "0.5779303", "0.5771867", "0.57708085", "0.57628745", "0.575864", "0.5753277", "0.57527316", "0.57460153", "0.5738428", "0.573033", "0.57225555", "0.5711853", "0.570779", "0.57032937", "0.5702696", "0.56856585", "0.56790304", "0.5677872", "0.56778485", "0.5677535", "0.566419", "0.5662946", "0.56595767", "0.5657155", "0.56474805", "0.564109", "0.5633965", "0.5628795", "0.562466", "0.56239235", "0.56188697", "0.5618606", "0.56127155", "0.5606275", "0.5592771", "0.5591189", "0.55906683", "0.5587613", "0.5581366" ]
0.0
-1
Method recurse its way up the tree until it finds either a root or an unmarked node. Time complexity: O(logn) Space complexity: O(1)
protected void cascadingCut(Node<T> y) { Node<T> z = y.parent; if (z != null) { if (!y.mark) { y.mark = true; } else { cut(y, z); cascadingCut(z); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void DepthFirstSearch(Node current){\n helperDFS( current );\n }", "public void inOrderTraverseRecursive();", "public void depthFirstSearch(){\n\t\tStack<TreeNode<T>> nodeStack = new Stack<TreeNode<T>>();\n\n\t\tif(root!=null){\n\t\t\tnodeStack.push(root);\n\t\t\tSystem.out.println(root.data);\n\t\t\tTreeNode<T> topNode = root;\n\t\t\twhile(!nodeStack.isEmpty()){\n\t\t\t\tif(topNode.left!=null){\n\t\t\t\t\tnodeStack.push(topNode.left);\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(topNode.data);\n\t\t\t\t\ttopNode = topNode.left;\n\t\t\t\t} else if(topNode.right!=null){\n\t\t\t\t\tnodeStack.push(topNode.right);\n\t\t\t\t\tSystem.out.println(topNode.data);\n\t\t\t\t\ttopNode = topNode.right;\n\t\t\t\t} else{\n\t\t\t\t\ttry{\n\t\t\t\t\t\tnodeStack.pop();\n\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}", "static void inOrderWithoutRecursion(Node root) {\n if (root == null) {\n return;\n }\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n }\n curr = stack.pop();\n System.out.print(curr.data + \" \");\n curr = curr.right;\n }\n\n }", "void inorder(Node root) {\n\t\tboolean leftdone = false;\n\n\t\t// Start traversal from root\n\t\twhile (root != null) {\n\t\t\t// If left child is not traversed, find the\n\t\t\t// leftmost child\n\t\t\tif (!leftdone) {\n\t\t\t\twhile (root.left != null) {\n\t\t\t\t\troot = root.left;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Print root's data\n\t\t\tSystem.out.print(root.data + \" \");\n\n\t\t\t// Mark left as done\n\t\t\tleftdone = true;\n\n\t\t\t// If right child exists\n\t\t\tif (root.right != null) {\n\t\t\t\tleftdone = false;\n\t\t\t\troot = root.right;\n\t\t\t}\n\n\t\t\t// If right child doesn't exist, move to parent\n\t\t\telse if (root.parent != null) {\n\t\t\t\t// If this node is right child of its parent,\n\t\t\t\t// visit parent's parent first\n\t\t\t\twhile (root.parent != null && root == root.parent.right)\n\t\t\t\t\troot = root.parent;\n\n\t\t\t\tif (root.parent == null)\n\t\t\t\t\tbreak;\n\t\t\t\troot = root.parent;\n\t\t\t} else\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public boolean checkForBinarySearchTree() {\n if (this.rootNode == null)\n return true;\n \n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n for (int i=1; i<inorderTraverse.size(); i++) {\n if(inorderTraverse.get(i-1).compareTo(inorderTraverse.get(i)) == 1)\n return false;\n }\n \n return true;\n }", "public static void inOrderTraverse(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\t\tNode node = root;\n\t\twhile (node!=null || !stack.empty()) {\n if(node!=null){\n \t stack.push(node);\n \t node = node.lchild;\n }else{\n \t node = stack.pop();\n \t node.visit();\n \t node = node.rchild;\n }\n\t\t}\n\t}", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "public void find(TreeNode root) {\r\n if (root == null) return;\r\n find(root.left);\r\n\t\tif (prev != null && prev.val > root.val) {\r\n y = root;\r\n if (x == null) {\r\n x = prev;\r\n } else {\r\n return;\r\n }\r\n }\r\n prev = root;\r\n find(root.right);\r\n }", "public static <E extends Comparable> int deep(TreeNode<E> root) {\r\n \r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int deep = 0;\r\n \r\n queue.add(root);\r\n TreeNode<E> startNewLine = root;\r\n \r\n while(!queue.isEmpty()) {\r\n TreeNode<E> currentNode = queue.poll();\r\n if(currentNode == startNewLine) {\r\n startNewLine = null;\r\n deep ++;\r\n }\r\n if(currentNode.getLeft() != null) queue.add(currentNode.getLeft());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getLeft();\r\n }\r\n if(currentNode.getRight()!= null) queue.add(currentNode.getRight());\r\n if(startNewLine == null) {\r\n startNewLine = currentNode.getRight();\r\n }\r\n }\r\n \r\n \r\n return deep;\r\n }", "public void inorder()\r\n {\r\n inorder(root);\r\n }", "static boolean dfs(TreeNode root) {\n Stack<TreeNode> stack = new Stack<TreeNode>();\n stack.push(root);\n while (!stack.isEmpty()) {\n TreeNode node = (TreeNode) stack.pop();\n if (node == null)\n continue;\n\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n stack.addAll(node.getChildren());\n // dump(stack);\n }\n return false;\n }", "public RBNode<T, E> searchRoot(RBNode<T, E> node) {\r\n\t\tRBNode<T, E> c = node;\r\n\t\tRBNode<T, E> p = node.parent;\r\n\t\t// While the parent of the current node is not null move up.\r\n\t\twhile (p != nillLeaf) {\r\n\t\t\tc = c.parent;\r\n\t\t}\r\n\t\t// c must be the root of the node being entered\r\n\t\t// return c which is the root.\r\n\t\treturn c;\r\n\t}", "void traverse2() {\n BTNode node = root, prev = null, next;\n while (node != null) {\n if (prev == node.parent) {\n if (node.left != null) {\n next = node.left;\n }\n else if (node.right != null) {\n next = node.right;\n }\n else {\n next = node.parent;\n }\n } else if (prev == node.left) {\n if (node.right != null) {\n next = node.right;\n }\n else {\n next = node.parent;\n }\n } else {\n next = node.parent;\n }\n prev = node;\n node = next;\n }\n }", "public List<T> wantedNodesIterative(Predicate<T> p) {\n //PART 4 \n if(root == null){\n return null;\n }\n LinkedList<TreeNode<T>> stack = new LinkedList<>();\n stack.add(root);\n \n List<T> wantedNodes =new LinkedList<>();\n TreeNode<T> current;\n \n while(!stack.isEmpty()){\n current = stack.pop();\n if(p.check(current.data)){\n wantedNodes.add(current.data);\n }\n if(current.right != null){\n stack.addFirst(current.right);\n }\n if(current.left != null){\n stack.addFirst(current.left);\n }\n }\n return wantedNodes;\n }", "private void inorderLeafOnly(Node root) {// leaf not left, sorry it is LEAF\r\n if (this == null)\r\n return;\r\n if (root.left != null)\r\n inorderLeafOnly(root.left);\r\n // make sure it is leaf before printing\r\n if (root.left == null && root.right == null)\r\n System.out.print(root.value + \">\");\r\n if (root.right != null)\r\n inorderLeafOnly(root.right);\r\n }", "boolean hasRecursive();", "static boolean bfs(TreeNode root) {\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n queue.add(root);\n while (!queue.isEmpty()) {\n TreeNode node = (TreeNode) queue.remove();\n if (node == null)\n continue;\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n queue.addAll(node.getChildren());\n // dump(queue);\n }\n return false;\n }", "private void inorder() {\n inorder(root);\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public void inorder()\r\n\t{\r\n\t\tif(root==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"tree is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// find the leftmost node of the tree\r\n\t\tNode p =root;\r\n\t\twhile(p.leftThread==false)\r\n\t\t\tp=p.left;\r\n\t\twhile(p!=null)//loop until we reach the right most node whose right link(rightThread) is null\r\n\t\t{\r\n\t\t\tSystem.out.print(p.info + \" \");\r\n\t\t\tif(p.rightThread==true) // if 'right' is pointing to the inorder successor\r\n\t\t\t\tp = p.right;\r\n\t\t\telse // find the inorder successor i.e the left most node in the right sub tree\r\n\t\t\t{\r\n\t\t\t\tp = p.right;\r\n\t\t\t\twhile(p.leftThread==false)\r\n\t\t\t\t\tp = p.left;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "private MyBinaryNode<K> searchRecursive(MyBinaryNode<K> current, K key) {\n\t\tif (current == null) \n\t\treturn null;\n\t\telse if(current.key.compareTo(key) == 0) \n\t\t\treturn current;\n\t\telse if(current.key.compareTo(key) < 0) \n\t\t\treturn searchRecursive(current.right, key);\n\t\telse\n\t\t\treturn searchRecursive(current.left, key); \n\t}", "protected void scanNodesForRecursion(Cell cell, HashSet<Cell> markCellForNodes, NodeProto [] nil, int start, int end)\n \t{\n \t\tfor(int j=start; j<end; j++)\n \t\t{\n \t\t\tNodeProto np = nil[j];\n \t\t\tif (np instanceof PrimitiveNode) continue;\n \t\t\tCell otherCell = (Cell)np;\n \t\t\tif (otherCell == null) continue;\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (markCellForNodes.contains(otherCell)) continue;\n \n \t\t\tLibraryFiles reader = this;\n \t\t\tif (otherCell.getLibrary() != cell.getLibrary())\n \t\t\t\treader = getReaderForLib(otherCell.getLibrary());\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (reader != null)\n \t\t\t\treader.realizeCellsRecursively(otherCell, markCellForNodes, null, 0);\n \t\t}\n \t\tmarkCellForNodes.add(cell);\n \t}", "private void inorder() {\r\n\t\t\tinorder(root);\r\n\t\t}", "public boolean isLeaf()\n/* */ {\n/* 477 */ return this.children.isEmpty();\n/* */ }", "public TreeNode pruneTree(TreeNode root) {\n if (containsOne(root) == false) {\n return null;\n } else {\n return root;\n }\n }", "public void inorder()\n {\n inorder(root);\n }", "public void inorder()\n {\n inorder(root);\n }", "private int pushDownRoot() {\n\t\treturn pushDown(0);// TODO: A one-line function that calls pushDown()\n\t}", "abstract boolean isLeaf();", "public void inorder()\n {\n inorderRec(root);\n }", "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "private int treeTraverse (TreeNode root, int previousVal) {\n if (root == null)\n return 0;\n \n // traverse left, then right\n int left = treeTraverse(root.left, root.val);\n int right = treeTraverse(root.right, root.val);\n \n // calculate the longest path\n path = Math.max(left + right, path);\n\n //return\n if (root.val == previousVal) \n return Math.max(left, right) + 1;\n \n return 0;\n }", "boolean isRecursive();", "private BTNode<T> find ( T data, BTNode<T> node ){\n \t\tfindCount++;\n\t\tif (data.compareTo (node.getData()) == 0){\n \t\treturn node;\n\t\t}else {\n\t\t//findCount++;\n\t\tif (data.compareTo (node.getData()) < 0){\n \t\treturn (node.getLeft() == null) ? null : find (data, node.getLeft());\n\t\t}else{\n \t\treturn (node.getRight() == null) ? null : find (data, node.getRight());\n\t\t}\n\t\t}\n }", "public void recoverTree(TreeNode root) {\n if (root == null) {\n return;\n }\n\n prev = null;\n first = null;\n second = null;\n\n inorderTraversal(root);\n\n if (first != null && second != null) {\n int temp = first.val;\n first.val = second.val;\n second.val = temp;\n }\n\n }", "private void treeBreadthFirstTraversal() {\n Node currNode = root;\n java.util.LinkedList<Node> queue = new java.util.LinkedList<Node>();\n\n // Highlights the first Node.\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores Nodes until the queue is empty.\n while (true) {\n\n // Marks that this Node's children should be explored.\n for (int i = 0; i < getNumChildren(); ++i) {\n if (currNode.children[i] != null) {\n queue.addLast(currNode.children[i]);\n queueQueueAddAnimation(currNode.children[i],\n \"Queueing \" + currNode.children[i].key,\n AnimationParameters.ANIM_TIME);\n\n }\n }\n\n // Pops the next Node from the queue.\n if (!queue.isEmpty()) {\n currNode = queue.pop();\n queueListPopAnimation(\"Popped \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }\n // If the queue is empty, breaks.\n else break;\n\n }\n }", "boolean isLeaf();", "boolean isLeaf();", "boolean isLeaf();", "boolean isLeaf();", "static boolean findPath(BTNode root, int[] path, int k)\r\n{\r\n // base case\r\n if (root == null) return false;\r\n \r\n // Store this node in path vector. The node will be removed if\r\n // not in path from root to k\r\n path[0] = root.key;\r\n \r\n // See if the k is same as root's key\r\n if (root.key == k)\r\n return true;\r\n \r\n // Check if k is found in left or right sub-tree\r\n if ( (root.left != null && findPath(root.left, path, k)) ||\r\n (root.right != null && findPath(root.right, path, k)) )\r\n return true;\r\n \r\n // If not present in subtree rooted with root, remove root from\r\n // path[] and return false\r\n return false;\r\n}", "private Node searchRec(Node root, int data){\n\n if(root==null || root.getData()==data){\n return root;\n }\n Node node = searchRec(root.getLeft(), data);\n if(node != null){\n return node;\n }\n return searchRec(root.getRight(), data);\n }", "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "public static void bfs(TreeNode root){\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n System.out.println(root.val);\n root.visited=true;\n\n while (!queue.isEmpty()){\n TreeNode node=queue.remove();\n TreeNode child=null;\n if((child=getUnVisitedChiledNode(node))!=null){\n child.visited=true;\n System.out.println(child.val);\n queue.add(child);\n }\n }\n // cleearNodes();\n }", "public static <T> void inorderIterative(TreeNode<T> root)\n {\n // create an empty stack\n Stack<TreeNode> stack = new Stack();\n\n // start from root node (set current node to root node)\n TreeNode curr = root;\n\n // if current node is null and stack is also empty, we're done\n while (!stack.empty() || curr != null)\n {\n // if current node is not null, push it to the stack (defer it)\n // and move to its left child\n if (curr != null)\n {\n stack.push(curr);\n curr = curr.left;\n }\n else\n {\n // else if current node is null, we pop an element from stack,\n // print it and finally set current node to its right child\n curr = stack.pop();\n System.out.print(curr.value + \" \");\n\n curr = curr.right;\n }\n }\n }", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n TreeNode ans = null;\n while (root != null) {\n if (root.val > p.val) {\n ans = root;\n root = root.left;\n } else root = root.right;\n }\n return ans;\n}", "private int dfsInOrderIterativeSol(TreeNode root, int k) {\n // Corner Case\n if (root == null) {\n return 0;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n int countNum = 0;\n\n while (!stack.isEmpty() || node != null) {\n if (node != null) {\n stack.push(node); // just like the recursion\n node = node.left;\n } else {\n TreeNode curNode = stack.pop();\n countNum++;\n if (countNum == k) {\n return curNode.val;\n }\n node = curNode.right;\n }\n }\n return 0;\n\n // // push nodes till the left end\n // while (root != null) {\n // stack.push(root);\n // root = root.left;\n // }\n\n // while (k != 0) {\n // TreeNode curNode = stack.pop();\n // k -= 1;\n // if (k == 0) {\n // return curNode.val;\n // }\n\n // TreeNode rightNode = curNode.right;\n // // push the right node till the left end still!!!\n // while(rightNode != null) {\n // stack.push(rightNode);\n // rightNode = rightNode.left;\n // }\n // }\n\n // return 0; // never hit if k is valid and root is not null\n }", "public BTNode<T> find ( T data ){\n\t\t//reset the find count\n\t\tfindCount = 0;\n\t\t \t\t\n\t\tif (root == null) \n\t\t\treturn null;\n \t\telse\n \t\treturn find (data, root);\n \t}", "public TreeNode inorderSuccessor_naive(TreeNode root, TreeNode p) {\n Stack<TreeNode> stack = new Stack<>();\n TreeNode prev = null;\n while (root != null || !stack.empty()) {\n if (root != null) {\n stack.push(root);\n root = root.left;\n }\n else {\n root = stack.pop();\n if (prev != null && prev == p) {\n return root;\n }\n prev = root;\n root = root.right;\n }\n }\n return null;\n }", "public boolean isLeaf();", "public boolean isLeaf();", "public boolean isLeaf();", "public boolean isLeaf();", "public void inorderRec(Node root)\n {\n //If condition to check root is not null .\n if(root!= null) {\n inorderRec(root.left);\n System.out.print(root.key + \" \");\n inorderRec(root.right);\n }\n }", "public boolean isLeaf(){\n\t\t// return right == null && left == null && middle == null\n\t\treturn right==null && left == null && middle == null;\n\t}", "public TreeNode searchBST(TreeNode root, int val) {\n\n if (root.left == null && root.right == null){\n return new TreeNode();\n }\n\n // DFS\n return _help(root, val);\n }", "static void preOrderTraversalStackOptimised(Node root) {\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n\n while (curr != null) {\n System.out.print(curr.data + \" \");\n if (curr.right != null) {\n stack.push(curr.right);\n }\n curr = curr.left;\n }\n\n if (!stack.isEmpty()) {\n curr = stack.pop();\n }\n }\n }", "private TraverseData traverseOneLevel(TraverseData data) {\n Node<T> currentNode = data.currentNode;\n Node<T> currentNewNode = data.currentNewNode;\n int nextBranch = data.index / data.base;\n\n currentNewNode.set(nextBranch, new Node<>(branchingFactor));\n for (int anotherBranch = 0; anotherBranch < branchingFactor; anotherBranch++) {\n if (anotherBranch == nextBranch) {\n continue;\n }\n currentNewNode.set(anotherBranch, currentNode.get(anotherBranch));\n }\n\n //down\n currentNode = currentNode.get(nextBranch);\n currentNewNode = currentNewNode.get(nextBranch);\n return new TraverseData(currentNode, currentNewNode, data.newRoot, data.index % data.base,\n data.base);\n }", "Node minValueNode(Node node) \n { \n Node current = node; \n \n /* loop down to find the leftmost leaf */\n while (current.left != null) \n current = current.left; \n \n return current; \n }", "private BinaryTreeNode findNode(T item) {\n\t\tif (item.equals(root.data)) {\n\t\t\treturn root;\n\t\t}\n\n\t\telse return findNodeRecursive(item, root);\n\t}", "private static void doMirrorTreeRecursive(Node root) {\n Queue<Node> lvlQueue = new LinkedList<>();\n lvlQueue.add(root);\n while (!lvlQueue.isEmpty()) {\n Node poppedNode = lvlQueue.poll();\n if (poppedNode.left != null){\n lvlQueue.add(poppedNode.left);\n }\n if (poppedNode.right != null){\n lvlQueue.add(poppedNode.right);\n }\n Node temp = poppedNode.left;\n poppedNode.left = poppedNode.right;\n poppedNode.right = temp;\n }\n }", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "public TreeNode subtreeWithAllDeepest(TreeNode root) {\n }", "public static void main(String[] args) {\n Node root = newNode(1);\n\n root.left = newNode(2);\n root.right = newNode(3);\n\n root.left.left = newNode(4);\n root.left.right = newNode(5);\n\n root.left.left.left = newNode(8);\n root.left.left.right = newNode(9);\n\n root.left.right. left = newNode(10);\n root.left.right. right = newNode(11);\n\n root.right.left = newNode(6);\n root.right.right = newNode(7);\n root.right.left .left = newNode(12);\n root.right.left .right = newNode(13);\n root.right.right. left = newNode(14);\n root.right.right. right = newNode(15);\n System.out.println(findNode(root, 5, 6, 15));\n }", "public void dfs()\n{\n Stack s=new Stack();\n s.push(this.rootNode);\n rootNode.visited=true;\n printNode(rootNode);\n while(!s.isEmpty())\n {\n Node n=(Node)s.peek();\n Node child=getUnvisitedChildNode(n);\n if(child!=null)\n {\n child.visited=true;\n printNode(child);\n s.push(child);\n }\n else\n {\n s.pop();\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n if (root == null) return null;\n if (root.val > p.val) {\n TreeNode left = inorderSuccessor(root.left, p);\n return left == null ? root : left;\n } else return inorderSuccessor(root.right, p);\n}", "private Node searchAux(Node tree, K key) {\n if(root == null) { return null; } //empty tree\n int cmp = key.compareTo(tree.key);\n if(cmp == 0 || cmp < 0 && tree.left == null || cmp > 0 && tree.right == null) { //found the node or last checked\n comparisons += 1;\n return tree;\n }\n if(cmp < 0) {\n comparisons += 1;\n return searchAux(tree.left, key);\n } else {\n comparisons += 1;\n return searchAux(tree.right, key);\n }\n }", "public void bfs(Node root) {\r\n\t\tQueue<Node> q = new LinkedList<Node>();\r\n\t\tint count = 0;\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tq.add(root);\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tNode n = (Node) q.remove();\r\n\t\t\tSystem.out.print(\" \" + n.data);\r\n\r\n\t\t\tif (n.Lchild != null) {\r\n\r\n\t\t\t\tq.add(n.Lchild);\r\n\t\t\t} else if (n.Rchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\t\t\tif (n.Rchild != null) {\r\n\t\t\t\tq.add(n.Rchild);\r\n\t\t\t} else if (n.Lchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\" + \"the number of gaps :: \" + count);\r\n\t}", "private BinaryTreeNode findNodeRecursive(T item, BinaryTreeNode current) {\n\t\tif(current == null)\n\t\t\treturn null;\n\n\t\tif(item.equals(current.data))\n\t\t\treturn current;\n\n\t\tif(item.compareTo(current.data) < 0)\n\t\t\treturn findNodeRecursive(item, current.left);\n\t\telse\n\t\t\treturn findNodeRecursive(item, current.right);\n\n\t}", "private static int minDepthNoRecursion(TreeNode root) {\r\n\t\treturn Math.min(maxDepthNoRecursion(root, true), maxDepthNoRecursion(root, false)); \r\n\t}", "private boolean isLeafNode() {\r\n return (this.left == null && this.right == null);\r\n }", "private TSTNode<E> deleteNodeRecursion(TSTNode<E> currentNode) {\n \n if(currentNode == null) return null;\n if(currentNode.relatives[TSTNode.EQKID] != null || currentNode.data != null) return null; // can't delete this node if it has a non-null eq kid or data\n\n TSTNode<E> currentParent = currentNode.relatives[TSTNode.PARENT];\n\n // if we've made it this far, then we know the currentNode isn't null, but its data and equal kid are null, so we can delete the current node\n // (before deleting the current node, we'll move any lower nodes higher in the tree)\n boolean lokidNull = currentNode.relatives[TSTNode.LOKID] == null;\n boolean hikidNull = currentNode.relatives[TSTNode.HIKID] == null;\n\n ////////////////////////////////////////////////////////////////////////\n // Add by Cheok. To resolve java.lang.NullPointerException\n // I am not sure this is the correct solution, as I have not gone\n // through this sourc code in detail.\n if (currentParent == null && currentNode == this.rootNode) {\n // if this executes, then current node is root node\n rootNode = null;\n return null;\n }\n // Add by Cheok. To resolve java.lang.NullPointerException\n ////////////////////////////////////////////////////////////////////////\n\n // now find out what kind of child current node is\n int childType;\n if(currentParent.relatives[TSTNode.LOKID] == currentNode) {\n childType = TSTNode.LOKID;\n } else if(currentParent.relatives[TSTNode.EQKID] == currentNode) {\n childType = TSTNode.EQKID;\n } else if(currentParent.relatives[TSTNode.HIKID] == currentNode) {\n childType = TSTNode.HIKID;\n } else {\n // if this executes, then current node is root node\n rootNode = null;\n return null;\n }\n\n if(lokidNull && hikidNull) {\n // if we make it to here, all three kids are null and we can just delete this node\n currentParent.relatives[childType] = null;\n return currentParent;\n }\n\n // if we make it this far, we know that EQKID is null, and either HIKID or LOKID is null, or both HIKID and LOKID are NON-null\n if(lokidNull) {\n currentParent.relatives[childType] = currentNode.relatives[TSTNode.HIKID];\n currentNode.relatives[TSTNode.HIKID].relatives[TSTNode.PARENT] = currentParent;\n return currentParent;\n }\n\n if(hikidNull) {\n currentParent.relatives[childType] = currentNode.relatives[TSTNode.LOKID];\n currentNode.relatives[TSTNode.LOKID].relatives[TSTNode.PARENT] = currentParent;\n return currentParent;\n }\n\n int deltaHi = currentNode.relatives[TSTNode.HIKID].splitchar - currentNode.splitchar;\n int deltaLo = currentNode.splitchar - currentNode.relatives[TSTNode.LOKID].splitchar;\n int movingKid;\n TSTNode<E> targetNode;\n \n // if deltaHi is equal to deltaLo, then choose one of them at random, and make it \"further away\" from the current node's splitchar\n if(deltaHi == deltaLo) {\n if(Math.random() < 0.5) {\n deltaHi++;\n } else {\n deltaLo++;\n }\n }\n\n\tif(deltaHi > deltaLo) {\n movingKid = TSTNode.HIKID;\n targetNode = currentNode.relatives[TSTNode.LOKID];\n } else {\n movingKid = TSTNode.LOKID;\n targetNode = currentNode.relatives[TSTNode.HIKID];\n }\n\n while(targetNode.relatives[movingKid] != null) targetNode = targetNode.relatives[movingKid];\n \n // now targetNode.relatives[movingKid] is null, and we can put the moving kid into it.\n targetNode.relatives[movingKid] = currentNode.relatives[movingKid];\n\n // now we need to put the target node where the current node used to be\n currentParent.relatives[childType] = targetNode;\n targetNode.relatives[TSTNode.PARENT] = currentParent;\n\n if(!lokidNull) currentNode.relatives[TSTNode.LOKID] = null;\n if(!hikidNull) currentNode.relatives[TSTNode.HIKID] = null;\n\n // note that the statements above ensure currentNode is completely dereferenced, and so it will be garbage collected\n return currentParent;\n }", "private boolean ifLeaf(Node myT) {\r\n return myT != null && myT.left == null && myT.right == null;\r\n }", "public boolean isLeaf()\r\n {\r\n return this.getLeft()==null&&this.getRight()==null;\r\n }", "public void inorderTraverse(){\n\t\tinorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) {\n\n MultiChildTreeNode<String> ff = new MultiChildTreeNode<>(\"F\");\n MultiChildTreeNode<String> iff = new MultiChildTreeNode<>(\"I\");\n ff.children.add(iff);\n MultiChildTreeNode<String> kff = new MultiChildTreeNode<>(\"K\");\n ff.children.add(kff);\n MultiChildTreeNode<String> t2 = ff;//Subtree to find\n\n //Main tree\n MultiChildTreeNode<String> t1 = new MultiChildTreeNode<>(\"A\");\n MultiChildTreeNode<String> b = new MultiChildTreeNode<>(\"B\");\n MultiChildTreeNode<String> c = new MultiChildTreeNode<>(\"C\");\n MultiChildTreeNode<String> d = new MultiChildTreeNode<>(\"D\");\n t1.children.add(b);\n t1.children.add(c);\n t1.children.add(d);\n\n MultiChildTreeNode<String> e = new MultiChildTreeNode<>(\"E\");\n MultiChildTreeNode<String> h = new MultiChildTreeNode<>(\"H\");\n e.children.add(h);\n\n MultiChildTreeNode<String> f = new MultiChildTreeNode<>(\"F\");\n b.children.add(f);\n MultiChildTreeNode<String> i = new MultiChildTreeNode<>(\"I\");\n f.children.add(i);\n MultiChildTreeNode<String> j = new MultiChildTreeNode<>(\"J\");\n f.children.add(j);\n\n\n /**\n * A\n * / | \\\n * B C.. D...\n * / |\n *E.. F\n * / \\\n * I J\n * |\n * F\n * / \\\n * I K\n */\n j.children.add(ff); //commenting out this line should give false otherwise true\n\n MultiChildTreeNode<String> k = new MultiChildTreeNode<>(\"K\");\n MultiChildTreeNode<String> g = new MultiChildTreeNode<>(\"G\");\n b.children.add(e);\n\n b.children.add(g);\n MultiChildTreeNode<String> l = new MultiChildTreeNode<>(\"L\");\n c.children.add(k);\n c.children.add(l);\n\n MultiChildTreeNode<String> m = new MultiChildTreeNode<>(\"M\");\n MultiChildTreeNode<String> n = new MultiChildTreeNode<>(\"N\");\n MultiChildTreeNode<String> o = new MultiChildTreeNode<>(\"O\");\n d.children.add(m);\n d.children.add(n);\n d.children.add(o);\n CheckForSubTree<String> checker = new CheckForSubTree<>();\n System.out.println (checker.isSubTree(t1, t2));\n }", "private Node<TokenAttributes> findFirst(Node<TokenAttributes> current_node) {\n if (current_node.getParent() != null && current_node.getParent().getChildren().size() == 1) {\n return findFirst(current_node.getParent());\n }\n if (current_node.getParent() == null) {\n return current_node;\n }\n return current_node;\n }", "private void process(TreeNode root){\n while(root!=null){\n dq.push(root);\n root= root.left;\n }\n }", "private boolean recurseTree(TreeNode currentNode, TreeNode p, TreeNode q) {\n if (currentNode == null) {\n return false;\n }\n\n // Left Recursion. If left recursion returns true, set left = 1 else 0\n int left = this.recurseTree(currentNode.left, p, q) ? 1 : 0;\n\n // Right Recursion\n int right = this.recurseTree(currentNode.right, p, q) ? 1 : 0;\n\n // If the current node is one of p or q\n int mid = (currentNode == p || currentNode == q) ? 1 : 0;\n\n\n // If any two of the flags left, right or mid become True\n if (mid + left + right >= 2) {\n this.ans = currentNode;\n }\n\n // Return true if any one of the three bool values is True.\n return (mid + left + right > 0);\n }", "private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }", "@Override\r\n\tpublic boolean isLeaf() {\n\t\treturn (left==null)&&(right==null);\r\n\t}", "private int root(int i) {\n while(id[i]!=i){\n i = id[i];\n }\n return i;\n }", "public void inOrderIterative(TreeNode root)\r\n\t{\r\n\t\tif(root == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tStack<TreeNode> stack = new Stack<>();\r\n\t\tTreeNode temp=root;\r\n\t\twhile(!stack.isEmpty() || temp!=null)\r\n\t\t{\r\n\t\t\tif(temp!=null)\r\n\t\t\t{\r\n\t\t\t\tstack.push(temp);\r\n\t\t\t\ttemp=temp.left;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttemp=stack.pop();\r\n\t\t\t\tSystem.out.print(temp.data+\" \");\r\n\t\t\t\ttemp=temp.right;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t}", "public Boolean isLeaf(){\r\n\t\tif(getLeft()==null&&getRight()==null) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "void inorder(Node root){\n if(root!=null){\n // checking if the tree is not empty\n inorder(root.left);\n System.out.print(root.data+\" \");\n inorder(root.right);\n }\n\n }", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private SkipNode<K, V> findNode(Object key) {\n\t\tSkipNode<K, V> nodeOut;\n\t\tnodeOut = headNode;\n\t\twhile (true) {\n\t\t\twhile ((nodeOut.getNext().getKey()) != posInf\n\t\t\t\t\t&& (nodeOut.getNext().getKey()).compareTo((Integer) key) <= 0)\n\t\t\t\tnodeOut = nodeOut.getNext();\n\t\t\tif (nodeOut.getDown() != null)\n\t\t\t\tnodeOut = nodeOut.getDown();\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\treturn nodeOut;\n\t}", "public static <E extends Comparable> int minDeep(TreeNode<E> root) {\r\n Queue<TreeNode<E>> queue = new LinkedList<>();\r\n \r\n int minDeep = 1;\r\n \r\n queue.add(root);\r\n \r\n while(true){\r\n for(int deep = 0; deep < Math.pow(2, minDeep); deep++) {\r\n TreeNode<E> node = queue.poll();\r\n if(node.getLeft() == null || node.getRight() == null) return minDeep;\r\n queue.add(node.getLeft());\r\n queue.add(node.getRight());\r\n }\r\n \r\n minDeep++;\r\n }\r\n }", "static void bfs(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n output.add(node.val);\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }", "private Node searchID(Node root, int ID) {\n\t\tif(root == null || root.isNull) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tif(root.ID > ID) {\n\t\t\t\treturn searchID(root.left, ID);\n\t\t\t} else if(root.ID < ID)\n\t\t\t\treturn searchID(root.right, ID);\n\t\t\telse\n\t\t\t\treturn root;\n\t\t}\n\t}", "public void PrintTree_BFS(TreeNode root){\n if (root == null){\n return;\n }\n \n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n \n queue.add(root);\n \n TreeNode node = null;\n \n int leftID,rightID;\n \n while(!queue.isEmpty()){\n node = queue.poll();\n if (node.left == null){\n leftID = -1;\n }else{\n leftID = node.left.id;\n queue.add(node.left);\n }\n if (node.right == null){\n rightID = -1;\n }else{\n rightID = node.right.id;\n queue.add(node.right);\n }\n System.out.printf(\"%d %d %d\\n\",node.id, leftID, rightID);\n }\n \n }", "private TreeNode fixNextptr(TreeNode root) {\r\n\t\t// Find the right most node in\r\n\t\t// BT or last node in DLL\r\n\t\twhile (root.right != null)\r\n\t\t\troot = root.right;\r\n\r\n\t\t// Start from the rightmost node, traverse\r\n\t\t// back using left pointers. While traversing,\r\n\t\t// change right pointer of nodes\r\n\t\twhile (root != null && root.left != null) {\r\n\t\t\tTreeNode left = root.left;\r\n\t\t\tleft.right = root;\r\n\t\t\troot = root.left;\r\n\t\t}\r\n\r\n\t\t// The leftmost node is head of linked list, return it\r\n\t\treturn root;\r\n\t}", "public void depthFirstSearch(Node vertex){\n vertex.visited = true;\n if(vertex.row == row_size-1 && vertex.col == col_size-1){\n while(!dfs_stack.isEmpty()){\n exitPath +=dfs_stack.peek(); \n dfs_stack.pop();\n } \n }\n if(vertex.north!=null && vertex.north.visited==false){\n dfs_stack.push(\"N\");\n vertex.depthFirstSearch(vertex.north);\n }\n if(vertex.south!=null && vertex.south.visited==false){\n dfs_stack.push(\"S\");\n vertex.depthFirstSearch(vertex.south);\n }\n if(vertex.west !=null && vertex.west.visited ==false){\n dfs_stack.push(\"W\");\n vertex.depthFirstSearch(vertex.west);\n }\n if(vertex.east !=null && vertex.east.visited==false){\n dfs_stack.push(\"E\");\n vertex.depthFirstSearch(vertex.east);\n }\n if (!dfs_stack.isEmpty()){\n dfs_stack.pop();\n }\n return;\n }", "public ArrayList<K> inOrdorTraverseBST(){\n BSTNode<K> currentNode = this.rootNode;\n LinkedList<BSTNode<K>> nodeStack = new LinkedList<BSTNode<K>>();\n ArrayList<K> result = new ArrayList<K>();\n \n if (currentNode == null)\n return null;\n \n while (currentNode != null || nodeStack.size() > 0) {\n while (currentNode != null) {\n nodeStack.add(currentNode);\n currentNode = currentNode.getLeftChild();\n }\n currentNode = nodeStack.pollLast();\n result.add(currentNode.getId());\n currentNode = currentNode.getRightChild();\n }\n \n return result;\n }", "static void preOrderWithoutRecursion(Node root) {\n Stack<Node> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n Node node = stack.peek();\n System.out.print(node.data + \" \");\n stack.pop();\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n }", "private int first_leaf() { return n/2; }", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "public Node findSet(Node dataNode) {\n // something go wrong here?\n if (dataNode == dataNode.parent) {\n return dataNode;\n }\n dataNode.parent = findSet(dataNode.parent);\n // what is returned is the root, if dataNode is returned then it is the leaf not root\n return dataNode.parent;\n }", "public boolean isLeaf()\n {\n return false;\n }" ]
[ "0.6252905", "0.6201107", "0.61758286", "0.61628836", "0.6129682", "0.609401", "0.60522777", "0.6051208", "0.60495865", "0.6032457", "0.6013291", "0.6003501", "0.5991191", "0.5952402", "0.59477264", "0.5943892", "0.59210205", "0.588973", "0.5888058", "0.5867621", "0.5837777", "0.5836587", "0.58301187", "0.58213884", "0.5818668", "0.5807191", "0.58067554", "0.5798039", "0.5798039", "0.5785977", "0.5772216", "0.5771755", "0.5760573", "0.5759717", "0.5751697", "0.57438236", "0.57404524", "0.5729646", "0.57227665", "0.57227665", "0.57227665", "0.57227665", "0.5722134", "0.57178146", "0.57162106", "0.57131565", "0.57104206", "0.5704492", "0.5703204", "0.5697455", "0.56879246", "0.5686802", "0.5686802", "0.5686802", "0.5686802", "0.56858677", "0.5685355", "0.5682667", "0.568253", "0.5681712", "0.5680524", "0.5678018", "0.5674036", "0.5673163", "0.564648", "0.5641362", "0.5634657", "0.56312287", "0.56287587", "0.56274045", "0.5622945", "0.56172806", "0.56155246", "0.5614641", "0.56144035", "0.56125337", "0.56081206", "0.5602279", "0.5598625", "0.55974835", "0.55951214", "0.55944616", "0.55893606", "0.55872405", "0.5584789", "0.5584237", "0.55786955", "0.55742246", "0.5570917", "0.55705106", "0.5570129", "0.55675775", "0.55590355", "0.5558583", "0.5556237", "0.55545324", "0.5552916", "0.55483156", "0.55479234", "0.5541923", "0.5541736" ]
0.0
-1